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

Clean up emulator check in Cosmos Test #2547

Merged
merged 10 commits into from
Jul 21, 2020
Merged

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,331 @@
[
{
"scope": "https://localhost:8081",
"method": "GET",
"path": "/",
"body": "",
"status": 200,
"response": {
"_self": "",
"id": "localhost",
"_rid": "localhost",
"media": "//media/",
"addresses": "//addresses/",
"_dbs": "//dbs/",
"writableLocations": [
{
"name": "South Central US",
"databaseAccountEndpoint": "https://127.0.0.1:8081/"
}
],
"readableLocations": [
{
"name": "South Central US",
"databaseAccountEndpoint": "https://127.0.0.1:8081/"
}
],
"enableMultipleWriteLocations": false,
"userReplicationPolicy": {
"asyncReplication": false,
"minReplicaSetSize": 1,
"maxReplicasetSize": 4
},
"userConsistencyPolicy": {
"defaultConsistencyLevel": "Session"
},
"systemReplicationPolicy": {
"minReplicaSetSize": 1,
"maxReplicasetSize": 4
},
"readPolicy": {
"primaryReadCoefficient": 1,
"secondaryReadCoefficient": 1
},
"queryEngineConfiguration": "{\"maxSqlQueryInputLength\":262144,\"maxJoinsPerSqlQuery\":5,\"maxLogicalAndPerSqlQuery\":500,\"maxLogicalOrPerSqlQuery\":500,\"maxUdfRefPerSqlQuery\":10,\"maxInExpressionItemsCount\":16000,\"queryMaxInMemorySortDocumentCount\":500,\"maxQueryRequestTimeoutFraction\":0.9,\"sqlAllowNonFiniteNumbers\":false,\"sqlAllowAggregateFunctions\":true,\"sqlAllowSubQuery\":true,\"sqlAllowScalarSubQuery\":true,\"allowNewKeywords\":true,\"sqlAllowLike\":false,\"sqlAllowGroupByClause\":true,\"maxSpatialQueryCells\":12,\"spatialMaxGeometryPointCount\":256,\"sqlDisableQueryILOptimization\":false,\"sqlAllowTop\":true,\"enableSpatialIndexing\":true}"
},
"rawHeaders": [
"Cache-Control",
"no-store, no-cache",
"Pragma",
"no-cache",
"Transfer-Encoding",
"chunked",
"Content-Type",
"application/json",
"Content-Location",
"https://localhost:8081/",
"Server",
"Microsoft-HTTPAPI/2.0",
"Access-Control-Allow-Origin",
"",
"Access-Control-Allow-Credentials",
"true",
"x-ms-max-media-storage-usage-mb",
"10240",
"x-ms-media-storage-usage-mb",
"0",
"x-ms-databaseaccount-consumed-mb",
"0",
"x-ms-databaseaccount-reserved-mb",
"0",
"x-ms-databaseaccount-provisioned-mb",
"0",
"x-ms-gatewayversion",
"version=2.9.2",
"Date",
"Tue, 21 Jul 2020 00:00:01 GMT",
"Connection",
"close"
],
"responseIsBinary": false
},
{
"scope": "https://localhost:8081",
"method": "GET",
"path": "/dbs/CosmosPartitionedStorageTestDb/colls/CosmosPartitionedStorageTestContainer-8",
"body": "",
"status": 404,
"response": {
"code": "NotFound",
"message": "Message: {\"Errors\":[\"Resource Not Found\"]}\r\nActivityId: 10ab05b9-74e7-4f7b-ae5c-44a11259d412, Request URI: /apps/DocDbApp/services/DocDbMaster0/partitions/780e44f4-38c8-11e6-8106-8cdcd42c33be/replicas/1p/, RequestStats: \r\nRequestStartTime: 2020-07-21T00:00:01.9498785Z, RequestEndTime: 2020-07-21T00:00:01.9558824Z, Number of regions attempted:1\r\nResponseTime: 2020-07-21T00:00:01.9558824Z, StoreResult: StorePhysicalAddress: rntbd://127.0.0.1:10251/apps/DocDbApp/services/DocDbMaster0/partitions/780e44f4-38c8-11e6-8106-8cdcd42c33be/replicas/1p/, LSN: 5629, GlobalCommittedLsn: -1, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#5629, UsingLocalLSN: False, TransportException: null, ResourceType: Collection, OperationType: Read\r\nResponseTime: 2020-07-21T00:00:01.9558824Z, StoreResult: StorePhysicalAddress: rntbd://127.0.0.1:10251/apps/DocDbApp/services/DocDbMaster0/partitions/780e44f4-38c8-11e6-8106-8cdcd42c33be/replicas/1p/, LSN: 5629, GlobalCommittedLsn: -1, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#5629, UsingLocalLSN: False, TransportException: null, ResourceType: Collection, OperationType: Read\r\n, SDK: Microsoft.Azure.Documents.Common/2.9.2"
},
"rawHeaders": [
"Transfer-Encoding",
"chunked",
"Content-Type",
"application/json",
"Content-Location",
"https://localhost:8081/dbs/CosmosPartitionedStorageTestDb/colls/CosmosPartitionedStorageTestContainer-8",
"Server",
"Microsoft-HTTPAPI/2.0",
"Access-Control-Allow-Origin",
"",
"Access-Control-Allow-Credentials",
"true",
"x-ms-last-state-change-utc",
"Mon, 20 Jul 2020 23:59:34.506 GMT",
"lsn",
"5629",
"x-ms-schemaversion",
"1.9",
"x-ms-quorum-acked-lsn",
"5629",
"x-ms-current-write-quorum",
"1",
"x-ms-current-replica-set-size",
"1",
"x-ms-xp-role",
"0",
"x-ms-global-Committed-lsn",
"-1",
"x-ms-number-of-read-regions",
"0",
"x-ms-transport-request-id",
"8",
"x-ms-cosmos-llsn",
"5629",
"x-ms-cosmos-quorum-acked-llsn",
"5629",
"x-ms-session-token",
"0:-1#5629",
"x-ms-request-charge",
"2",
"x-ms-serviceversion",
"version=2.9.0.0",
"x-ms-activity-id",
"10ab05b9-74e7-4f7b-ae5c-44a11259d412",
"x-ms-gatewayversion",
"version=2.9.2",
"Date",
"Tue, 21 Jul 2020 00:00:01 GMT",
"Connection",
"close"
],
"responseIsBinary": false
},
{
"scope": "https://localhost:8081",
"method": "GET",
"path": "/dbs/CosmosPartitionedStorageTestDb/colls/CosmosPartitionedStorageTestContainer-8",
"body": "",
"status": 404,
"response": {
"code": "NotFound",
"message": "Message: {\"Errors\":[\"Resource Not Found\"]}\r\nActivityId: 66cbb92f-e2f5-4c68-ac11-9793a703dd6e, Request URI: /apps/DocDbApp/services/DocDbMaster0/partitions/780e44f4-38c8-11e6-8106-8cdcd42c33be/replicas/1p/, RequestStats: \r\nRequestStartTime: 2020-07-21T00:00:01.9728776Z, RequestEndTime: 2020-07-21T00:00:01.9748775Z, Number of regions attempted:1\r\nResponseTime: 2020-07-21T00:00:01.9748775Z, StoreResult: StorePhysicalAddress: rntbd://127.0.0.1:10251/apps/DocDbApp/services/DocDbMaster0/partitions/780e44f4-38c8-11e6-8106-8cdcd42c33be/replicas/1p/, LSN: 5629, GlobalCommittedLsn: -1, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#5629, UsingLocalLSN: False, TransportException: null, ResourceType: Collection, OperationType: Read\r\nResponseTime: 2020-07-21T00:00:01.9748775Z, StoreResult: StorePhysicalAddress: rntbd://127.0.0.1:10251/apps/DocDbApp/services/DocDbMaster0/partitions/780e44f4-38c8-11e6-8106-8cdcd42c33be/replicas/1p/, LSN: 5629, GlobalCommittedLsn: -1, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#5629, UsingLocalLSN: False, TransportException: null, ResourceType: Collection, OperationType: Read\r\n, SDK: Microsoft.Azure.Documents.Common/2.9.2"
},
"rawHeaders": [
"Transfer-Encoding",
"chunked",
"Content-Type",
"application/json",
"Content-Location",
"https://localhost:8081/dbs/CosmosPartitionedStorageTestDb/colls/CosmosPartitionedStorageTestContainer-8",
"Server",
"Microsoft-HTTPAPI/2.0",
"Access-Control-Allow-Origin",
"",
"Access-Control-Allow-Credentials",
"true",
"x-ms-last-state-change-utc",
"Mon, 20 Jul 2020 23:59:34.506 GMT",
"lsn",
"5629",
"x-ms-schemaversion",
"1.9",
"x-ms-quorum-acked-lsn",
"5629",
"x-ms-current-write-quorum",
"1",
"x-ms-current-replica-set-size",
"1",
"x-ms-xp-role",
"0",
"x-ms-global-Committed-lsn",
"-1",
"x-ms-number-of-read-regions",
"0",
"x-ms-transport-request-id",
"10",
"x-ms-cosmos-llsn",
"5629",
"x-ms-cosmos-quorum-acked-llsn",
"5629",
"x-ms-session-token",
"0:-1#5629",
"x-ms-request-charge",
"2",
"x-ms-serviceversion",
"version=2.9.0.0",
"x-ms-activity-id",
"66cbb92f-e2f5-4c68-ac11-9793a703dd6e",
"x-ms-gatewayversion",
"version=2.9.2",
"Date",
"Tue, 21 Jul 2020 00:00:01 GMT",
"Connection",
"close"
],
"responseIsBinary": false
},
{
"scope": "https://localhost:8081",
"method": "POST",
"path": "/dbs/CosmosPartitionedStorageTestDb/colls",
"body": {
"id": "CosmosPartitionedStorageTestContainer-8",
"partitionKey": {
"paths": [
"/id"
]
}
},
"status": 201,
"response": {
"id": "CosmosPartitionedStorageTestContainer-8",
"indexingPolicy": {
"indexingMode": "consistent",
"automatic": true,
"includedPaths": [
{
"path": "/*"
}
],
"excludedPaths": [
{
"path": "/\"_etag\"/?"
}
]
},
"partitionKey": {
"paths": [
"/id"
],
"kind": "Hash"
},
"conflictResolutionPolicy": {
"mode": "LastWriterWins",
"conflictResolutionPath": "/_ts",
"conflictResolutionProcedure": ""
},
"geospatialConfig": {
"type": "Geography"
},
"_rid": "DIQKAJDwXJQ=",
"_ts": 1595289602,
"_self": "dbs/DIQKAA==/colls/DIQKAJDwXJQ=/",
"_etag": "\"00000000-0000-0000-5ef1-e1ef51d001d6\"",
"_docs": "docs/",
"_sprocs": "sprocs/",
"_triggers": "triggers/",
"_udfs": "udfs/",
"_conflicts": "conflicts/"
},
"rawHeaders": [
"Cache-Control",
"no-store, no-cache",
"Pragma",
"no-cache",
"Transfer-Encoding",
"chunked",
"Content-Type",
"application/json",
"Server",
"Microsoft-HTTPAPI/2.0",
"Access-Control-Allow-Origin",
"",
"Access-Control-Allow-Credentials",
"true",
"x-ms-last-state-change-utc",
"Mon, 20 Jul 2020 23:59:42.579 GMT",
"etag",
"\"00000000-0000-0000-5ef1-e1ef51d001d6\"",
"collection-partition-index",
"0",
"collection-service-index",
"0",
"lsn",
"3448",
"x-ms-schemaversion",
"1.9",
"x-ms-alt-content-path",
"dbs/CosmosPartitionedStorageTestDb",
"x-ms-quorum-acked-lsn",
"3448",
"x-ms-current-write-quorum",
"1",
"x-ms-current-replica-set-size",
"1",
"x-ms-xp-role",
"0",
"x-ms-global-Committed-lsn",
"-1",
"x-ms-number-of-read-regions",
"0",
"x-ms-item-lsn",
"3448",
"x-ms-transport-request-id",
"2",
"x-ms-cosmos-llsn",
"3448",
"x-ms-cosmos-quorum-acked-llsn",
"3448",
"x-ms-cosmos-item-llsn",
"3448",
"x-ms-session-token",
"0:-1#3448",
"x-ms-request-charge",
"1",
"x-ms-serviceversion",
"version=2.9.0.0",
"x-ms-activity-id",
"c1c7a10c-440c-49d3-9488-805d7d1affb2",
"x-ms-gatewayversion",
"version=2.9.2",
"Date",
"Tue, 21 Jul 2020 00:00:02 GMT",
"Connection",
"close"
],
"responseIsBinary": false
}
]
Loading