Azure / Azure/ng-deploy-azure

Use SDK for E2E tests

Open
#50 0 comments 0 reactions 0 assignees View on GitHub
bug enhancement help wanted
Dominant language
TypeScript
Stars
79
Forks
47
PR merge metrics
No merged PRs in 30d

Description

**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.

Contributor guide

Open the contributing guide

Research direction

Start with scripts/test.sh around line 44 and run npm run test:e2e without the Azure CLI installed. Trace the SDK resources already used by the project and replace the CLI-dependent cleanup path. Done means the end-to-end test completes without az.cmd and the deployed website link is no longer available afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, azure, typescript
Domain
cloud, devops, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.