Skip to content

Commit

Permalink
Add test cases for atmos terraform deploy commands
Browse files Browse the repository at this point in the history
  • Loading branch information
milldr committed Jan 3, 2025
1 parent bdc95a3 commit 2938bdc
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions tests/test_cases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,37 @@ tests:
stderr:
- "^$"
exit_code: 0

- name: atmos terraform deploy unlocked component
enabled: true
description: "Verify terraform deploy works on unlocked component in nonprod stack"
workdir: "../examples/demo-metadata"
command: "atmos"
args:
- "terraform"
- "deploy"
- "myapp"
- "-s"
- "nonprod"
expect:
stdout:
- "Executing Terraform command"
stderr:
- "^$"
exit_code: 0

- name: atmos terraform deploy locked component
enabled: true
description: "Verify terraform deploy fails on locked component in prod stack"
workdir: "../examples/demo-metadata"
command: "atmos"
args:
- "terraform"
- "deploy"
- "myapp"
- "-s"
- "prod"
expect:
stderr:
- "component 'myapp' is locked and cannot be modified \\(metadata.locked = true\\)"
exit_code: 1

0 comments on commit 2938bdc

Please sign in to comment.