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

azure - event_subscription functional test fix #4757

Merged
merged 3 commits into from Sep 10, 2019
Merged

azure - event_subscription functional test fix #4757

merged 3 commits into from Sep 10, 2019

Conversation

wsf11
Copy link
Collaborator

@wsf11 wsf11 commented Sep 10, 2019

Bug: The bug would occur in the testing suite when the AzureEventsTest class would run before AzureEventSubscripitonsTest class.

An event subscription would be created in the test_create_azure_event_subscription function. While it was being provisioned, the AzureEventSubscripitonsTest would attempt to update this event subscription causing a failure because it was not provisioned yet.

Fix: This fix patches the create call in the test_create_azure_event_subscription so an event grid subscription is not being created, and does not interfere with the AzureEventSubscripitonsTest suite.

There is no need for a cassette file because the API call is now patched, and mock data is used for the StorageQueueEventSubscription

@logachev logachev merged commit 7d21b05 into cloud-custodian:master Sep 10, 2019
@wsf11 wsf11 deleted the wifrick/event-subscription-test-fixes branch September 11, 2019 16:48
fidelito pushed a commit to fidelito/cloud-custodian that referenced this pull request May 29, 2020
* Fixed failure in test_event_subscriptions nightly run

* Updated test and deleted cassette

* Changed format of tests
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

2 participants