-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added client side checks for account set props (#7426)
- Loading branch information
1 parent
ee1925d
commit b89d97c
Showing
6 changed files
with
277 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
148 changes: 148 additions & 0 deletions
148
...zure-storage-blob/src/test/resources/session-records/ServiceAPITestsetpropscorscheck.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
{ | ||
"networkCallRecords" : [ { | ||
"Method" : "PUT", | ||
"Uri" : "https://gaprastg71.blob.core.windows.net/jtcsetpropscorscheck0serviceapitestsetpropscorscheckd2d100161?restype=container", | ||
"Headers" : { | ||
"x-ms-version" : "2019-02-02", | ||
"User-Agent" : "azsdk-java-azure-storage-blob/12.3.0-beta.1 (11.0.4; Windows 10 10.0)", | ||
"x-ms-client-request-id" : "5d549ef1-ca87-4776-be9f-3b73920314a6" | ||
}, | ||
"Response" : { | ||
"x-ms-version" : "2019-02-02", | ||
"Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", | ||
"ETag" : "0x8D799E4A7F4D6C3", | ||
"Last-Modified" : "Wed, 15 Jan 2020 17:59:24 GMT", | ||
"retry-after" : "0", | ||
"Content-Length" : "0", | ||
"StatusCode" : "201", | ||
"x-ms-request-id" : "67fe4ef4-f01e-002d-44cd-cb2148000000", | ||
"Date" : "Wed, 15 Jan 2020 17:59:23 GMT", | ||
"x-ms-client-request-id" : "5d549ef1-ca87-4776-be9f-3b73920314a6" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "PUT", | ||
"Uri" : "https://gaprastg71.blob.core.windows.net?restype=service&comp=properties", | ||
"Headers" : { | ||
"x-ms-version" : "2019-02-02", | ||
"User-Agent" : "azsdk-java-azure-storage-blob/12.3.0-beta.1 (11.0.4; Windows 10 10.0)", | ||
"x-ms-client-request-id" : "ccf3bbf7-7dfa-463f-b195-500ae58eaf72", | ||
"Content-Type" : "application/xml; charset=utf-8" | ||
}, | ||
"Response" : { | ||
"x-ms-version" : "2019-02-02", | ||
"Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", | ||
"retry-after" : "0", | ||
"Content-Length" : "0", | ||
"StatusCode" : "202", | ||
"x-ms-request-id" : "67fe4ef7-f01e-002d-45cd-cb2148000000", | ||
"Date" : "Wed, 15 Jan 2020 17:59:25 GMT", | ||
"x-ms-client-request-id" : "ccf3bbf7-7dfa-463f-b195-500ae58eaf72" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "GET", | ||
"Uri" : "https://gaprastg71.blob.core.windows.net?restype=service&comp=properties", | ||
"Headers" : { | ||
"x-ms-version" : "2019-02-02", | ||
"User-Agent" : "azsdk-java-azure-storage-blob/12.3.0-beta.1 (11.0.4; Windows 10 10.0)", | ||
"x-ms-client-request-id" : "ced55d39-dd7a-472c-8ec2-10a9a29fc758" | ||
}, | ||
"Response" : { | ||
"Transfer-Encoding" : "chunked", | ||
"x-ms-version" : "2019-02-02", | ||
"Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", | ||
"Vary" : "Origin", | ||
"retry-after" : "0", | ||
"StatusCode" : "200", | ||
"x-ms-request-id" : "67fe4f0d-f01e-002d-4dcd-cb2148000000", | ||
"Body" : "<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors><CorsRule><AllowedMethods>GET</AllowedMethods><AllowedOrigins>microsoft.com</AllowedOrigins><AllowedHeaders>x-ms-version</AllowedHeaders><ExposedHeaders /><MaxAgeInSeconds>60</MaxAgeInSeconds></CorsRule></Cors><DeleteRetentionPolicy><Enabled>false</Enabled></DeleteRetentionPolicy><StaticWebsite><Enabled>false</Enabled></StaticWebsite><DefaultServiceVersion>2018-03-28</DefaultServiceVersion></StorageServiceProperties>", | ||
"Date" : "Wed, 15 Jan 2020 17:59:25 GMT", | ||
"x-ms-client-request-id" : "ced55d39-dd7a-472c-8ec2-10a9a29fc758", | ||
"Content-Type" : "application/xml" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "PUT", | ||
"Uri" : "https://gaprastg71.blob.core.windows.net?restype=service&comp=properties", | ||
"Headers" : { | ||
"x-ms-version" : "2019-02-02", | ||
"User-Agent" : "azsdk-java-azure-storage-blob/12.3.0-beta.1 (11.0.4; Windows 10 10.0)", | ||
"x-ms-client-request-id" : "e0f37959-0eca-4653-b724-f88b30984501", | ||
"Content-Type" : "application/xml; charset=utf-8" | ||
}, | ||
"Response" : { | ||
"x-ms-version" : "2019-02-02", | ||
"Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", | ||
"retry-after" : "0", | ||
"Content-Length" : "0", | ||
"StatusCode" : "202", | ||
"x-ms-request-id" : "67fe4f10-f01e-002d-4fcd-cb2148000000", | ||
"Date" : "Wed, 15 Jan 2020 17:59:25 GMT", | ||
"x-ms-client-request-id" : "e0f37959-0eca-4653-b724-f88b30984501" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "PUT", | ||
"Uri" : "https://gaprastg71.blob.core.windows.net?restype=service&comp=properties", | ||
"Headers" : { | ||
"x-ms-version" : "2019-02-02", | ||
"User-Agent" : "azsdk-java-azure-storage-blob/12.3.0-beta.1 (11.0.4; Windows 10 10.0)", | ||
"x-ms-client-request-id" : "4ec131b7-b87e-454d-8341-e6cc0f870a61", | ||
"Content-Type" : "application/xml; charset=utf-8" | ||
}, | ||
"Response" : { | ||
"x-ms-version" : "2019-02-02", | ||
"Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", | ||
"retry-after" : "0", | ||
"Content-Length" : "0", | ||
"StatusCode" : "202", | ||
"x-ms-request-id" : "67fe4f12-f01e-002d-50cd-cb2148000000", | ||
"Date" : "Wed, 15 Jan 2020 17:59:25 GMT", | ||
"x-ms-client-request-id" : "4ec131b7-b87e-454d-8341-e6cc0f870a61" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "GET", | ||
"Uri" : "https://gaprastg71.blob.core.windows.net?prefix=jtcsetpropscorscheck&comp=list", | ||
"Headers" : { | ||
"x-ms-version" : "2019-02-02", | ||
"User-Agent" : "azsdk-java-azure-storage-blob/12.3.0-beta.1 (11.0.4; Windows 10 10.0)", | ||
"x-ms-client-request-id" : "916fd24d-7ccd-4225-a5e2-d4167b3bd8d6" | ||
}, | ||
"Response" : { | ||
"Transfer-Encoding" : "chunked", | ||
"x-ms-version" : "2019-02-02", | ||
"Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", | ||
"Vary" : "Origin", | ||
"retry-after" : "0", | ||
"StatusCode" : "200", | ||
"x-ms-request-id" : "67fe4f13-f01e-002d-51cd-cb2148000000", | ||
"Body" : "<?xml version=\"1.0\" encoding=\"utf-8\"?><EnumerationResults ServiceEndpoint=\"https://gaprastg71.blob.core.windows.net/\"><Prefix>jtcsetpropscorscheck</Prefix><Containers><Container><Name>jtcsetpropscorscheck0serviceapitestsetpropscorscheckd2d100161</Name><Properties><Last-Modified>Wed, 15 Jan 2020 17:59:24 GMT</Last-Modified><Etag>\"0x8D799E4A7F4D6C3\"</Etag><LeaseStatus>unlocked</LeaseStatus><LeaseState>available</LeaseState><DefaultEncryptionScope>$account-encryption-key</DefaultEncryptionScope><DenyEncryptionScopeOverride>false</DenyEncryptionScopeOverride><HasImmutabilityPolicy>false</HasImmutabilityPolicy><HasLegalHold>false</HasLegalHold></Properties></Container></Containers><NextMarker /></EnumerationResults>", | ||
"Date" : "Wed, 15 Jan 2020 17:59:25 GMT", | ||
"x-ms-client-request-id" : "916fd24d-7ccd-4225-a5e2-d4167b3bd8d6", | ||
"Content-Type" : "application/xml" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "DELETE", | ||
"Uri" : "https://gaprastg71.blob.core.windows.net/jtcsetpropscorscheck0serviceapitestsetpropscorscheckd2d100161?restype=container", | ||
"Headers" : { | ||
"x-ms-version" : "2019-02-02", | ||
"User-Agent" : "azsdk-java-azure-storage-blob/12.3.0-beta.1 (11.0.4; Windows 10 10.0)", | ||
"x-ms-client-request-id" : "a0d38f04-3502-44b0-a0de-5ff7662e7268" | ||
}, | ||
"Response" : { | ||
"x-ms-version" : "2019-02-02", | ||
"Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", | ||
"retry-after" : "0", | ||
"Content-Length" : "0", | ||
"StatusCode" : "202", | ||
"x-ms-request-id" : "67fe4f14-f01e-002d-52cd-cb2148000000", | ||
"Date" : "Wed, 15 Jan 2020 17:59:26 GMT", | ||
"x-ms-client-request-id" : "a0d38f04-3502-44b0-a0de-5ff7662e7268" | ||
}, | ||
"Exception" : null | ||
} ], | ||
"variables" : [ "jtcsetpropscorscheck0serviceapitestsetpropscorscheckd2d100161" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters