Skip to content

Commit

Permalink
fix yaml format
Browse files Browse the repository at this point in the history
  • Loading branch information
haitham911 committed Jan 20, 2025
1 parent 72a3672 commit a122354
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions tests/test-cases/demo-stacks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,36 @@ tests:
stderr:
- "^$"
exit_code: 0
- name: atmos vendor pull

- name: atmos greet with args
enabled: true
description: "Validate atmos custom command greet runs with argument provided."
workdir: "../examples/demo-custom-command/"
command: "atmos"
args:
- "greet"
- "Andrey"
expect:
stdout:
- "Hello, Andrey\n"
stderr:
- "^$"
exit_code: 0

- name: atmos greet without args
enabled: true
description: "Validate atmos custom command greet runs without argument provided."
workdir: "../examples/demo-custom-command/"
command: "atmos"
args:
- "greet"
expect:
stdout:
- "Hello, John Doe\n"
stderr:
- "^$"
exit_code: 0
- name: atmos vendor pull
enabled: true
description: "Ensure atmos vendor pull command executes without errors and files are present."
workdir: "../examples/tests/test-vendor/"
Expand All @@ -139,7 +168,8 @@ tests:
- "vendor"
- "pull"
expect:
file_exists: [
file_exists:
[
"./components/terraform/github/stargazers/main/main.tf",
"./components/terraform/github/stargazers/main/outputs.tf",
"./components/terraform/github/stargazers/main/providers.tf",
Expand All @@ -163,5 +193,5 @@ tests:
"./components/terraform/weather/main/providers.tf",
"./components/terraform/weather/main/variables.tf",
"./components/terraform/weather/main/versions.tf",
]
]
exit_code: 0

0 comments on commit a122354

Please sign in to comment.