-
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.
Add createIfNotExists to TableServiceClients
- Loading branch information
Brandon Siegel
committed
Aug 29, 2020
1 parent
844b4ae
commit f1fc692
Showing
12 changed files
with
513 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
54 changes: 54 additions & 0 deletions
54
...azure-data-tables/src/test/resources/session-records/serviceCreateTableFailsIfExists.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,54 @@ | ||
{ | ||
"networkCallRecords" : [ { | ||
"Method" : "POST", | ||
"Uri" : "https://REDACTED.table.core.windows.net/Tables", | ||
"Headers" : { | ||
"x-ms-version" : "2019-02-02", | ||
"User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", | ||
"x-ms-client-request-id" : "d86532b0-9bfa-474d-9a54-49d1c0294cd2", | ||
"Content-Type" : "application/json" | ||
}, | ||
"Response" : { | ||
"x-ms-version" : "2019-02-02", | ||
"Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", | ||
"X-Content-Type-Options" : "nosniff", | ||
"retry-after" : "0", | ||
"StatusCode" : "204", | ||
"Date" : "Thu, 27 Aug 2020 21:38:34 GMT", | ||
"Cache-Control" : "no-cache", | ||
"DataServiceId" : "https://brsiegelsample.table.core.windows.net/Tables('test15790b43b7')", | ||
"Content-Length" : "0", | ||
"x-ms-request-id" : "f56aa02c-4002-00c8-61ba-7c286d000000", | ||
"Preference-Applied" : "return-no-content", | ||
"x-ms-client-request-id" : "d86532b0-9bfa-474d-9a54-49d1c0294cd2", | ||
"Location" : "https://brsiegelsample.table.core.windows.net/Tables('test15790b43b7')" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "POST", | ||
"Uri" : "https://REDACTED.table.core.windows.net/Tables", | ||
"Headers" : { | ||
"x-ms-version" : "2019-02-02", | ||
"User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", | ||
"x-ms-client-request-id" : "f8f6d880-45e0-4b30-b42f-8c55014bcc94", | ||
"Content-Type" : "application/json" | ||
}, | ||
"Response" : { | ||
"Transfer-Encoding" : "chunked", | ||
"x-ms-version" : "2019-02-02", | ||
"Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", | ||
"X-Content-Type-Options" : "nosniff", | ||
"retry-after" : "0", | ||
"StatusCode" : "409", | ||
"Date" : "Thu, 27 Aug 2020 21:38:34 GMT", | ||
"Cache-Control" : "no-cache", | ||
"x-ms-request-id" : "f56aa030-4002-00c8-63ba-7c286d000000", | ||
"Body" : "{\"odata.error\":{\"code\":\"TableAlreadyExists\",\"message\":{\"lang\":\"en-US\",\"value\":\"The table specified already exists.\\nRequestId:f56aa030-4002-00c8-63ba-7c286d000000\\nTime:2020-08-27T21:38:34.8728592Z\"}}}", | ||
"Preference-Applied" : "return-no-content", | ||
"x-ms-client-request-id" : "f8f6d880-45e0-4b30-b42f-8c55014bcc94", | ||
"Content-Type" : "application/json;odata=minimalmetadata;streaming=true;charset=utf-8" | ||
}, | ||
"Exception" : null | ||
} ], | ||
"variables" : [ "test15790b43b7" ] | ||
} |
54 changes: 54 additions & 0 deletions
54
...-data-tables/src/test/resources/session-records/serviceCreateTableFailsIfExistsAsync.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,54 @@ | ||
{ | ||
"networkCallRecords" : [ { | ||
"Method" : "POST", | ||
"Uri" : "https://REDACTED.table.core.windows.net/Tables", | ||
"Headers" : { | ||
"x-ms-version" : "2019-02-02", | ||
"User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", | ||
"x-ms-client-request-id" : "4b14eb7d-4782-47b6-87f1-ef7c18ec6375", | ||
"Content-Type" : "application/json" | ||
}, | ||
"Response" : { | ||
"x-ms-version" : "2019-02-02", | ||
"Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", | ||
"X-Content-Type-Options" : "nosniff", | ||
"retry-after" : "0", | ||
"StatusCode" : "204", | ||
"Date" : "Thu, 27 Aug 2020 21:37:02 GMT", | ||
"Cache-Control" : "no-cache", | ||
"DataServiceId" : "https://brsiegelsample.table.core.windows.net/Tables('test95670e2797')", | ||
"Content-Length" : "0", | ||
"x-ms-request-id" : "18358b1a-5002-0030-3fba-7c7493000000", | ||
"Preference-Applied" : "return-no-content", | ||
"x-ms-client-request-id" : "4b14eb7d-4782-47b6-87f1-ef7c18ec6375", | ||
"Location" : "https://brsiegelsample.table.core.windows.net/Tables('test95670e2797')" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "POST", | ||
"Uri" : "https://REDACTED.table.core.windows.net/Tables", | ||
"Headers" : { | ||
"x-ms-version" : "2019-02-02", | ||
"User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", | ||
"x-ms-client-request-id" : "8866db20-4dbd-4b0c-842e-f9b9d5820482", | ||
"Content-Type" : "application/json" | ||
}, | ||
"Response" : { | ||
"Transfer-Encoding" : "chunked", | ||
"x-ms-version" : "2019-02-02", | ||
"Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", | ||
"X-Content-Type-Options" : "nosniff", | ||
"retry-after" : "0", | ||
"StatusCode" : "409", | ||
"Date" : "Thu, 27 Aug 2020 21:37:02 GMT", | ||
"Cache-Control" : "no-cache", | ||
"x-ms-request-id" : "18358b2d-5002-0030-50ba-7c7493000000", | ||
"Body" : "{\"odata.error\":{\"code\":\"TableAlreadyExists\",\"message\":{\"lang\":\"en-US\",\"value\":\"The table specified already exists.\\nRequestId:18358b2d-5002-0030-50ba-7c7493000000\\nTime:2020-08-27T21:37:02.7996625Z\"}}}", | ||
"Preference-Applied" : "return-no-content", | ||
"x-ms-client-request-id" : "8866db20-4dbd-4b0c-842e-f9b9d5820482", | ||
"Content-Type" : "application/json;odata=minimalmetadata;streaming=true;charset=utf-8" | ||
}, | ||
"Exception" : null | ||
} ], | ||
"variables" : [ "test95670e2797" ] | ||
} |
29 changes: 29 additions & 0 deletions
29
...s/azure-data-tables/src/test/resources/session-records/serviceCreateTableIfNotExists.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,29 @@ | ||
{ | ||
"networkCallRecords" : [ { | ||
"Method" : "POST", | ||
"Uri" : "https://REDACTED.table.core.windows.net/Tables", | ||
"Headers" : { | ||
"x-ms-version" : "2019-02-02", | ||
"User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", | ||
"x-ms-client-request-id" : "028ae606-12ab-429a-b0d0-a6ee00215377", | ||
"Content-Type" : "application/json" | ||
}, | ||
"Response" : { | ||
"x-ms-version" : "2019-02-02", | ||
"Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", | ||
"X-Content-Type-Options" : "nosniff", | ||
"retry-after" : "0", | ||
"StatusCode" : "204", | ||
"Date" : "Thu, 27 Aug 2020 21:38:31 GMT", | ||
"Cache-Control" : "no-cache", | ||
"DataServiceId" : "https://brsiegelsample.table.core.windows.net/Tables('test79947b18e1')", | ||
"Content-Length" : "0", | ||
"x-ms-request-id" : "8ef6e693-1002-0088-30ba-7c2f55000000", | ||
"Preference-Applied" : "return-no-content", | ||
"x-ms-client-request-id" : "028ae606-12ab-429a-b0d0-a6ee00215377", | ||
"Location" : "https://brsiegelsample.table.core.windows.net/Tables('test79947b18e1')" | ||
}, | ||
"Exception" : null | ||
} ], | ||
"variables" : [ "test79947b18e1" ] | ||
} |
29 changes: 29 additions & 0 deletions
29
...re-data-tables/src/test/resources/session-records/serviceCreateTableIfNotExistsAsync.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,29 @@ | ||
{ | ||
"networkCallRecords" : [ { | ||
"Method" : "POST", | ||
"Uri" : "https://REDACTED.table.core.windows.net/Tables", | ||
"Headers" : { | ||
"x-ms-version" : "2019-02-02", | ||
"User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", | ||
"x-ms-client-request-id" : "5c560ffe-c0ab-44a2-8dfd-c171966c9ecf", | ||
"Content-Type" : "application/json" | ||
}, | ||
"Response" : { | ||
"x-ms-version" : "2019-02-02", | ||
"Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", | ||
"X-Content-Type-Options" : "nosniff", | ||
"retry-after" : "0", | ||
"StatusCode" : "204", | ||
"Date" : "Thu, 27 Aug 2020 21:36:51 GMT", | ||
"Cache-Control" : "no-cache", | ||
"DataServiceId" : "https://brsiegelsample.table.core.windows.net/Tables('test002158a072')", | ||
"Content-Length" : "0", | ||
"x-ms-request-id" : "140844c0-6002-003b-5bba-7c8ff8000000", | ||
"Preference-Applied" : "return-no-content", | ||
"x-ms-client-request-id" : "5c560ffe-c0ab-44a2-8dfd-c171966c9ecf", | ||
"Location" : "https://brsiegelsample.table.core.windows.net/Tables('test002158a072')" | ||
}, | ||
"Exception" : null | ||
} ], | ||
"variables" : [ "test002158a072" ] | ||
} |
Oops, something went wrong.