зеркало из https://github.com/Azure/cli.git
Testing Negative Tests
This commit is contained in:
Родитель
e43928ebbc
Коммит
9a159bda93
|
@ -32,28 +32,28 @@ jobs:
|
|||
EXPECTED_TO: pass
|
||||
run: ts-node test/main.test.ts
|
||||
|
||||
# - name: Azure CLI Version Test - Negative
|
||||
# env:
|
||||
# INPUT_AZCLIVERSION: 0
|
||||
# INPUT_INLINESCRIPT: |
|
||||
# az account show
|
||||
# az storage -h
|
||||
# EXPECTED_TO: fail
|
||||
# run: ts-node test/main.test.ts
|
||||
|
||||
# - name: Inline Script Test - Negative
|
||||
# env:
|
||||
# INPUT_AZCLIVERSION: 2.0.72
|
||||
# INPUT_INLINESCRIPT: " "
|
||||
# EXPECTED_TO: fail
|
||||
# run: ts-node test/main.test.ts
|
||||
|
||||
- name: Post to slack on failure
|
||||
if: failure()
|
||||
uses: 8398a7/action-slack@v3.9.1
|
||||
with:
|
||||
status: ${{ job.status }}
|
||||
fields: repo,message,author,action,ref,workflow
|
||||
- name: Azure CLI Version Test - Negative
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||
INPUT_AZCLIVERSION: 0
|
||||
INPUT_INLINESCRIPT: |
|
||||
az account show
|
||||
az storage -h
|
||||
EXPECTED_TO: fail
|
||||
run: ts-node test/main.test.ts
|
||||
|
||||
- name: Inline Script Test - Negative
|
||||
env:
|
||||
INPUT_AZCLIVERSION: 2.0.72
|
||||
INPUT_INLINESCRIPT: " "
|
||||
EXPECTED_TO: fail
|
||||
run: ts-node test/main.test.ts
|
||||
|
||||
# - name: Post to slack on failure
|
||||
# if: failure()
|
||||
# uses: 8398a7/action-slack@v3.9.1
|
||||
# with:
|
||||
# status: ${{ job.status }}
|
||||
# fields: repo,message,author,action,ref,workflow
|
||||
# env:
|
||||
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче