diff --git a/.github/workflows/test-env-commands.yml b/.github/workflows/test-env-commands.yml index c96f98e13..657bd45ff 100644 --- a/.github/workflows/test-env-commands.yml +++ b/.github/workflows/test-env-commands.yml @@ -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 @@ -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 @@ -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 diff --git a/testdata/gha_workflows/env_workflow/assert4.txt b/testdata/gha_workflows/env_workflow/assert4.txt new file mode 100644 index 000000000..5f29d45ea --- /dev/null +++ b/testdata/gha_workflows/env_workflow/assert4.txt @@ -0,0 +1 @@ +Error: env 'new_test' not found, please provide a value for env valid