Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ interactions:
Connection: [keep-alive]
Content-Length: ['51']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17
msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python]
User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29
msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python]
accept-language: [en-US]
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventHub/CheckNameAvailability?api-version=2017-04-01
Expand All @@ -18,14 +18,15 @@ interactions:
cache-control: [no-cache]
content-length: ['53']
content-type: [application/json; charset=utf-8]
date: ['Tue, 07 Nov 2017 18:25:40 GMT']
date: ['Fri, 04 May 2018 21:55:53 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0]
server-sb: [Service-Bus-Resource-Provider/SN1]
server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0]
server-sb: [Service-Bus-Resource-Provider/CH3]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-ms-ratelimit-remaining-subscription-writes: ['1198']
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 200, message: OK}
version: 1

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions azure-mgmt-eventhub/tests/test_azure_mgmt_eventhub.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ def test_eh_eventhub_curd(self, resource_group, location):
resource_group_name = resource_group.name

#Create a Namespace
namespace_name = "testingpythontestcaseeventhubnamespaceEventhub"
namespace_name = "pythontestcaseeventhubnamespaceEventhub"

namespaceparameter = EHNamespace(location, {'tag1': 'value1', 'tag2': 'value2'}, Sku(SkuName.standard))
namespaceparameter = EHNamespace(location=location,tags={'tag1': 'value1', 'tag2': 'value2'},sku=Sku(name=SkuName.standard))
poller = self.eventhub_client.namespaces.create_or_update(resource_group_name, namespace_name,
namespaceparameter)
creatednamespace = poller.result()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_eh_consumergroup_curd(self, resource_group, location):
# Create a Namespace
namespace_name = "pythontestcaseeventhubnamespaceConsumerGroup"

namespaceparameter = EHNamespace(location, {'tag1': 'value1', 'tag2': 'value2'}, Sku(SkuName.standard))
namespaceparameter = EHNamespace(location=location, tags={'tag1': 'value1', 'tag2': 'value2'}, sku=Sku(name=SkuName.standard))
poller = self.eventhub_client.namespaces.create_or_update(resource_group_name, namespace_name,
namespaceparameter)
creatednamespace = poller.result()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ def test_eh_namespace_curd(self, resource_group, location):
resource_group_name = resource_group.name

# Create a Namespace
namespace_name = "testingpythontestcasenamespace"
namespace_name = "pythontestcasenamespace"

namespaceparameter=EHNamespace(location,{'tag1':'value1', 'tag2':'value2'}, Sku(SkuName.standard))
namespaceparameter=EHNamespace(location=location, tags={'tag1' : 'value1', 'tag2' : 'value2'}, sku=Sku(name=SkuName.standard))
poller = self.eventhub_client.namespaces.create_or_update(resource_group_name, namespace_name, namespaceparameter)
creatednamespace = poller.result()
self.assertEqual(creatednamespace.name, namespace_name)
Expand Down