Skip to content

Commit

Permalink
More tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Prasanna-Padmanabhan committed Nov 3, 2017
1 parent c7c0fe1 commit e837843
Show file tree
Hide file tree
Showing 5 changed files with 291 additions and 39 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
interactions:
- request:
body: '{"properties": {"exclude": true}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['33']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
msrest_azure/0.4.15 azure-mgmt-advisor/0.1.0 Azure-SDK-For-Python]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzExpertStg/providers/Microsoft.Advisor/configurations?api-version=2017-04-19-alpha
response:
body: {string: ''}
headers:
cache-control: [no-cache]
date: ['Fri, 03 Nov 2017 21:43:32 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 204, message: No Content}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
msrest_azure/0.4.15 azure-mgmt-advisor/0.1.0 Azure-SDK-For-Python]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzExpertStg/providers/Microsoft.Advisor/configurations?api-version=2017-04-19-alpha
response:
body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzExpertStg/providers/Microsoft.Advisor/configurations/00000000-0000-0000-0000-000000000000-AzExpertStg","type":"Microsoft.Advisor/Configurations","name":"00000000-0000-0000-0000-000000000000-AzExpertStg","properties":{"exclude":true}}]}'}
headers:
cache-control: [no-cache]
content-length: ['321']
content-type: [application/json; charset=utf-8]
date: ['Fri, 03 Nov 2017 21:43:34 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"properties": {"exclude": false}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['34']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
msrest_azure/0.4.15 azure-mgmt-advisor/0.1.0 Azure-SDK-For-Python]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzExpertStg/providers/Microsoft.Advisor/configurations?api-version=2017-04-19-alpha
response:
body: {string: ''}
headers:
cache-control: [no-cache]
date: ['Fri, 03 Nov 2017 21:43:36 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1198']
status: {code: 204, message: No Content}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
msrest_azure/0.4.15 azure-mgmt-advisor/0.1.0 Azure-SDK-For-Python]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzExpertStg/providers/Microsoft.Advisor/configurations?api-version=2017-04-19-alpha
response:
body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzExpertStg/providers/Microsoft.Advisor/configurations/00000000-0000-0000-0000-000000000000-AzExpertStg","type":"Microsoft.Advisor/Configurations","name":"00000000-0000-0000-0000-000000000000-AzExpertStg","properties":{"exclude":false}}]}'}
headers:
cache-control: [no-cache]
content-length: ['322']
content-type: [application/json; charset=utf-8]
date: ['Fri, 03 Nov 2017 21:43:36 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
version: 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
interactions:
- request:
body: '{"properties": {"low_cpu_threshold": "20"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['43']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
msrest_azure/0.4.15 azure-mgmt-advisor/0.1.0 Azure-SDK-For-Python]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Advisor/configurations?api-version=2017-04-19-alpha
response:
body: {string: ''}
headers:
cache-control: [no-cache]
date: ['Fri, 03 Nov 2017 21:43:38 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1198']
status: {code: 204, message: No Content}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
msrest_azure/0.4.15 azure-mgmt-advisor/0.1.0 Azure-SDK-For-Python]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Advisor/configurations?api-version=2017-04-19-alpha
response:
body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Advisor/configurations/00000000-0000-0000-0000-000000000000","type":"Microsoft.Advisor/Configurations","name":"00000000-0000-0000-0000-000000000000","properties":{"low_cpu_threshold":"20","exclude":false}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzExpertStg/providers/Microsoft.Advisor/configurations/00000000-0000-0000-0000-000000000000-AzExpertStg","type":"Microsoft.Advisor/Configurations","name":"00000000-0000-0000-0000-000000000000-AzExpertStg","properties":{"exclude":false}}]}'}
headers:
cache-control: [no-cache]
content-length: ['607']
content-type: [application/json; charset=utf-8]
date: ['Fri, 03 Nov 2017 21:43:39 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"properties": {"low_cpu_threshold": "5"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['42']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
msrest_azure/0.4.15 azure-mgmt-advisor/0.1.0 Azure-SDK-For-Python]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Advisor/configurations?api-version=2017-04-19-alpha
response:
body: {string: ''}
headers:
cache-control: [no-cache]
date: ['Fri, 03 Nov 2017 21:43:40 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1197']
status: {code: 204, message: No Content}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
msrest_azure/0.4.15 azure-mgmt-advisor/0.1.0 Azure-SDK-For-Python]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Advisor/configurations?api-version=2017-04-19-alpha
response:
body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Advisor/configurations/00000000-0000-0000-0000-000000000000","type":"Microsoft.Advisor/Configurations","name":"00000000-0000-0000-0000-000000000000","properties":{"low_cpu_threshold":"5","exclude":false}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzExpertStg/providers/Microsoft.Advisor/configurations/00000000-0000-0000-0000-000000000000-AzExpertStg","type":"Microsoft.Advisor/Configurations","name":"00000000-0000-0000-0000-000000000000-AzExpertStg","properties":{"exclude":false}}]}'}
headers:
cache-control: [no-cache]
content-length: ['606']
content-type: [application/json; charset=utf-8]
date: ['Fri, 03 Nov 2017 21:43:41 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
version: 1
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ interactions:
headers:
cache-control: [no-cache]
content-length: ['0']
date: ['Fri, 03 Nov 2017 17:43:58 GMT']
date: ['Fri, 03 Nov 2017 21:43:43 GMT']
expires: ['-1']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Advisor/generateRecommendations/72bd8253-7f66-4933-98e2-399e357d23e6?api-version=2017-04-19-alpha']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Advisor/generateRecommendations/94a94b17-6d36-4f4c-b457-087ee871cd40?api-version=2017-04-19-alpha']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
x-ms-ratelimit-remaining-subscription-writes: ['1197']
status: {code: 202, message: Accepted}
- request:
body: null
Expand All @@ -42,7 +42,7 @@ interactions:
body: {string: ''}
headers:
cache-control: [no-cache]
date: ['Fri, 03 Nov 2017 17:43:58 GMT']
date: ['Fri, 03 Nov 2017 21:43:43 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0]
Expand Down
Loading

0 comments on commit e837843

Please sign in to comment.