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

[Event Hubs] Fix environment variable names #4391

Merged
merged 12 commits into from
Jul 24, 2019

Conversation

ramya0820
Copy link
Member

For more context refer to #4209

*Pending discussion on AAD related env vars

@ramya0820 ramya0820 self-assigned this Jul 23, 2019
Copy link
Contributor

@ramya-rao-a ramya-rao-a left a comment

Choose a reason for hiding this comment

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

There is a tests.yml file that needs to be updated as well

@ramya0820 ramya0820 requested a review from danieljurek as a code owner July 23, 2019 18:26
@ramya0820
Copy link
Member Author

There is a tests.yml file that needs to be updated as well

Updated

@@ -27,7 +27,7 @@ import { EnvironmentCredential } from "@azure/identity";
const evenHubsEndpoint = ""; // <your-eventhubs-namespace>.servicebus.windows.net
const eventHubName = "";

// Define AZURE_TENANT_ID, AZURE_CLIENT_ID and AZURE_CLIENT_SECRET of your AAD application in your environment
// Define EVENTHUB_AAD_TENANT_ID, EVENTHUB_AAD_CLIENT_ID and EVENTHUB_AAD_CLIENT_SECRET of your AAD application in your environment
Copy link
Contributor

@ramya-rao-a ramya-rao-a Jul 23, 2019

Choose a reason for hiding this comment

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

Have we tested this sample after this change? I don't believe EnvironmentCredential will work as expected after this change.

The changes required from #4209 is for updating the env vars used in our tests, not the sample code or the usage of EnvironmentCredential

In this sample, we are telling our customers to use the EnvironmentCredential which depends on AZURE_TENANT_ID, AZURE_CLIENT_ID and AZURE_CLIENT_SECRET to be present. We cannot change this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Since this was just renaming of variables for consistency and not much change in implementation, I had run tests to verify the loading of env vars ( And not the samples or live tests (yet) )

Nothing in the code or issue surfaces that @azure/identity requires environment variables to be defined with specific names.
Looks like it's not possible to have SDK specific names as suggested at - #4209 (comment)
cc: @weshaggard

Copy link
Contributor

Choose a reason for hiding this comment

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

@ramya0820
Copy link
Member Author

@KarishmaGhiya @danieljurek Could you merge this PR once Engineering System side of things are updated as well?

@danieljurek
Copy link
Member

/azp run js - eventhubs-client - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@danieljurek
Copy link
Member

LGTM, can merge once tests complete successfully

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.

3 participants