diff --git a/tests/fixtures/scenarios/custom-command/atmos.yaml b/tests/fixtures/scenarios/custom-command/atmos.yaml index 73c7b6c34..7078cd11b 100644 --- a/tests/fixtures/scenarios/custom-command/atmos.yaml +++ b/tests/fixtures/scenarios/custom-command/atmos.yaml @@ -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 @@ -31,5 +19,5 @@ commands: required: true default: before double dash steps: - - "echo Before Double Dash: {{ .Arguments.name }}" - - "echo After Double Dash: {{ .TrailingArgs }}" \ No newline at end of file + - "echo Cobra Args: [{{ .Arguments.name }}]" + - "echo Trailing Args: [{{ .TrailingArgs }}]" \ No newline at end of file diff --git a/tests/test-cases/custom-command.yaml b/tests/test-cases/custom-command.yaml index 1ee886eea..b3236b9b9 100644 --- a/tests/test-cases/custom-command.yaml +++ b/tests/test-cases/custom-command.yaml @@ -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