Skip to content

Commit 4541dd6

Browse files
swathipiliscai-msft
authored andcommitted
[SchemaRegistry] prepare avro for release (#20321)
* prepare for release * update date * samples readme * update * udpate shared reqs * recordings * fix recordings * changelog * change * recording * update release date
1 parent 739aa47 commit 4541dd6

File tree

6 files changed

+15
-70
lines changed

6 files changed

+15
-70
lines changed

sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
# Release History
22

3-
## 1.0.0b2 (Unreleased)
3+
## 1.0.0b2 (2021-08-18)
44

5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
5+
This version and all future versions will require Python 2.7 or Python 3.6+, Python 3.5 is no longer supported.
106

11-
### Other Changes
7+
### Features Added
128

13-
This version and all future versions will require Python 2.7 or Python 3.6+, Python 3.5 is no longer supported.
9+
- Depends on `azure-schemaregistry==1.0.0b2` which supports client-level caching.
1410

1511
## 1.0.0b1 (2020-09-09)
1612

sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Several Schema Registry Avro Serializer Python SDK samples are available to you
2323
* Receive `EventData` from Event Hubs and deserialize the received bytes.
2424

2525
## Prerequisites
26-
- Python 2.7, 3.5 or later.
26+
- Python 2.7, 3.6 or later.
2727
- **Microsoft Azure Subscription:** To use Azure services, including Azure Schema Registry, you'll need a subscription.
2828
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).
2929

sdk/schemaregistry/azure-schemaregistry-avroserializer/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
zip_safe=False,
6666
packages=find_packages(exclude=exclude_packages),
6767
install_requires=[
68-
'azure-schemaregistry==1.0.0b1',
68+
'azure-schemaregistry==1.0.0b2',
6969
'avro<2.0.0,>=1.10.0'
7070
]
7171
)

sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/recordings/test_avro_serializer.test_basic_sr_avro_serializer.yaml

Lines changed: 7 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -16,88 +16,37 @@ interactions:
1616
Content-Type:
1717
- application/json
1818
User-Agent:
19-
- azsdk-python-azureschemaregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0)
19+
- azsdk-python-azureschemaregistry/1.0.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
2020
X-Schema-Type:
2121
- Avro
2222
method: PUT
2323
uri: https://fake_resource.servicebus.windows.net/$schemagroups/fakegroup/schemas/example.avro.User?api-version=2017-04
2424
response:
2525
body:
26-
string: '{"id":"c61bb1044cac49c2913a62d54af3cc3f"}'
26+
string: '{"id":"576838e0558c43f8b85cdaadbd4561f5"}'
2727
headers:
2828
content-type:
2929
- application/json
3030
date:
31-
- Thu, 12 Nov 2020 22:12:51 GMT
31+
- Wed, 18 Aug 2021 15:11:19 GMT
3232
location:
33-
- https://fake_resource.servicebus.windows.net:443/$schemagroups/fakegroup/schemas/example.avro.User/versions/1?api-version=2017-04
33+
- https://swathip-test-eventhubs.servicebus.windows.net:443/$schemagroups/fakegroup/schemas/example.avro.User/versions/1?api-version=2017-04
3434
server:
3535
- Microsoft-HTTPAPI/2.0
3636
strict-transport-security:
3737
- max-age=31536000
3838
transfer-encoding:
3939
- chunked
4040
x-schema-id:
41-
- c61bb1044cac49c2913a62d54af3cc3f
41+
- 576838e0558c43f8b85cdaadbd4561f5
4242
x-schema-id-location:
43-
- https://seankane.servicebus.windows.net:443/$schemagroups/getschemabyid/c61bb1044cac49c2913a62d54af3cc3f?api-version=2017-04
43+
- https://swathip-test-eventhubs.servicebus.windows.net:443/$schemagroups/getschemabyid/576838e0558c43f8b85cdaadbd4561f5?api-version=2017-04
4444
x-schema-type:
4545
- Avro
4646
x-schema-version:
4747
- '1'
4848
x-schema-versions-location:
49-
- https://seankane.servicebus.windows.net:443/$schemagroups/azsdk_net_test_group/schemas/example.avro.User/versions?api-version=2017-04
50-
status:
51-
code: 200
52-
message: OK
53-
- request:
54-
body: '"{\"type\": \"record\", \"name\": \"User\", \"namespace\": \"example.avro\",
55-
\"fields\": [{\"type\": \"string\", \"name\": \"name\"}, {\"type\": [\"int\",
56-
\"null\"], \"name\": \"favorite_number\"}, {\"type\": [\"string\", \"null\"],
57-
\"name\": \"favorite_color\"}]}"'
58-
headers:
59-
Accept:
60-
- application/json
61-
Accept-Encoding:
62-
- gzip, deflate
63-
Connection:
64-
- keep-alive
65-
Content-Length:
66-
- '265'
67-
Content-Type:
68-
- application/json
69-
User-Agent:
70-
- azsdk-python-azureschemaregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0)
71-
X-Schema-Type:
72-
- Avro
73-
method: POST
74-
uri: https://fake_resource.servicebus.windows.net/$schemagroups/fakegroup/schemas/example.avro.User?api-version=2017-04
75-
response:
76-
body:
77-
string: '{"id":"c61bb1044cac49c2913a62d54af3cc3f"}'
78-
headers:
79-
content-type:
80-
- application/json
81-
date:
82-
- Thu, 12 Nov 2020 22:12:51 GMT
83-
location:
84-
- https://fake_resource.servicebus.windows.net:443/$schemagroups/fakegroup/schemas/example.avro.User/versions/1?api-version=2017-04
85-
server:
86-
- Microsoft-HTTPAPI/2.0
87-
strict-transport-security:
88-
- max-age=31536000
89-
transfer-encoding:
90-
- chunked
91-
x-schema-id:
92-
- c61bb1044cac49c2913a62d54af3cc3f
93-
x-schema-id-location:
94-
- https://seankane.servicebus.windows.net:443/$schemagroups/getschemabyid/c61bb1044cac49c2913a62d54af3cc3f?api-version=2017-04
95-
x-schema-type:
96-
- Avro
97-
x-schema-version:
98-
- '1'
99-
x-schema-versions-location:
100-
- https://seankane.servicebus.windows.net:443/$schemagroups/azsdk_net_test_group/schemas/example.avro.User/versions?api-version=2017-04
49+
- https://swathip-test-eventhubs.servicebus.windows.net:443/$schemagroups/swathip-test-schema/schemas/example.avro.User/versions?api-version=2017-04
10150
status:
10251
code: 200
10352
message: OK

sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/test_avro_serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
from devtools_testutils import AzureTestCase, PowerShellPreparer
3434

35-
SchemaRegistryPowerShellPreparer = functools.partial(PowerShellPreparer, "schemaregistry", schemaregistry_endpoint="fake_resource.servicebus.windows.net", schemaregistry_group="fakegroup")
35+
SchemaRegistryPowerShellPreparer = functools.partial(PowerShellPreparer, "schemaregistry", schemaregistry_endpoint="fake_resource.servicebus.windows.net/", schemaregistry_group="fakegroup")
3636

3737
class SchemaRegistryAvroSerializerTests(AzureTestCase):
3838

shared_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ azure-keyvault-nspkg
9595
azure-media-nspkg
9696
azure-agrifood-nspkg
9797
azure-purview-nspkg
98-
azure-schemaregistry==1.0.0b1
98+
azure-schemaregistry==1.0.0b2
9999
azure-search-nspkg
100100
azure-security-nspkg
101101
azure-synapse-nspkg

0 commit comments

Comments
 (0)