Skip to content

Commit 88cbbde

Browse files
committed
Resolve several unit test failures.
1 parent c7cff5b commit 88cbbde

File tree

4 files changed

+109
-2
lines changed

4 files changed

+109
-2
lines changed

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/TestVirtualMachineSizeAndUsage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.Compute.Test.ScenarioTests
1919
{
2020
public partial class VirtualMachineTests
2121
{
22-
[Fact(Skip="TODO: Record")]
22+
[Fact]
2323
[Trait(Category.AcceptanceType, Category.CheckIn)]
2424
public void TestVirtualMachineSizeAndUsage()
2525
{

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.Compute.Test.ScenarioTests
1919
{
2020
public partial class VirtualMachineTests
2121
{
22-
[Fact(Skip = "TODO: Record")]
22+
[Fact]
2323
[Trait(Category.AcceptanceType, Category.CheckIn)]
2424
public void TestVirtualMachine()
2525
{

src/ResourceManager/Compute/Commands.Compute.Test/SessionRecords/Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineTests/TestVirtualMachine.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,6 +1361,58 @@
13611361
},
13621362
"StatusCode": 200
13631363
},
1364+
{
1365+
"RequestUri": "/subscriptions/a0d901ba-9956-4f7d-830c-2d7974c36666/resourceGroups/pstestrg5501/providers/Microsoft.Storage/storageAccounts/stopstestrg5501?api-version=2015-05-01-preview",
1366+
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYTBkOTAxYmEtOTk1Ni00ZjdkLTgzMGMtMmQ3OTc0YzM2NjY2L3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNTUwMS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNTUwMT9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=",
1367+
"RequestMethod": "GET",
1368+
"RequestBody": "",
1369+
"RequestHeaders": {
1370+
"User-Agent": [
1371+
"Microsoft.Azure.Management.Storage.StorageManagementClient/2.0.0.0"
1372+
]
1373+
},
1374+
"ResponseBody": "{\r\n \"id\": \"/subscriptions/a0d901ba-9956-4f7d-830c-2d7974c36666/resourceGroups/pstestrg5501/providers/Microsoft.Storage/storageAccounts/stopstestrg5501\",\r\n \"name\": \"stopstestrg5501\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"accountType\": \"Standard_GRS\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://stopstestrg5501.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg5501.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg5501.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"West US\",\r\n \"statusOfPrimary\": \"Available\",\r\n \"secondaryLocation\": \"East US\",\r\n \"statusOfSecondary\": \"Available\",\r\n \"creationTime\": \"2015-04-14T11:12:55.0321932Z\"\r\n }\r\n}",
1375+
"ResponseHeaders": {
1376+
"Content-Length": [
1377+
"672"
1378+
],
1379+
"Content-Type": [
1380+
"application/json; charset=utf-8"
1381+
],
1382+
"Expires": [
1383+
"-1"
1384+
],
1385+
"Pragma": [
1386+
"no-cache"
1387+
],
1388+
"x-ms-request-id": [
1389+
"4e09a47e-87ec-4266-872e-f28a35e47955"
1390+
],
1391+
"Cache-Control": [
1392+
"no-cache"
1393+
],
1394+
"Server": [
1395+
"Microsoft-HTTPAPI/2.0",
1396+
"Microsoft-HTTPAPI/2.0"
1397+
],
1398+
"x-ms-ratelimit-remaining-subscription-reads": [
1399+
"31997"
1400+
],
1401+
"x-ms-correlation-request-id": [
1402+
"7168fe54-cea4-418a-b73b-5f5e6019bfc0"
1403+
],
1404+
"x-ms-routing-request-id": [
1405+
"JAPANWEST:20150414T111324Z:7168fe54-cea4-418a-b73b-5f5e6019bfc0"
1406+
],
1407+
"Strict-Transport-Security": [
1408+
"max-age=31536000; includeSubDomains"
1409+
],
1410+
"Date": [
1411+
"Tue, 14 Apr 2015 11:13:23 GMT"
1412+
]
1413+
},
1414+
"StatusCode": 200
1415+
},
13641416
{
13651417
"RequestUri": "/subscriptions/a0d901ba-9956-4f7d-830c-2d7974c36666/resourceGroups/pstestrg5501/providers/Microsoft.Compute/virtualMachines/vmpstestrg5501?api-version=2015-05-01-preview",
13661418
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYTBkOTAxYmEtOTk1Ni00ZjdkLTgzMGMtMmQ3OTc0YzM2NjY2L3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNTUwMS9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3ZtcHN0ZXN0cmc1NTAxP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==",

src/ResourceManager/Compute/Commands.Compute.Test/SessionRecords/Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineTests/TestVirtualMachineSizeAndUsage.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,6 +1480,61 @@
14801480
},
14811481
"StatusCode": 200
14821482
},
1483+
{
1484+
"RequestUri": "/subscriptions/015b5c33-7725-4fc2-9c81-c9b07de44668/resourceGroups/pstestrg5803/providers/Microsoft.Storage/storageAccounts/stopstestrg5803?api-version=2015-05-01-preview",
1485+
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1YjVjMzMtNzcyNS00ZmMyLTljODEtYzliMDdkZTQ0NjY4L3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNTgwMy9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNTgwMz9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=",
1486+
"RequestMethod": "GET",
1487+
"RequestBody": "",
1488+
"RequestHeaders": {
1489+
"x-ms-client-request-id": [
1490+
"c226c2cd-e585-4077-b226-c78722cdef11"
1491+
],
1492+
"User-Agent": [
1493+
"Microsoft.Azure.Management.Storage.StorageManagementClient/2.0.0.0"
1494+
]
1495+
},
1496+
"ResponseBody": "{\r\n \"id\": \"/subscriptions/015b5c33-7725-4fc2-9c81-c9b07de44668/resourceGroups/pstestrg5803/providers/Microsoft.Storage/storageAccounts/stopstestrg5803\",\r\n \"name\": \"stopstestrg5803\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"accountType\": \"Standard_GRS\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://stopstestrg5803.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg5803.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg5803.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"West US\",\r\n \"statusOfPrimary\": \"Available\",\r\n \"secondaryLocation\": \"East US\",\r\n \"statusOfSecondary\": \"Available\",\r\n \"creationTime\": \"2015-04-15T09:31:54.3552074Z\"\r\n }\r\n}",
1497+
"ResponseHeaders": {
1498+
"Content-Length": [
1499+
"672"
1500+
],
1501+
"Content-Type": [
1502+
"application/json; charset=utf-8"
1503+
],
1504+
"Expires": [
1505+
"-1"
1506+
],
1507+
"Pragma": [
1508+
"no-cache"
1509+
],
1510+
"x-ms-request-id": [
1511+
"34e52591-d98b-4683-8cd0-38b3ff19897a"
1512+
],
1513+
"Cache-Control": [
1514+
"no-cache"
1515+
],
1516+
"Server": [
1517+
"Microsoft-HTTPAPI/2.0",
1518+
"Microsoft-HTTPAPI/2.0"
1519+
],
1520+
"x-ms-ratelimit-remaining-subscription-reads": [
1521+
"31870"
1522+
],
1523+
"x-ms-correlation-request-id": [
1524+
"cf93aa5d-dd8e-4c8f-bd3c-c00c81d250fa"
1525+
],
1526+
"x-ms-routing-request-id": [
1527+
"SOUTHCENTRALUS:20150415T093221Z:cf93aa5d-dd8e-4c8f-bd3c-c00c81d250fa"
1528+
],
1529+
"Strict-Transport-Security": [
1530+
"max-age=31536000; includeSubDomains"
1531+
],
1532+
"Date": [
1533+
"Wed, 15 Apr 2015 09:32:20 GMT"
1534+
]
1535+
},
1536+
"StatusCode": 200
1537+
},
14831538
{
14841539
"RequestUri": "/subscriptions/015b5c33-7725-4fc2-9c81-c9b07de44668/resourceGroups/pstestrg5803/providers/Microsoft.Compute/virtualMachines/vmpstestrg5803?api-version=2015-05-01-preview",
14851540
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1YjVjMzMtNzcyNS00ZmMyLTljODEtYzliMDdkZTQ0NjY4L3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNTgwMy9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3ZtcHN0ZXN0cmc1ODAzP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==",

0 commit comments

Comments
 (0)