[EventHubs] kwargs/error testing
fixes: #26229 fixes: #24846 fixes: #24680
Table of kwargs tested are in the issue above.
- Most tests added were for EventHubConsumerClient/ProducerClient constructor kwargs.
- Added tests for invalid key/policy name in the EventHubSharedKeyCredential.
- A lot of the params for send_event/send_batch were already being tested.
- receive/receive_batch kwargs seemed to pretty thoroughly tested as well.
- A few errors were caught by changing permissions/settings on the EH. (ex. Disabling the EH in the middle of receiving, Not adding the EH Data Owner Role + using AAD)
- sync consumer is not raising/handling errors correctly for retry_total > 0. This was happening in previously GA'ed versions as well, so can be addressed later. Issue created: #27137
API change check
APIView has identified API level changes in this PR and created following API reviews.
/azp run python - eventhub - tests
Azure Pipelines successfully started running 1 pipeline(s).
/azp run python - eventhub - tests
Azure Pipelines successfully started running 1 pipeline(s).
/azp run python - eventhub - tests
Azure Pipelines successfully started running 1 pipeline(s).
/azp run python - eventhub - tests
Azure Pipelines successfully started running 1 pipeline(s).
/azp run python - eventhub - tests
Pull request contains merge conflicts.
/azp run python - eventhub - tests
Azure Pipelines successfully started running 1 pipeline(s).