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

Allow the user to specify a tenant when acquiring a token to talk to … #1576

Merged
merged 5 commits into from
Apr 2, 2019

Conversation

mingweiw
Copy link
Contributor

…the BF connectors

@coveralls
Copy link
Collaborator

coveralls commented Mar 28, 2019

Pull Request Test Coverage Report for Build 52808

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 75.985%

Totals Coverage Status
Change from base Build 52422: 0.0%
Covered Lines: 4338
Relevant Lines: 5709

💛 - Coveralls

[Fact]
public async Task TokenTests_GetCredentialsFromTenantWorks()
{
MicrosoftAppCredentials credentials = new MicrosoftAppCredentials("645cd89f-a83e-4af9-abb5-a454e917cbc4", "jvoMWRBA67:zjgePZ359_-_", "microsoft.com", null);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 things here:

  1. We cannot put magic keys / constants in code. If we did this, the keys needs to be stored as encrypted variables in Azure Devops and passed into the build via ENV variables. (This is a super-common pattern).

  2. We cannot put actual "Service" tests here. These are unit tests, and cannot hit actual services.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is how tests are written in this file. I'm copying the existing pattern.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, I'll clean this up seperatly.

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