Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samtholiya committed Feb 11, 2025
1 parent c882c8d commit 57cf738
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
16 changes: 2 additions & 14 deletions tests/fixtures/scenarios/custom-command/atmos.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
base_path: "./"

components:
terraform:
base_path: "components/terraform"
apply_auto_approve: false
deploy_run_init: true
init_run_reconfigure: true
auto_generate_backend_file: false

stacks:
base_path: "stacks"
included_paths:
- "deploy/**/*"
excluded_paths:
- "**/_defaults.yaml"
name_pattern: "{stage}"

logs:
file: "/dev/stderr"
level: Info
Expand All @@ -31,5 +19,5 @@ commands:
required: true
default: before double dash
steps:
- "echo Before Double Dash: {{ .Arguments.name }}"
- "echo After Double Dash: {{ .TrailingArgs }}"
- "echo Cobra Args: [{{ .Arguments.name }}]"
- "echo Trailing Args: [{{ .TrailingArgs }}]"
4 changes: 2 additions & 2 deletions tests/test-cases/custom-command.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ tests:
expect:
diff: []
stdout:
- "Before Double Dash: Name\n"
- "After Double Dash: after double dash\n"
- "Cobra Args: \\[Name\\]"
- "Trailing Args: \\[after double dash\\]"
stderr:
- "^$"
exit_code: 0

0 comments on commit 57cf738

Please sign in to comment.