Skip to content

Commit 2c25a0e

Browse files
author
jasper-schneider
committed
Scenario tests for new Batch API features
1 parent d7f2d27 commit 2c25a0e

File tree

3 files changed

+374
-182
lines changed

3 files changed

+374
-182
lines changed

src/ResourceManager/AzureBatch/Commands.Batch.Test/Commands.Batch.Test.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,9 @@
566566
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests\TestUpdatePool.json">
567567
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
568568
</None>
569+
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.SubscriptionTests\TestGetSubscriptionQuotas.json">
570+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
571+
</None>
569572
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests\TestCreateTask.json">
570573
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
571574
</None>
@@ -624,9 +627,7 @@
624627
<ItemGroup>
625628
<Content Include="about.txt" />
626629
</ItemGroup>
627-
<ItemGroup>
628-
<Folder Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.SubscriptionTests\" />
629-
</ItemGroup>
630+
<ItemGroup />
630631
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
631632
<Import Project="..\..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets" Condition="Exists('..\..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" />
632633
</Project>

src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestCreatesNewBatchAccount.json

Lines changed: 257 additions & 179 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
{
2+
"Entries": [
3+
{
4+
"RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/providers/Microsoft.Batch?api-version=2014-04-01-preview",
5+
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmF0Y2g/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1wcmV2aWV3",
6+
"RequestMethod": "GET",
7+
"RequestBody": "",
8+
"RequestHeaders": {
9+
"User-Agent": [
10+
"Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0"
11+
]
12+
},
13+
"ResponseBody": "{\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/providers/Microsoft.Batch\",\r\n \"namespace\": \"Microsoft.Batch\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"batchAccounts\",\r\n \"locations\": [\r\n \"West Europe\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"Brazil South\",\r\n \"North Europe\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-09-01\",\r\n \"2015-07-01\",\r\n \"2014-05-01-privatepreview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-09-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/quotas\",\r\n \"locations\": [\r\n \"West Europe\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"Brazil South\",\r\n \"North Europe\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-09-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}",
14+
"ResponseHeaders": {
15+
"Content-Length": [
16+
"800"
17+
],
18+
"Content-Type": [
19+
"application/json; charset=utf-8"
20+
],
21+
"Expires": [
22+
"-1"
23+
],
24+
"Pragma": [
25+
"no-cache"
26+
],
27+
"x-ms-ratelimit-remaining-subscription-reads": [
28+
"14998"
29+
],
30+
"x-ms-request-id": [
31+
"f401f2ca-d2c9-4868-98b2-777970cd7d04"
32+
],
33+
"x-ms-correlation-request-id": [
34+
"f401f2ca-d2c9-4868-98b2-777970cd7d04"
35+
],
36+
"x-ms-routing-request-id": [
37+
"WESTUS:20151026T224036Z:f401f2ca-d2c9-4868-98b2-777970cd7d04"
38+
],
39+
"Strict-Transport-Security": [
40+
"max-age=31536000; includeSubDomains"
41+
],
42+
"Cache-Control": [
43+
"no-cache"
44+
],
45+
"Date": [
46+
"Mon, 26 Oct 2015 22:40:35 GMT"
47+
]
48+
},
49+
"StatusCode": 200
50+
},
51+
{
52+
"RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/providers/Microsoft.Batch/locations/West%20US/quotas?api-version=2015-09-01",
53+
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmF0Y2gvbG9jYXRpb25zL1dlc3QlMjBVUy9xdW90YXM/YXBpLXZlcnNpb249MjAxNS0wOS0wMQ==",
54+
"RequestMethod": "GET",
55+
"RequestBody": "",
56+
"RequestHeaders": {
57+
"x-ms-version": [
58+
"2015-09-01"
59+
],
60+
"User-Agent": [
61+
"Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0"
62+
]
63+
},
64+
"ResponseBody": "{\r\n \"accountQuota\": 1\r\n}",
65+
"ResponseHeaders": {
66+
"Content-Length": [
67+
"18"
68+
],
69+
"Content-Type": [
70+
"application/json; charset=utf-8"
71+
],
72+
"Expires": [
73+
"-1"
74+
],
75+
"Pragma": [
76+
"no-cache"
77+
],
78+
"request-id": [
79+
"5cea05a8-993a-4d06-9d56-4a97123ede8e"
80+
],
81+
"Strict-Transport-Security": [
82+
"max-age=31536000; includeSubDomains"
83+
],
84+
"x-ms-ratelimit-remaining-subscription-reads": [
85+
"14999"
86+
],
87+
"x-ms-request-id": [
88+
"fa28054b-f5d8-4d08-9c79-57699051cc6f"
89+
],
90+
"x-ms-correlation-request-id": [
91+
"fa28054b-f5d8-4d08-9c79-57699051cc6f"
92+
],
93+
"x-ms-routing-request-id": [
94+
"WESTUS:20151026T224037Z:fa28054b-f5d8-4d08-9c79-57699051cc6f"
95+
],
96+
"Cache-Control": [
97+
"no-cache"
98+
],
99+
"Date": [
100+
"Mon, 26 Oct 2015 22:40:37 GMT"
101+
],
102+
"Server": [
103+
"Microsoft-HTTPAPI/2.0"
104+
]
105+
},
106+
"StatusCode": 200
107+
}
108+
],
109+
"Names": {},
110+
"Variables": {
111+
"SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b"
112+
}
113+
}

0 commit comments

Comments
 (0)