Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage base tests #1371

Merged
merged 31 commits into from
Feb 27, 2020
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
e857605
- converted CosmosPartitioned tests
Oct 25, 2019
cd700bd
added CosmosClientOptions test
Oct 25, 2019
64d04ab
- converted cosmosDbStorage tests
Oct 25, 2019
97a79de
converted BlobStorage tests
Oct 25, 2019
c5e2b0d
converted MemoryStorage
Oct 28, 2019
7114010
Merge branch 'master' into storageBaseTests
mdrichardson Oct 28, 2019
6ffe99d
- fixed cosmosPartitioned test
Oct 28, 2019
4c0266c
uncommented test
Oct 28, 2019
170dcb0
Merge branch 'master' into storageBaseTests
mdrichardson Oct 31, 2019
830e7ae
Merge branch 'master' into storageBaseTests
Stevenic Nov 12, 2019
e982805
Merge branch 'master' into storageBaseTests
Stevenic Nov 12, 2019
132fe44
Merge branch 'master' into storageBaseTests
mdrichardson Nov 14, 2019
5816fb5
moved newItem.eTag check to outer if
Nov 14, 2019
c9f91a3
moved empty keys/changes checks under the Promise
Nov 15, 2019
a1b8311
*actually* moved throw under the promise. whoops
Nov 15, 2019
ba6de67
Merge branch 'master' into storageBaseTests
mdrichardson Nov 15, 2019
3b12256
Merge branch 'master' into storageBaseTests
mdrichardson Nov 21, 2019
23fa207
minor typo fix
Nov 21, 2019
9b76498
Merge branch 'master' into storageBaseTests
mdrichardson Nov 27, 2019
eb03049
Merge branch 'master' into storageBaseTests
mdrichardson Dec 9, 2019
c78eabf
Merge branch 'master' into storageBaseTests
mdrichardson Dec 11, 2019
561cc8a
fixed tests
Dec 12, 2019
5c9d98b
fixed tests failing due to doOnce
Dec 12, 2019
0654b15
restore expectedCalls
Dec 12, 2019
928f675
Merge branch 'master' into storageBaseTests
Stevenic Feb 18, 2020
38641f0
Merge branch 'master' into storageBaseTests
Stevenic Feb 19, 2020
f892ac1
Merge branch 'master' into storageBaseTests
Stevenic Feb 19, 2020
6fca920
Merge branch 'master' into storageBaseTests
Stevenic Feb 20, 2020
c1c9cb7
Merge branch 'master' into storageBaseTests
Stevenic Feb 24, 2020
3beec12
Merge branch 'master' into storageBaseTests
mdrichardson Feb 25, 2020
9bf9b42
Merge branch 'master' into storageBaseTests
Stevenic Feb 27, 2020
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
1 change: 1 addition & 0 deletions libraries/botbuilder-azure/src/cosmosDbStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export interface CosmosDbStorageSettings {
documentCollectionRequestOptions?: RequestOptions;
/**
* (Optional) partitionKey that are passed when the document CosmosDbStorage is created.
* @deprecated Please use [[CosmosDbPartitionedStorage]]. See https://github.com/microsoft/botframework-sdk/issues/5467
*/
partitionKey?: string;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,290 @@
[
{
"scope": "http://127.0.0.1:10000",
"method": "PUT",
"path": "/devstoreaccount1/test/createPoco",
"body": {
"id": "createPoco",
"realId": "createPoco",
"document": {
"id": 1
}
},
"status": 201,
"response": "",
"rawHeaders": [
"Transfer-Encoding",
"chunked",
"Content-MD5",
"0oggDrDUjV81m/z5A1GUxw==",
"Last-Modified",
"Mon, 28 Oct 2019 16:57:26 GMT",
"ETag",
"\"0x8D75BC7E925C280\"",
"Server",
"Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0",
"x-ms-request-id",
"7415cdb1-5dcb-4046-8643-8effd4e74db0",
"x-ms-version",
"2018-03-28",
"x-ms-request-server-encrypted",
"true",
"Date",
"Mon, 28 Oct 2019 16:57:25 GMT"
]
},
{
"scope": "http://127.0.0.1:10000",
"method": "PUT",
"path": "/devstoreaccount1/test/createPocoStoreItem",
"body": {
"id": "createPocoStoreItem",
"realId": "createPocoStoreItem",
"document": {
"id": 2
}
},
"status": 201,
"response": "",
"rawHeaders": [
"Transfer-Encoding",
"chunked",
"Content-MD5",
"5JeqCrMTe0GsO1yvwrZArw==",
"Last-Modified",
"Mon, 28 Oct 2019 16:57:26 GMT",
"ETag",
"\"0x8D75BC7E931F780\"",
"Server",
"Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0",
"x-ms-request-id",
"0addceb0-b09a-40ef-bd36-14b16e648dda",
"x-ms-version",
"2018-03-28",
"x-ms-request-server-encrypted",
"true",
"Date",
"Mon, 28 Oct 2019 16:57:25 GMT"
]
},
{
"scope": "http://127.0.0.1:10000",
"method": "HEAD",
"path": "/devstoreaccount1/test/createPoco",
"body": "",
"status": 200,
"response": "",
"rawHeaders": [
"Content-Length",
"61",
"Content-Type",
"application/octet-stream",
"Content-MD5",
"0oggDrDUjV81m/z5A1GUxw==",
"Last-Modified",
"Mon, 28 Oct 2019 16:57:26 GMT",
"Accept-Ranges",
"bytes",
"ETag",
"\"0x8D75BC7E925C280\"",
"Server",
"Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0",
"x-ms-request-id",
"a5ee5a4e-2c9d-4183-a657-3ccbca5d149c",
"x-ms-version",
"2018-03-28",
"x-ms-creation-time",
"Mon, 28 Oct 2019 16:57:26 GMT",
"x-ms-lease-status",
"unlocked",
"x-ms-lease-state",
"available",
"x-ms-blob-type",
"BlockBlob",
"x-ms-server-encrypted",
"true",
"Date",
"Mon, 28 Oct 2019 16:57:25 GMT"
]
},
{
"scope": "http://127.0.0.1:10000",
"method": "HEAD",
"path": "/devstoreaccount1/test/createPocoStoreItem",
"body": "",
"status": 200,
"response": "",
"rawHeaders": [
"Content-Length",
"79",
"Content-Type",
"application/octet-stream",
"Content-MD5",
"5JeqCrMTe0GsO1yvwrZArw==",
"Last-Modified",
"Mon, 28 Oct 2019 16:57:26 GMT",
"Accept-Ranges",
"bytes",
"ETag",
"\"0x8D75BC7E931F780\"",
"Server",
"Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0",
"x-ms-request-id",
"8b15d8cb-a882-4b96-b881-ddcaacc2df39",
"x-ms-version",
"2018-03-28",
"x-ms-creation-time",
"Mon, 28 Oct 2019 16:57:26 GMT",
"x-ms-lease-status",
"unlocked",
"x-ms-lease-state",
"available",
"x-ms-blob-type",
"BlockBlob",
"x-ms-server-encrypted",
"true",
"Date",
"Mon, 28 Oct 2019 16:57:25 GMT"
]
},
{
"scope": "http://127.0.0.1:10000",
"method": "HEAD",
"path": "/devstoreaccount1/test/createPocoStoreItem?comp=metadata",
"body": "",
"status": 200,
"response": "",
"rawHeaders": [
"Transfer-Encoding",
"chunked",
"Last-Modified",
"Mon, 28 Oct 2019 16:57:26 GMT",
"ETag",
"\"0x8D75BC7E931F780\"",
"Server",
"Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0",
"x-ms-request-id",
"0a5710fc-dff1-4317-9e2d-16a6b0ad7899",
"x-ms-version",
"2018-03-28",
"Date",
"Mon, 28 Oct 2019 16:57:25 GMT"
]
},
{
"scope": "http://127.0.0.1:10000",
"method": "HEAD",
"path": "/devstoreaccount1/test/createPoco?comp=metadata",
"body": "",
"status": 200,
"response": "",
"rawHeaders": [
"Transfer-Encoding",
"chunked",
"Last-Modified",
"Mon, 28 Oct 2019 16:57:26 GMT",
"ETag",
"\"0x8D75BC7E925C280\"",
"Server",
"Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0",
"x-ms-request-id",
"de32bdad-eb9c-4665-9bc9-a1b82ccde5d7",
"x-ms-version",
"2018-03-28",
"Date",
"Mon, 28 Oct 2019 16:57:25 GMT"
]
},
{
"scope": "http://127.0.0.1:10000",
"method": "GET",
"path": "/devstoreaccount1/test/createPoco",
"body": "",
"status": 200,
"response": {
"id": "createPoco",
"realId": "createPoco",
"document": {
"id": 1
}
},
"rawHeaders": [
"Content-Length",
"61",
"Content-Type",
"application/octet-stream",
"Content-MD5",
"0oggDrDUjV81m/z5A1GUxw==",
"Last-Modified",
"Mon, 28 Oct 2019 16:57:26 GMT",
"Accept-Ranges",
"bytes",
"ETag",
"\"0x8D75BC7E925C280\"",
"Server",
"Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0",
"x-ms-request-id",
"129be460-c679-4501-8231-6aa4e37fc887",
"x-ms-version",
"2018-03-28",
"x-ms-creation-time",
"Mon, 28 Oct 2019 16:57:26 GMT",
"x-ms-lease-status",
"unlocked",
"x-ms-lease-state",
"available",
"x-ms-blob-type",
"BlockBlob",
"x-ms-server-encrypted",
"true",
"Date",
"Mon, 28 Oct 2019 16:57:25 GMT"
]
},
{
"scope": "http://127.0.0.1:10000",
"method": "GET",
"path": "/devstoreaccount1/test/createPocoStoreItem",
"body": "",
"status": 200,
"response": {
"id": "createPocoStoreItem",
"realId": "createPocoStoreItem",
"document": {
"id": 2
}
},
"rawHeaders": [
"Content-Length",
"79",
"Content-Type",
"application/octet-stream",
"Content-MD5",
"5JeqCrMTe0GsO1yvwrZArw==",
"Last-Modified",
"Mon, 28 Oct 2019 16:57:26 GMT",
"Accept-Ranges",
"bytes",
"ETag",
"\"0x8D75BC7E931F780\"",
"Server",
"Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0",
"x-ms-request-id",
"88cf85fa-e2ae-46bc-a878-1f38dc060b13",
"x-ms-version",
"2018-03-28",
"x-ms-creation-time",
"Mon, 28 Oct 2019 16:57:26 GMT",
"x-ms-lease-status",
"unlocked",
"x-ms-lease-state",
"available",
"x-ms-blob-type",
"BlockBlob",
"x-ms-server-encrypted",
"true",
"Date",
"Mon, 28 Oct 2019 16:57:25 GMT"
]
}
]
Loading