Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/psSdkJson6' into psSdkJson6
  • Loading branch information
vrdmr committed Feb 1, 2018
commit 239871d8d3db0bea285589fc176cd1e9b2ba76a1
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ public void CanGetAllRunsByStatus()
[Fact]
public void CanGetAllRunsByStartTime()
{
var startTime = DateTime.Parse("2017-12-03T22:01:00-8");
var startTime = DateTime.Parse("2017-12-03T22:01:00-8").ToUniversalTime();
using (var context = MockContext.Start(GetType().FullName))
{
this.CreateAutomationClient(context);

var runs = this.automationClient.SoftwareUpdateConfigurationRuns.ListByStartTime(startTime);
Assert.NotNull(runs.Value);
Assert.Equal(2, runs.Value.Count);
Assert.Equal(3, runs.Value.Count);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"Entries": [
{
"RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&$filter=properties%2FstartTime%20ge%202017-12-03T22:01:00.0000000-08:00",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25SdW5zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldyYkZmlsdGVyPXByb3BlcnRpZXMlMkZzdGFydFRpbWUlMjBnZSUyMDIwMTctMTItMDNUMjIlM0EwMSUzQTAwLjAwMDAwMDAtMDglM0EwMA==",
"RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&$filter=properties%2FstartTime%20ge%202017-12-04T06:01:00.0000000Z",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25SdW5zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldyYkZmlsdGVyPXByb3BlcnRpZXMlMkZzdGFydFRpbWUlMjBnZSUyMDIwMTctMTItMDRUMDYlM0EwMSUzQTAwLjAwMDAwMDBa",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
"6eccc347-fc7c-4e17-8e7b-b6355528af06"
"1a87fe4c-74bc-4f7e-9980-d724477ede2d"
],
"accept-language": [
"en-US"
],
"User-Agent": [
"FxVersion/4.6.25211.01",
"Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
"Microsoft.Azure.Management.Automation.AutomationClient/3.0.1.0"
]
},
"ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/afb91d65-b7ff-488c-9ff5-8ea1678e3197\",\r\n \"name\": \"afb91d65-b7ff-488c-9ff5-8ea1678e3197\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T22:05:02.977826-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T22:05:02.977826-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:05:04.0366667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"name\": \"595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T22:01:01.9339046-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T22:01:01.9339046-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:01:03.79-08:00\"\r\n }\r\n }\r\n ]\r\n}",
"ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/c7f97f66-2aca-42a5-a292-23fbf9e83555\",\r\n \"name\": \"c7f97f66-2aca-42a5-a292-23fbf9e83555\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"test\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2018-01-31T15:04:07.1910863-08:00\",\r\n \"endTime\": \"2018-01-31T15:04:39.797-08:00\",\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2018-01-31T15:04:07.1910863-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-01-31T15:05:11.657-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/688151d2-6097-46a7-ae21-2d873c311c42\",\r\n \"name\": \"688151d2-6097-46a7-ae21-2d873c311c42\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"test\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2018-01-31T14:08:52.6090288-08:00\",\r\n \"endTime\": \"2018-01-31T14:43:48.56-08:00\",\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2018-01-31T14:08:52.6090288-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-01-31T14:44:00.463-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/5f806946-dc53-4261-91a5-4632cfac3df8\",\r\n \"name\": \"5f806946-dc53-4261-91a5-4632cfac3df8\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"test\"\r\n },\r\n \"status\": \"Failed\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2018-01-31T13:06:33.2246522-08:00\",\r\n \"endTime\": \"2018-01-31T13:06:34.1933756-08:00\",\r\n \"computerCount\": 1,\r\n \"failedCount\": 1,\r\n \"creationTime\": \"2018-01-31T13:06:33.2246522-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-01-31T13:49:42.267-08:00\"\r\n }\r\n }\r\n ]\r\n}",
"ResponseHeaders": {
"Content-Type": [
"application/json; charset=utf-8"
Expand All @@ -29,7 +29,7 @@
"no-cache"
],
"Date": [
"Mon, 04 Dec 2017 06:27:40 GMT"
"Thu, 01 Feb 2018 01:44:48 GMT"
],
"Pragma": [
"no-cache"
Expand All @@ -44,7 +44,7 @@
"Accept-Encoding"
],
"x-ms-request-id": [
"6eccc347-fc7c-4e17-8e7b-b6355528af06"
"1a87fe4c-74bc-4f7e-9980-d724477ede2d"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
Expand All @@ -56,13 +56,13 @@
"ASP.NET"
],
"x-ms-ratelimit-remaining-subscription-reads": [
"14992"
"14995"
],
"x-ms-correlation-request-id": [
"52beda31-7337-4fe2-8898-c245b4736ce7"
"fd246534-f19c-4215-b538-c0676098d3bc"
],
"x-ms-routing-request-id": [
"WESTUS2:20171204T062740Z:52beda31-7337-4fe2-8898-c245b4736ce7"
"WESTUS2:20180201T014448Z:fd246534-f19c-4215-b538-c0676098d3bc"
]
},
"StatusCode": 200
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.