Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-azure-eventgrid for
openSUSE:Factory checked in at 2023-11-09 21:36:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-azure-eventgrid (Old)
and /work/SRC/openSUSE:Factory/.python-azure-eventgrid.new.17445 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-azure-eventgrid"
Thu Nov 9 21:36:03 2023 rev:23 rq:1124430 version:4.16.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-azure-eventgrid/python-azure-eventgrid.changes
2023-10-15 19:30:20.094937564 +0200
+++
/work/SRC/openSUSE:Factory/.python-azure-eventgrid.new.17445/python-azure-eventgrid.changes
2023-11-09 21:36:20.738984685 +0100
@@ -1,0 +2,8 @@
+Thu Nov 9 11:20:43 UTC 2023 - John Paul Adrian Glaubitz
<[email protected]>
+
+- New upstream release
+ + Version 4.16.0
+ + For detailed information about changes see the
+ CHANGELOG.md file provided with this package
+
+-------------------------------------------------------------------
Old:
----
azure-eventgrid-4.15.0.tar.gz
New:
----
azure-eventgrid-4.16.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-azure-eventgrid.spec ++++++
--- /var/tmp/diff_new_pack.Wf6pTJ/_old 2023-11-09 21:36:21.691019835 +0100
+++ /var/tmp/diff_new_pack.Wf6pTJ/_new 2023-11-09 21:36:21.691019835 +0100
@@ -21,7 +21,7 @@
%define skip_python2 1
%endif
Name: python-azure-eventgrid
-Version: 4.15.0
+Version: 4.16.0
Release: 0
Summary: Microsoft Azure Event Grid Client Library
License: MIT
++++++ azure-eventgrid-4.15.0.tar.gz -> azure-eventgrid-4.16.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-eventgrid-4.15.0/CHANGELOG.md
new/azure-eventgrid-4.16.0/CHANGELOG.md
--- old/azure-eventgrid-4.15.0/CHANGELOG.md 2023-10-12 23:03:55.000000000
+0200
+++ new/azure-eventgrid-4.16.0/CHANGELOG.md 2023-11-08 16:36:44.000000000
+0100
@@ -1,5 +1,11 @@
# Release History
+## 4.16.0 (2023-11-08)
+
+### Features Added
+
+- Added new enum values to `SystemEventnames` related to Azure Resource
Notifications.
+
## 4.15.0 (2023-10-12)
### Features Added
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-eventgrid-4.15.0/PKG-INFO
new/azure-eventgrid-4.16.0/PKG-INFO
--- old/azure-eventgrid-4.15.0/PKG-INFO 2023-10-12 23:04:42.634195600 +0200
+++ new/azure-eventgrid-4.16.0/PKG-INFO 2023-11-08 16:37:24.765407600 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: azure-eventgrid
-Version: 4.15.0
+Version: 4.16.0
Summary: Microsoft Azure Event Grid Client Library for Python
Home-page: https://github.com/Azure/azure-sdk-for-python
Author: Microsoft Corporation
@@ -521,6 +521,12 @@
# Release History
+## 4.16.0 (2023-11-08)
+
+### Features Added
+
+- Added new enum values to `SystemEventnames` related to Azure Resource
Notifications.
+
## 4.15.0 (2023-10-12)
### Features Added
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-eventgrid-4.15.0/azure/eventgrid/_event_mappings.py
new/azure-eventgrid-4.16.0/azure/eventgrid/_event_mappings.py
--- old/azure-eventgrid-4.15.0/azure/eventgrid/_event_mappings.py
2023-10-12 23:03:55.000000000 +0200
+++ new/azure-eventgrid-4.16.0/azure/eventgrid/_event_mappings.py
2023-11-08 16:36:44.000000000 +0100
@@ -378,6 +378,10 @@
ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventName =
'Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged'
+ ResourceNotificationsResourceManagementCreatedOrUpdatedEventName =
'Microsoft.ResourceNotifications.Resources.CreatedOrUpdated'
+
+ ResourceNotificationsResourceManagementDeletedEventName =
'Microsoft.ResourceNotifications.Resources.Deleted'
+
ResourceWriteCancelName = 'Microsoft.Resources.ResourceWriteCancel'
ResourceWriteFailureName = 'Microsoft.Resources.ResourceWriteFailure'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-eventgrid-4.15.0/azure/eventgrid/_version.py
new/azure-eventgrid-4.16.0/azure/eventgrid/_version.py
--- old/azure-eventgrid-4.15.0/azure/eventgrid/_version.py 2023-10-12
23:03:55.000000000 +0200
+++ new/azure-eventgrid-4.16.0/azure/eventgrid/_version.py 2023-11-08
16:36:45.000000000 +0100
@@ -9,4 +9,4 @@
# regenerated.
# --------------------------------------------------------------------------
-VERSION = "4.15.0"
+VERSION = "4.16.0"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-eventgrid-4.15.0/azure_eventgrid.egg-info/PKG-INFO
new/azure-eventgrid-4.16.0/azure_eventgrid.egg-info/PKG-INFO
--- old/azure-eventgrid-4.15.0/azure_eventgrid.egg-info/PKG-INFO
2023-10-12 23:04:42.000000000 +0200
+++ new/azure-eventgrid-4.16.0/azure_eventgrid.egg-info/PKG-INFO
2023-11-08 16:37:24.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: azure-eventgrid
-Version: 4.15.0
+Version: 4.16.0
Summary: Microsoft Azure Event Grid Client Library for Python
Home-page: https://github.com/Azure/azure-sdk-for-python
Author: Microsoft Corporation
@@ -521,6 +521,12 @@
# Release History
+## 4.16.0 (2023-11-08)
+
+### Features Added
+
+- Added new enum values to `SystemEventnames` related to Azure Resource
Notifications.
+
## 4.15.0 (2023-10-12)
### Features Added
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-eventgrid-4.15.0/tests/test_cncf_events.py
new/azure-eventgrid-4.16.0/tests/test_cncf_events.py
--- old/azure-eventgrid-4.15.0/tests/test_cncf_events.py 2023-10-12
23:03:55.000000000 +0200
+++ new/azure-eventgrid-4.16.0/tests/test_cncf_events.py 2023-11-08
16:36:45.000000000 +0100
@@ -18,7 +18,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_cloud_event_data_dict(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ def test_send_cloud_event_data_dict(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
attributes = {
"type": "com.example.sampletype1",
@@ -37,7 +37,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_cloud_event_data_base64_using_data(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ def test_send_cloud_event_data_base64_using_data(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
attributes = {
"type": "com.example.sampletype1",
@@ -54,7 +54,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_cloud_event_data_none(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ def test_send_cloud_event_data_none(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
attributes = {
"type": "com.example.sampletype1",
@@ -66,7 +66,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_cloud_event_data_str(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ def test_send_cloud_event_data_str(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
attributes = {
"type": "com.example.sampletype1",
@@ -82,7 +82,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_cloud_event_data_as_list(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ def test_send_cloud_event_data_as_list(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
attributes = {
"type": "com.example.sampletype1",
@@ -94,7 +94,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_cloud_event_data_with_extensions(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ def test_send_cloud_event_data_with_extensions(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
attributes = {
"type": "com.example.sampletype1",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-eventgrid-4.15.0/tests/test_cncf_events_async.py
new/azure-eventgrid-4.16.0/tests/test_cncf_events_async.py
--- old/azure-eventgrid-4.15.0/tests/test_cncf_events_async.py 2023-10-12
23:03:55.000000000 +0200
+++ new/azure-eventgrid-4.16.0/tests/test_cncf_events_async.py 2023-11-08
16:36:45.000000000 +0100
@@ -21,7 +21,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_cloud_event_data_dict(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ async def test_send_cloud_event_data_dict(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
attributes = {
"type": "com.example.sampletype1",
@@ -41,7 +41,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_cloud_event_data_base64_using_data(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ async def test_send_cloud_event_data_base64_using_data(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
attributes = {
"type": "com.example.sampletype1",
@@ -59,7 +59,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_cloud_event_data_none(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ async def test_send_cloud_event_data_none(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
attributes = {
"type": "com.example.sampletype1",
@@ -72,7 +72,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_cloud_event_data_str(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ async def test_send_cloud_event_data_str(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
attributes = {
"type": "com.example.sampletype1",
@@ -90,7 +90,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_cloud_event_data_as_list(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ async def test_send_cloud_event_data_as_list(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
attributes = {
"type": "com.example.sampletype1",
@@ -103,7 +103,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_cloud_event_data_with_extensions(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ async def test_send_cloud_event_data_with_extensions(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
attributes = {
"type": "com.example.sampletype1",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-eventgrid-4.15.0/tests/test_eg_publisher_client.py
new/azure-eventgrid-4.16.0/tests/test_eg_publisher_client.py
--- old/azure-eventgrid-4.15.0/tests/test_eg_publisher_client.py
2023-10-12 23:03:55.000000000 +0200
+++ new/azure-eventgrid-4.16.0/tests/test_eg_publisher_client.py
2023-11-08 16:36:45.000000000 +0100
@@ -39,7 +39,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_event_grid_event_data_dict(self, variables,
eventgrid_topic_endpoint):
+ def test_send_event_grid_event_data_dict(self, eventgrid_topic_endpoint):
client = self.create_eg_publisher_client(eventgrid_topic_endpoint)
eg_event = EventGridEvent(
subject="sample",
@@ -51,7 +51,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_event_grid_event_fails_without_full_url(self, variables,
eventgrid_topic_key, eventgrid_topic_endpoint):
+ def test_send_event_grid_event_fails_without_full_url(self,
eventgrid_topic_key, eventgrid_topic_endpoint):
akc_credential = AzureKeyCredential(eventgrid_topic_key)
parsed_url = urlparse(eventgrid_topic_endpoint)
client = EventGridPublisherClient(parsed_url.netloc, akc_credential)
@@ -66,7 +66,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_event_grid_event_data_as_list(self, variables,
eventgrid_topic_endpoint):
+ def test_send_event_grid_event_data_as_list(self,
eventgrid_topic_endpoint):
client = self.create_eg_publisher_client(eventgrid_topic_endpoint)
eg_event1 = EventGridEvent(
subject="sample",
@@ -84,7 +84,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_event_grid_event_data_str(self, variables,
eventgrid_topic_endpoint):
+ def test_send_event_grid_event_data_str(self, eventgrid_topic_endpoint):
client = self.create_eg_publisher_client(eventgrid_topic_endpoint)
eg_event = EventGridEvent(
subject="sample",
@@ -96,7 +96,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_event_grid_event_data_bytes(self, variables,
eventgrid_topic_endpoint):
+ def test_send_event_grid_event_data_bytes(self, eventgrid_topic_endpoint):
client = self.create_eg_publisher_client(eventgrid_topic_endpoint)
eg_event = EventGridEvent(
subject="sample",
@@ -109,7 +109,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_event_grid_event_dict_data_bytes(self, variables,
eventgrid_topic_endpoint):
+ def test_send_event_grid_event_dict_data_bytes(self,
eventgrid_topic_endpoint):
client = self.create_eg_publisher_client(eventgrid_topic_endpoint)
eg_event = {
"subject":"sample",
@@ -124,7 +124,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_event_grid_event_dict_data_dict(self, variables,
eventgrid_topic_endpoint):
+ def test_send_event_grid_event_dict_data_dict(self,
eventgrid_topic_endpoint):
client = self.create_eg_publisher_client(eventgrid_topic_endpoint)
eg_event = {
"subject":"sample",
@@ -141,7 +141,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_cloud_event_data_dict(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ def test_send_cloud_event_data_dict(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
cloud_event = CloudEvent(
source = "http://samplesource.dev",
@@ -153,7 +153,7 @@
@pytest.mark.skip("https://github.com/Azure/azure-sdk-for-python/issues/16993")
@EventGridPreparer()
@recorded_by_proxy
- def test_send_cloud_event_data_NULL(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ def test_send_cloud_event_data_NULL(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
cloud_event = CloudEvent(
source = "http://samplesource.dev",
@@ -169,7 +169,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_cloud_event_data_base64_using_data(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ def test_send_cloud_event_data_base64_using_data(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
cloud_event = CloudEvent(
source = "http://samplesource.dev",
@@ -195,7 +195,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_cloud_event_data_none(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ def test_send_cloud_event_data_none(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
cloud_event = CloudEvent(
source = "http://samplesource.dev",
@@ -206,7 +206,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_cloud_event_data_str(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ def test_send_cloud_event_data_str(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
cloud_event = CloudEvent(
source = "http://samplesource.dev",
@@ -217,7 +217,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_cloud_event_data_bytes(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ def test_send_cloud_event_data_bytes(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
cloud_event = CloudEvent(
source = "http://samplesource.dev",
@@ -228,7 +228,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_cloud_event_data_as_list(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ def test_send_cloud_event_data_as_list(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
cloud_event = CloudEvent(
source = "http://samplesource.dev",
@@ -239,7 +239,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_cloud_event_data_with_extensions(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ def test_send_cloud_event_data_with_extensions(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
cloud_event = CloudEvent(
source = "http://samplesource.dev",
@@ -258,7 +258,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_cloud_event_dict(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ def test_send_cloud_event_dict(self, eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
cloud_event1 = {
"id": "1234",
@@ -271,7 +271,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_signature_credential(self, variables, eventgrid_topic_key,
eventgrid_topic_endpoint):
+ def test_send_signature_credential(self, eventgrid_topic_key,
eventgrid_topic_endpoint):
expiration_date_utc = dt.datetime.now(UTC()) + timedelta(hours=1)
signature = generate_sas(eventgrid_topic_endpoint,
eventgrid_topic_key, expiration_date_utc)
credential = AzureSasCredential(signature)
@@ -286,13 +286,13 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_NONE_credential(self, variables, eventgrid_topic_endpoint):
+ def test_send_NONE_credential(self, eventgrid_topic_endpoint):
with pytest.raises(ValueError, match="Parameter 'self._credential'
must not be None."):
client = EventGridPublisherClient(eventgrid_topic_endpoint, None)
@EventGridPreparer()
@recorded_by_proxy
- def test_send_custom_schema_event(self, variables,
eventgrid_custom_event_topic_endpoint):
+ def test_send_custom_schema_event(self,
eventgrid_custom_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_custom_event_topic_endpoint)
custom_event = {
"customSubject": "sample",
@@ -306,7 +306,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_send_custom_schema_event_as_list(self, variables,
eventgrid_custom_event_topic_endpoint):
+ def test_send_custom_schema_event_as_list(self,
eventgrid_custom_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_custom_event_topic_endpoint)
custom_event1 = {
"customSubject": "sample",
@@ -334,7 +334,7 @@
@pytest.mark.live_test_only
@EventGridPreparer()
@recorded_by_proxy
- def test_send_token_credential(self, variables, eventgrid_topic_endpoint):
+ def test_send_token_credential(self, eventgrid_topic_endpoint):
credential = self.get_credential(EventGridPublisherClient)
client = EventGridPublisherClient(eventgrid_topic_endpoint, credential)
eg_event = EventGridEvent(
@@ -346,14 +346,12 @@
client.send(eg_event)
@pytest.mark.live_test_only
- @EventGridPreparer()
- @recorded_by_proxy
- def test_send_partner_namespace(self, variables):
+ def test_send_partner_namespace(self):
eventgrid_partner_namespace_endpoint =
os.environ['EVENTGRID_PARTNER_NAMESPACE_TOPIC_ENDPOINT']
eventgrid_partner_namespace_key =
os.environ['EVENTGRID_PARTNER_NAMESPACE_TOPIC_KEY']
channel_name = os.environ['EVENTGRID_PARTNER_CHANNEL_NAME']
credential = AzureKeyCredential(eventgrid_partner_namespace_key)
- client =
EventGridPublisherClient(eventgrid_partner_namespace_endpoint,
eventgrid_partner_namespace_key)
+ client =
EventGridPublisherClient(eventgrid_partner_namespace_endpoint, credential)
cloud_event = CloudEvent(
source = "http://samplesource.dev",
data = "cloudevent",
@@ -361,7 +359,7 @@
)
def callback(request):
- req = json.loads(request.http_request.headers)
+ req = request.http_request.headers
assert req.get("aeg-channel-name") == channel_name
client.send(cloud_event, channel_name=channel_name,
raw_request_hook=callback)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-eventgrid-4.15.0/tests/test_eg_publisher_client_async.py
new/azure-eventgrid-4.16.0/tests/test_eg_publisher_client_async.py
--- old/azure-eventgrid-4.15.0/tests/test_eg_publisher_client_async.py
2023-10-12 23:03:55.000000000 +0200
+++ new/azure-eventgrid-4.16.0/tests/test_eg_publisher_client_async.py
2023-11-08 16:36:45.000000000 +0100
@@ -39,7 +39,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_event_grid_event_data_dict(self, variables,
eventgrid_topic_endpoint):
+ async def test_send_event_grid_event_data_dict(self,
eventgrid_topic_endpoint):
client = self.create_eg_publisher_client(eventgrid_topic_endpoint)
eg_event = EventGridEvent(
subject="sample",
@@ -53,7 +53,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_event_grid_event_data_as_list(self, variables,
eventgrid_topic_endpoint):
+ async def test_send_event_grid_event_data_as_list(self,
eventgrid_topic_endpoint):
client = self.create_eg_publisher_client(eventgrid_topic_endpoint)
eg_event1 = EventGridEvent(
subject="sample",
@@ -72,7 +72,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_event_grid_event_fails_without_full_url(self,
variables, eventgrid_topic_key, eventgrid_topic_endpoint):
+ async def test_send_event_grid_event_fails_without_full_url(self,
eventgrid_topic_key, eventgrid_topic_endpoint):
akc_credential = AzureKeyCredential(eventgrid_topic_key)
parsed_url = urlparse(eventgrid_topic_endpoint)
client = EventGridPublisherClient(parsed_url.netloc, akc_credential)
@@ -88,7 +88,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_event_grid_event_data_str(self, variables,
eventgrid_topic_endpoint):
+ async def test_send_event_grid_event_data_str(self,
eventgrid_topic_endpoint):
client = self.create_eg_publisher_client(eventgrid_topic_endpoint)
eg_event = EventGridEvent(
subject="sample",
@@ -101,7 +101,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_event_grid_event_data_bytes(self, variables,
eventgrid_topic_endpoint):
+ async def test_send_event_grid_event_data_bytes(self,
eventgrid_topic_endpoint):
client = self.create_eg_publisher_client(eventgrid_topic_endpoint)
eg_event = EventGridEvent(
subject="sample",
@@ -115,7 +115,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_event_grid_event_dict_data_bytes(self, variables,
eventgrid_topic_endpoint):
+ async def test_send_event_grid_event_dict_data_bytes(self,
eventgrid_topic_endpoint):
client = self.create_eg_publisher_client(eventgrid_topic_endpoint)
eg_event = {
"subject":"sample",
@@ -131,7 +131,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_cloud_event_data_dict(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ async def test_send_cloud_event_data_dict(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
cloud_event = CloudEvent(
source = "http://samplesource.dev",
@@ -144,7 +144,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_cloud_event_data_str(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ async def test_send_cloud_event_data_str(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
cloud_event = CloudEvent(
source = "http://samplesource.dev",
@@ -156,7 +156,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_cloud_event_data_bytes(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ async def test_send_cloud_event_data_bytes(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
cloud_event = CloudEvent(
source = "http://samplesource.dev",
@@ -168,7 +168,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_cloud_event_data_as_list(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ async def test_send_cloud_event_data_as_list(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
cloud_event = CloudEvent(
source = "http://samplesource.dev",
@@ -181,7 +181,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_cloud_event_data_with_extensions(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ async def test_send_cloud_event_data_with_extensions(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
cloud_event = CloudEvent(
source = "http://samplesource.dev",
@@ -202,7 +202,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_cloud_event_dict(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ async def test_send_cloud_event_dict(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
cloud_event1 = {
"id": "1234",
@@ -216,7 +216,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_cloud_event_data_none(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ async def test_send_cloud_event_data_none(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
cloud_event = CloudEvent(
source = "http://samplesource.dev",
@@ -229,7 +229,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_cloud_event_data_NULL(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ async def test_send_cloud_event_data_NULL(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
cloud_event = CloudEvent(
source = "http://samplesource.dev",
@@ -245,7 +245,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_signature_credential(self, variables,
eventgrid_topic_key, eventgrid_topic_endpoint):
+ async def test_send_signature_credential(self, eventgrid_topic_key,
eventgrid_topic_endpoint):
expiration_date_utc = dt.datetime.now(UTC()) + timedelta(hours=1)
signature = generate_sas(eventgrid_topic_endpoint,
eventgrid_topic_key, expiration_date_utc)
credential = AzureSasCredential(signature)
@@ -262,7 +262,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_custom_schema_event(self, variables,
eventgrid_custom_event_topic_endpoint):
+ async def test_send_custom_schema_event(self,
eventgrid_custom_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_custom_event_topic_endpoint)
custom_event = {
"customSubject": "sample",
@@ -278,7 +278,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_custom_schema_event_as_list(self, variables,
eventgrid_custom_event_topic_endpoint):
+ async def test_send_custom_schema_event_as_list(self,
eventgrid_custom_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_custom_event_topic_endpoint)
custom_event1 = {
"customSubject": "sample",
@@ -301,7 +301,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_and_close_async_session(self, variables,
eventgrid_cloud_event_topic_endpoint):
+ async def test_send_and_close_async_session(self,
eventgrid_cloud_event_topic_endpoint):
client =
self.create_eg_publisher_client(eventgrid_cloud_event_topic_endpoint)
async with client: # this throws if client can't close
cloud_event = CloudEvent(
@@ -314,7 +314,7 @@
@pytest.mark.skip()
@EventGridPreparer()
@recorded_by_proxy_async
- def test_send_NONE_credential_async(self, variables,
eventgrid_topic_endpoint):
+ def test_send_NONE_credential_async(self, eventgrid_topic_endpoint):
with pytest.raises(ValueError, match="Parameter 'self._credential'
must not be None."):
client = EventGridPublisherClient(eventgrid_topic_endpoint, None)
@@ -322,7 +322,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_send_token_credential(self, variables,
eventgrid_topic_endpoint):
+ async def test_send_token_credential(self, eventgrid_topic_endpoint):
credential = self.get_credential(EventGridPublisherClient)
client = EventGridPublisherClient(eventgrid_topic_endpoint, credential)
eg_event = EventGridEvent(
@@ -334,21 +334,19 @@
await client.send(eg_event)
@pytest.mark.live_test_only
- @EventGridPreparer()
- @recorded_by_proxy_async
- async def test_send_partner_namespace(self, variables):
+ async def test_send_partner_namespace(self):
eventgrid_partner_namespace_endpoint =
os.environ['EVENTGRID_PARTNER_NAMESPACE_TOPIC_ENDPOINT']
eventgrid_partner_namespace_key =
os.environ['EVENTGRID_PARTNER_NAMESPACE_TOPIC_KEY']
channel_name = os.environ['EVENTGRID_PARTNER_CHANNEL_NAME']
credential = AzureKeyCredential(eventgrid_partner_namespace_key)
- client =
EventGridPublisherClient(eventgrid_partner_namespace_endpoint,
eventgrid_partner_namespace_key)
+ client =
EventGridPublisherClient(eventgrid_partner_namespace_endpoint, credential)
cloud_event = CloudEvent(
source = "http://samplesource.dev",
data = "cloudevent",
type="Sample.Cloud.Event"
)
def callback(request):
- req = json.loads(request.http_request.headers)
+ req = request.http_request.headers
assert req.get("aeg-channel-name") == channel_name
await client.send(cloud_event, channel_name=channel_name,
raw_request_hook=callback)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-eventgrid-4.15.0/tests/test_exceptions.py
new/azure-eventgrid-4.16.0/tests/test_exceptions.py
--- old/azure-eventgrid-4.15.0/tests/test_exceptions.py 2023-10-12
23:03:55.000000000 +0200
+++ new/azure-eventgrid-4.16.0/tests/test_exceptions.py 2023-11-08
16:36:45.000000000 +0100
@@ -45,7 +45,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_raise_on_auth_error(self, variables, eventgrid_topic_endpoint):
+ def test_raise_on_auth_error(self, eventgrid_topic_endpoint):
akc_credential = AzureKeyCredential("bad credential")
client = EventGridPublisherClient(eventgrid_topic_endpoint,
akc_credential)
eg_event = EventGridEvent(
@@ -57,9 +57,10 @@
with pytest.raises(ClientAuthenticationError, match="The request
authorization key is not authorized for*"):
client.send(eg_event)
+ @pytest.mark.skip("Fix during MQ - skip to unblock pipeline")
+ @pytest.mark.live_test_only
@EventGridPreparer()
- @recorded_by_proxy
- def test_raise_on_bad_resource(self, variables, eventgrid_topic_key):
+ def test_raise_on_bad_resource(self, eventgrid_topic_key):
akc_credential = AzureKeyCredential(eventgrid_topic_key)
client =
EventGridPublisherClient("https://bad-resource.westus-1.eventgrid.azure.net/api/events",
akc_credential)
eg_event = EventGridEvent(
@@ -73,7 +74,7 @@
@EventGridPreparer()
@recorded_by_proxy
- def test_raise_on_large_payload(self, variables, eventgrid_topic_endpoint):
+ def test_raise_on_large_payload(self, eventgrid_topic_endpoint):
client = self.create_eg_publisher_client(eventgrid_topic_endpoint)
path = os.path.abspath(os.path.join(os.path.abspath(__file__), "..",
"./large_data.json"))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-eventgrid-4.15.0/tests/test_exceptions_async.py
new/azure-eventgrid-4.16.0/tests/test_exceptions_async.py
--- old/azure-eventgrid-4.15.0/tests/test_exceptions_async.py 2023-10-12
23:03:55.000000000 +0200
+++ new/azure-eventgrid-4.16.0/tests/test_exceptions_async.py 2023-11-08
16:36:45.000000000 +0100
@@ -44,7 +44,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_raise_on_auth_error(self, variables,
eventgrid_topic_endpoint):
+ async def test_raise_on_auth_error(self, eventgrid_topic_endpoint):
akc_credential = AzureKeyCredential("bad credential")
client = EventGridPublisherClient(eventgrid_topic_endpoint,
akc_credential)
eg_event = EventGridEvent(
@@ -56,10 +56,11 @@
with pytest.raises(ClientAuthenticationError, match="The request
authorization key is not authorized for*"):
await client.send(eg_event)
+ @pytest.mark.skip("Fix during MQ - skip to unblock pipeline")
+ @pytest.mark.live_test_only
@EventGridPreparer()
- @recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_raise_on_bad_resource(self, variables, eventgrid_topic_key):
+ async def test_raise_on_bad_resource(self, eventgrid_topic_key):
akc_credential = AzureKeyCredential(eventgrid_topic_key)
client =
EventGridPublisherClient("https://bad-resource.westus-1.eventgrid.azure.net/api/events",
akc_credential)
eg_event = EventGridEvent(
@@ -74,7 +75,7 @@
@EventGridPreparer()
@recorded_by_proxy_async
@pytest.mark.asyncio
- async def test_raise_on_large_payload(self, variables,
eventgrid_topic_endpoint):
+ async def test_raise_on_large_payload(self, eventgrid_topic_endpoint):
client = self.create_eg_publisher_client(eventgrid_topic_endpoint)
path = os.path.abspath(os.path.join(os.path.abspath(__file__), "..",
"./large_data.json"))