Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
test: add error tests to delete env command
Browse files Browse the repository at this point in the history
Signed-off-by: dittrichlucas <ld.dittrich@gmail.com>
  • Loading branch information
dittrichlucas committed Oct 27, 2021
1 parent 462a84c commit acb1967
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test-env-commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ jobs:
assert_file_path: testdata/gha_workflows/env_workflow/assert3.txt
expected_result: PASSED
specific_line: 1
- name: RIT DELETE ENV command ERROR (5)
uses: GuillaumeFalourd/test-cli-commands-action@v1
with:
command_line: rit delete env --flag=test
assert_file_path: testdata/gha_workflows/env_workflow/assert3.txt
expected_result: PASSED
specific_line: 1
- name: RIT DELETE ENV command ERROR (6)
uses: GuillaumeFalourd/test-cli-commands-action@v1
with:
command_line: rit delete env --env=new_test
assert_file_path: testdata/gha_workflows/env_workflow/assert4.txt
expected_result: PASSED

macos:
runs-on: macos-latest
Expand Down Expand Up @@ -132,6 +145,19 @@ jobs:
assert_file_path: testdata/gha_workflows/env_workflow/assert3.txt
expected_result: PASSED
specific_line: 1
- name: RIT DELETE ENV command ERROR (5)
uses: GuillaumeFalourd/test-cli-commands-action@v1
with:
command_line: rit delete env --flag=test
assert_file_path: testdata/gha_workflows/env_workflow/assert3.txt
expected_result: PASSED
specific_line: 1
- name: RIT DELETE ENV command ERROR (6)
uses: GuillaumeFalourd/test-cli-commands-action@v1
with:
command_line: rit delete env --env=new_test
assert_file_path: testdata/gha_workflows/env_workflow/assert4.txt
expected_result: PASSED

windows:
runs-on: windows-latest
Expand Down Expand Up @@ -175,3 +201,16 @@ jobs:
assert_file_path: testdata/gha_workflows/env_workflow/assert3.txt
expected_result: PASSED
specific_line: 1
- name: RIT DELETE ENV command ERROR (5)
uses: GuillaumeFalourd/test-cli-commands-action@v1
with:
command_line: ./rit.exe delete env --flag=test
assert_file_path: testdata/gha_workflows/env_workflow/assert3.txt
expected_result: PASSED
specific_line: 1
- name: RIT DELETE ENV command ERROR (6)
uses: GuillaumeFalourd/test-cli-commands-action@v1
with:
command_line: ./rit.exe delete env --env=new_test
assert_file_path: testdata/gha_workflows/env_workflow/assert4.txt
expected_result: PASSED
1 change: 1 addition & 0 deletions testdata/gha_workflows/env_workflow/assert4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Error: env 'new_test' not found, please provide a value for env valid

0 comments on commit acb1967

Please sign in to comment.