Skip to content

[EventHubs] fix sample issue when running in build pipeline#20385

Merged
jeremymeng merged 1 commit intoAzure:mainfrom
jeremymeng:eh/fix-sample-env-var
Feb 15, 2022
Merged

[EventHubs] fix sample issue when running in build pipeline#20385
jeremymeng merged 1 commit intoAzure:mainfrom
jeremymeng:eh/fix-sample-env-var

Conversation

@jeremymeng
Copy link
Copy Markdown
Member

The value provided to EVENTHUB_CONNECTION_STRING in the live test pipeline
doesn't contain the event hub name so it's failing with error:

TypeError: Either provide "eventHubName" or the "connectionString": "***", must contain "EntityPath=".

This PR passes event hub name too to the client constructor in the same way as
some other tests do.

Fixes #20369

@ghost ghost added the Event Hubs label Feb 15, 2022
@jeremymeng
Copy link
Copy Markdown
Member Author

/azp run js - event-hubs - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

The value provided to EVENTHUB_CONNECTION_STRING in the live test pipeline
doesn't contain the event hub name so it's failing with error:

  TypeError: Either provide "eventHubName" or the "connectionString": "***", must contain "EntityPath=<your-event-hub-name>".

This PR passes event hub name too to the client constructor in the same way as
some other tests do.
@jeremymeng jeremymeng force-pushed the eh/fix-sample-env-var branch from a0b1507 to 1b2d010 Compare February 15, 2022 19:09
@jeremymeng jeremymeng marked this pull request as ready for review February 15, 2022 19:10
@jeremymeng jeremymeng enabled auto-merge (squash) February 15, 2022 19:10
@jeremymeng jeremymeng merged commit af3834e into Azure:main Feb 15, 2022
@jeremymeng jeremymeng deleted the eh/fix-sample-env-var branch February 15, 2022 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Event Hubs] Execute Samples failing in nightly runs

2 participants