diff --git a/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md b/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md index 46498c8bfd59..6c0e72155333 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md +++ b/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md @@ -1,16 +1,12 @@ # Release History -## 1.0.0b2 (Unreleased) +## 1.0.0b2 (2021-08-18) -### Features Added - -### Breaking Changes - -### Bugs Fixed +This version and all future versions will require Python 2.7 or Python 3.6+, Python 3.5 is no longer supported. -### Other Changes +### Features Added -This version and all future versions will require Python 2.7 or Python 3.6+, Python 3.5 is no longer supported. +- Depends on `azure-schemaregistry==1.0.0b2` which supports client-level caching. ## 1.0.0b1 (2020-09-09) diff --git a/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/README.md b/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/README.md index 7324035bc577..efb9eca6a478 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/README.md +++ b/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/README.md @@ -23,7 +23,7 @@ Several Schema Registry Avro Serializer Python SDK samples are available to you * Receive `EventData` from Event Hubs and deserialize the received bytes. ## Prerequisites -- Python 2.7, 3.5 or later. +- Python 2.7, 3.6 or later. - **Microsoft Azure Subscription:** To use Azure services, including Azure Schema Registry, you'll need a subscription. If you do not have an existing Azure account, you may sign up for a free trial or use your MSDN subscriber benefits when you [create an account](https://account.windowsazure.com/Home/Index). diff --git a/sdk/schemaregistry/azure-schemaregistry-avroserializer/setup.py b/sdk/schemaregistry/azure-schemaregistry-avroserializer/setup.py index 488ad631c775..a31cbd1fc226 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroserializer/setup.py +++ b/sdk/schemaregistry/azure-schemaregistry-avroserializer/setup.py @@ -65,7 +65,7 @@ zip_safe=False, packages=find_packages(exclude=exclude_packages), install_requires=[ - 'azure-schemaregistry==1.0.0b1', + 'azure-schemaregistry==1.0.0b2', 'avro<2.0.0,>=1.10.0' ] ) diff --git a/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/recordings/test_avro_serializer.test_basic_sr_avro_serializer.yaml b/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/recordings/test_avro_serializer.test_basic_sr_avro_serializer.yaml index 7e6d438ee557..7180cd33beea 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/recordings/test_avro_serializer.test_basic_sr_avro_serializer.yaml +++ b/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/recordings/test_avro_serializer.test_basic_sr_avro_serializer.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azureschemaregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azureschemaregistry/1.0.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) X-Schema-Type: - Avro method: PUT uri: https://fake_resource.servicebus.windows.net/$schemagroups/fakegroup/schemas/example.avro.User?api-version=2017-04 response: body: - string: '{"id":"c61bb1044cac49c2913a62d54af3cc3f"}' + string: '{"id":"576838e0558c43f8b85cdaadbd4561f5"}' headers: content-type: - application/json date: - - Thu, 12 Nov 2020 22:12:51 GMT + - Wed, 18 Aug 2021 15:11:19 GMT location: - - https://fake_resource.servicebus.windows.net:443/$schemagroups/fakegroup/schemas/example.avro.User/versions/1?api-version=2017-04 + - https://swathip-test-eventhubs.servicebus.windows.net:443/$schemagroups/fakegroup/schemas/example.avro.User/versions/1?api-version=2017-04 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -38,66 +38,15 @@ interactions: transfer-encoding: - chunked x-schema-id: - - c61bb1044cac49c2913a62d54af3cc3f + - 576838e0558c43f8b85cdaadbd4561f5 x-schema-id-location: - - https://seankane.servicebus.windows.net:443/$schemagroups/getschemabyid/c61bb1044cac49c2913a62d54af3cc3f?api-version=2017-04 + - https://swathip-test-eventhubs.servicebus.windows.net:443/$schemagroups/getschemabyid/576838e0558c43f8b85cdaadbd4561f5?api-version=2017-04 x-schema-type: - Avro x-schema-version: - '1' x-schema-versions-location: - - https://seankane.servicebus.windows.net:443/$schemagroups/azsdk_net_test_group/schemas/example.avro.User/versions?api-version=2017-04 - status: - code: 200 - message: OK -- request: - body: '"{\"type\": \"record\", \"name\": \"User\", \"namespace\": \"example.avro\", - \"fields\": [{\"type\": \"string\", \"name\": \"name\"}, {\"type\": [\"int\", - \"null\"], \"name\": \"favorite_number\"}, {\"type\": [\"string\", \"null\"], - \"name\": \"favorite_color\"}]}"' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '265' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azureschemaregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - X-Schema-Type: - - Avro - method: POST - uri: https://fake_resource.servicebus.windows.net/$schemagroups/fakegroup/schemas/example.avro.User?api-version=2017-04 - response: - body: - string: '{"id":"c61bb1044cac49c2913a62d54af3cc3f"}' - headers: - content-type: - - application/json - date: - - Thu, 12 Nov 2020 22:12:51 GMT - location: - - https://fake_resource.servicebus.windows.net:443/$schemagroups/fakegroup/schemas/example.avro.User/versions/1?api-version=2017-04 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000 - transfer-encoding: - - chunked - x-schema-id: - - c61bb1044cac49c2913a62d54af3cc3f - x-schema-id-location: - - https://seankane.servicebus.windows.net:443/$schemagroups/getschemabyid/c61bb1044cac49c2913a62d54af3cc3f?api-version=2017-04 - x-schema-type: - - Avro - x-schema-version: - - '1' - x-schema-versions-location: - - https://seankane.servicebus.windows.net:443/$schemagroups/azsdk_net_test_group/schemas/example.avro.User/versions?api-version=2017-04 + - https://swathip-test-eventhubs.servicebus.windows.net:443/$schemagroups/swathip-test-schema/schemas/example.avro.User/versions?api-version=2017-04 status: code: 200 message: OK diff --git a/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/test_avro_serializer.py b/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/test_avro_serializer.py index 473d493d5c26..6ee7473b821f 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/test_avro_serializer.py +++ b/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/test_avro_serializer.py @@ -32,7 +32,7 @@ from devtools_testutils import AzureTestCase, PowerShellPreparer -SchemaRegistryPowerShellPreparer = functools.partial(PowerShellPreparer, "schemaregistry", schemaregistry_endpoint="fake_resource.servicebus.windows.net", schemaregistry_group="fakegroup") +SchemaRegistryPowerShellPreparer = functools.partial(PowerShellPreparer, "schemaregistry", schemaregistry_endpoint="fake_resource.servicebus.windows.net/", schemaregistry_group="fakegroup") class SchemaRegistryAvroSerializerTests(AzureTestCase): diff --git a/shared_requirements.txt b/shared_requirements.txt index 11da8a8a9fa8..68fc209b1837 100644 --- a/shared_requirements.txt +++ b/shared_requirements.txt @@ -95,7 +95,7 @@ azure-keyvault-nspkg azure-media-nspkg azure-agrifood-nspkg azure-purview-nspkg -azure-schemaregistry==1.0.0b1 +azure-schemaregistry==1.0.0b2 azure-search-nspkg azure-security-nspkg azure-synapse-nspkg