Azure/ng-deploy-azure

Use SDK for E2E tests

開放

#50 建立於 2019年8月18日

 (0 則留言) (0 個反應) (0 位負責人)TypeScript (43 個分叉)github user discovery
bugenhancementhelp wanted

倉庫指標

星標
 (79 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Describe the bug When running the e2e test, the script uses az - the Azure CLI to clean up the resources. However, we can't expect all developers of ng deploy to have the Azure CLI installed. The cleanup should be done using the resources that are already available - the SDKs that are used in the project.

Error: ./scripts/test.sh: line 44: az.cmd: command not found To Reproduce Steps to reproduce the behavior:

  1. If you have Azure CLI, uninstall it. (Run az to see that it's not available)
  2. Run npm run test:e2e
  3. If the tests run as expected, after getting the link of the website, it crashes with the error message above.
  4. Click on the link - it opens the website. Meaning the resources were not cleared.

Expected behavior 3 - the test script should not crash. 4 - the link should not be available.

貢獻者指南