To maintain parity between exceptions between pyamqp and uamqp add in negative tests to expose behavior/exceptions during a failure.
cases to test:
- In pyamqp: gives us
'can only concatenate str (not "NoneType") to str\ncan only concatenate str (not "NoneType") to str'). This is b/c the AMQPClient._hostname = None, so in def _open, creating Connection object with "amqps://" + self._hostname gives us error.
- in pyamqp, error:
- in uamqp, error:
- pyamqp:
azure.eventhub._pyamqp.error.TokenAuthFailure: CBS Token authentication failed.
Status code: 401
Description: InvalidSignature: The token has an invalid signature. TrackingId:14e015a9-f58f-44ec-8030-0faf2ec77923, SystemTracker:NoSystemTracker, Timestamp:2022-05-12T16:19:46
- for uamqp error is: Authentication Put-Token failed. Retries exhausted.
To maintain parity between exceptions between pyamqp and uamqp add in negative tests to expose behavior/exceptions during a failure.
cases to test:
fully_qualified_namespace=None.EventHubSharedKeyCredential