Skip to content

[MQ Goals] New pipeline files for event-hubs#6563

Merged
sadasant merged 25 commits intoAzure:masterfrom
sadasant:feature/MQ-event-hubs
Jan 6, 2020
Merged

[MQ Goals] New pipeline files for event-hubs#6563
sadasant merged 25 commits intoAzure:masterfrom
sadasant:feature/MQ-event-hubs

Conversation

@sadasant
Copy link
Copy Markdown
Contributor

@sadasant sadasant commented Dec 13, 2019

This definitely works for all of the released packages in the eventhubs folder! It took me some time to figure out everything we're doing in these tests, but I made it nonetheless! Please review 🌞

I removed the EVENTHUB_NAMEs because these resources will be created before each environment specific test run, so there will always be a fresh event hub.

Fixes #6651

@sadasant sadasant self-assigned this Dec 13, 2019
@sadasant
Copy link
Copy Markdown
Contributor Author

@danieljurek Hi! This template is giving me this error:

{
    "error": {
        "code": "BadRequest",
        "message": "<?xml version=\"1.0\" encoding=\"utf-8\"?><entry xmlns=\"http://www.w3.org/2005/Atom\"><id>uuid:XYZ;id=1192408</id><title type=\"text\"></title><updated>2019-12-16T17:21:35Z</updated><content type=\"application/xml\"><Error xmlns=\"\"><Message>No HTTP resource was found that matches the request URI 'https://sbgm.windows.net/subscriptions/XYZ/resourcegroups/danrodri/providers/Microsoft.EventHub/namespaces/eh10009/listKeys?api-version=2017-04-01'.</Message></Error></content></entry>"
    }
}

The error is related to the EVENTHUB_CONNECTION_STRING output. 🤔

@ramya-rao-a
Copy link
Copy Markdown
Contributor

The event hub tests assume that event hubs with certain names already exist in the namespace.
I believe we have 9 for Node tests with OS and Node versions in the name
And we have 1 for browser test.

From what I understand, the arm template will create a new Event Hub namespace for every test run.
Does this mean that the tests will have to be updated to create the event hub required or can the arm template take care of that as well?

@ramya-rao-a
Copy link
Copy Markdown
Contributor

cc @richardpark-msft

@richardpark-msft
Copy link
Copy Markdown
Member

Looks like you can use the same ARM template to create things all the way down to the individual eventhub level:

https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-eventhubs-create-namespace-and-eventhub/azuredeploy.json

@sadasant
Copy link
Copy Markdown
Contributor Author

Oh this explains a lot. Yes, I can do this at this level. I'll put an update up.

@sadasant sadasant marked this pull request as ready for review December 17, 2019 14:41
Copy link
Copy Markdown
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.

The test-resources.json file is in the eventhub folder which contains 3 different projects

  • event hubs
  • eventhubs-checkpointstore-blob
  • event processor host

Do we intend this file to apply to all 3 projects?

@sadasant
Copy link
Copy Markdown
Contributor Author

@ramya-rao-a that's the idea. Thanks for pointing that out, I haven't tested that this works in the others. We can split them up to make them individual, but so far we've been able to have one for all of the clients of a given service. This does add some delay to my progress, since I wasn't aware there were three packages for this service.

@sadasant sadasant changed the title [MQ Goals] New pipeline files for event-hubs WIP [MQ Goals] New pipeline files for event-hubs Dec 17, 2019
@ramya-rao-a
Copy link
Copy Markdown
Contributor

The first two in the list can definitely share the same arm template
The third can use the same arm template, but will need a slightly different value for the iot hub connection string env variable.
We can solve the problem by using a different env variable for iot hub for the third case

@sadasant
Copy link
Copy Markdown
Contributor Author

@ramya-rao-a sounds good! please let me know what's this extra environment variable and I'll add it today.

@ramya-rao-a
Copy link
Copy Markdown
Contributor

I have made the relevant changes in #6614
Once that is merged, and this PR gets updated to use the latest from master, refer to #6436 to understand how to get the 2 different connection strings for IotHub.

@sadasant sadasant changed the title WIP [MQ Goals] New pipeline files for event-hubs [MQ Goals] New pipeline files for event-hubs Dec 18, 2019
@sadasant
Copy link
Copy Markdown
Contributor Author

@ramya-rao-a the changes in this PR should be good to merge as soon as your PR is merged and Daniel Jurek work is also in 🌞

@sadasant
Copy link
Copy Markdown
Contributor Author

/azp run js - event-hubs - tests

@azure-pipelines
Copy link
Copy Markdown

No pipelines are associated with this pull request.

@sadasant
Copy link
Copy Markdown
Contributor Author

/azp run js - eventhubs-client - tests

1 similar comment
@danieljurek
Copy link
Copy Markdown
Member

/azp run js - eventhubs-client - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@ramya-rao-a
Copy link
Copy Markdown
Contributor

The tests are failing with Connection string malformed: each part of the connection string must have an = assignment.

Looks like the connection string is not being set in the right env variable

@sadasant
Copy link
Copy Markdown
Contributor Author

@ramya-rao-a I'll be able to check this probably later if I don't get more feedback on the keyvault side. Otherwise tomorrow.

@sadasant
Copy link
Copy Markdown
Contributor Author

/azp run js - eventhubs-client - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@sadasant
Copy link
Copy Markdown
Contributor Author

/azp run js - eventhubs-client - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@sadasant
Copy link
Copy Markdown
Contributor Author

/azp run js - eventhubs-client - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@sadasant
Copy link
Copy Markdown
Contributor Author

/azp run js - eventhubs-client - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@sadasant
Copy link
Copy Markdown
Contributor Author

/azp run js - eventhubs-client - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@sadasant
Copy link
Copy Markdown
Contributor Author

/azp run js - eventhubs-client - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@sadasant
Copy link
Copy Markdown
Contributor Author

/azp run js - eventhubs-client - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@sadasant
Copy link
Copy Markdown
Contributor Author

ha! Daniel Jurek helped me figure out what was wrong! yayyy

@sadasant
Copy link
Copy Markdown
Contributor Author

/azp run js - eventhubs-processor - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@sadasant
Copy link
Copy Markdown
Contributor Author

@ramya-rao-a this is ready to be merged! 🎉

@sadasant
Copy link
Copy Markdown
Contributor Author

sadasant commented Jan 6, 2020

/azp run js - eventhubs-client - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@sadasant
Copy link
Copy Markdown
Contributor Author

sadasant commented Jan 6, 2020

One test is failing on Windows 8. I'll study it later.

@ramya-rao-a
Copy link
Copy Markdown
Contributor

@sadasant The failing test is not related to the set up, it is a flaky test.
Please go ahead and merge this PR.

@sadasant sadasant merged commit 79a6e98 into Azure:master Jan 6, 2020
@sadasant sadasant deleted the feature/MQ-event-hubs branch January 6, 2020 19:13
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.

[MQ] Update Event Hubs tests.yml and test-resources.json

4 participants