Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: cleanup unit tests that have external dependency #635

Merged
merged 2 commits into from Sep 9, 2021

Conversation

aramase
Copy link
Member

@aramase aramase commented Sep 9, 2021

Signed-off-by: Anish Ramasekar anish.ramasekar@gmail.com

Reason for Change:

Because of changes in Azure/go-autorest#613, the tests that depends on adal.NewServicePrincipalTokenFromMSI will fail as it requires the IMDS endpoints be available. There is currently no option to pass a custom msi endpoint to mimic the behavior. So this PR deletes the two test cases that depend on the function.

The unit tests are not failing in the CI because the agents we're running the tests on are Azure VMs. So they have the IMDS endpoint.

Requirements

  • squashed commits
  • included documentation
  • added unit tests and e2e tests (if applicable).

Issue Fixed:

Does this change contain code from or inspired by another project?

  • Yes
  • No

If "Yes," did you notify that project's maintainers and provide attribution?

Special Notes for Reviewers:

Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
@aramase aramase requested a review from nilekhc September 9, 2021 19:15
@codecov-commenter
Copy link

Codecov Report

Merging #635 (cf1dc11) into master (c1baa7a) will decrease coverage by 1.99%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #635      +/-   ##
==========================================
- Coverage   66.38%   64.39%   -2.00%     
==========================================
  Files           7        7              
  Lines         601      601              
==========================================
- Hits          399      387      -12     
- Misses        169      181      +12     
  Partials       33       33              

@aramase aramase enabled auto-merge (squash) September 9, 2021 21:26
@aramase aramase merged commit 72209e8 into Azure:master Sep 9, 2021
@aramase aramase deleted the unit-test-cleanup branch September 9, 2021 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants