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

[Tables] Architect Feedback #15196

Merged
merged 7 commits into from
Aug 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions eng/pipelines/templates/steps/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ steps:
$testDirs = (./eng/scripts/get_test_dirs.ps1 -serviceDir $(SCOPE))
foreach ($td in $testDirs) {
pushd $td
Write-Host "##[command]Executing go test -run "^Test" -race -v -coverprofile coverage.txt -covermode atomic $td | go-junit-report -set-exit-code > report.xml"
go test -run "^Test" -race -v -coverprofile coverage.txt -covermode atomic . | go-junit-report -set-exit-code > report.xml
Write-Host "##[command]Executing go test -run "^Test" -v -coverprofile coverage.txt $td | go-junit-report -set-exit-code > report.xml"
go test -run "^Test" -v -coverprofile coverage.txt . | go-junit-report -set-exit-code > report.xml
# if no tests were actually run (e.g. examples) delete the coverage file so it's omitted from the coverage report
if (Select-String -path ./report.xml -pattern '<testsuites></testsuites>' -simplematch -quiet) {
Write-Host "##[command]Deleting empty coverage file"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
COSMOS_TABLES_ENDPOINT_SUFFIX: cosmos.azure.com
TABLES_COSMOS_ACCOUNT_NAME: seankaneprim
TABLES_PRIMARY_COSMOS_ACCOUNT_KEY: Kg==
randomSeed: "1627334286"
randomSeed: "1628004298"
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: 1
interactions:
- request:
body: '{"TableName":"gotable74vbfumji7tiq"}'
body: '{"TableName":"gotable8jdoawmoqnmjx"}'
form: {}
headers:
Accept:
Expand All @@ -19,24 +19,24 @@ interactions:
- azsdk-go-aztable/<version> azsdk-go-aztable/<version> azcore/v0.16.2 (go1.16.5;
Windows_NT)
X-Ms-Date:
- Mon, 26 Jul 2021 21:18:06 GMT
- Tue, 03 Aug 2021 15:24:58 GMT
X-Ms-Version:
- "2019-02-02"
url: https://seankaneprim.table.cosmos.azure.com/Tables
method: POST
response:
body: '{"TableName":"gotable74vbfumji7tiq","odata.metadata":"https://seankaneprim.table.cosmos.azure.com/$metadata#Tables/@Element"}'
body: '{"TableName":"gotable8jdoawmoqnmjx","odata.metadata":"https://seankaneprim.table.cosmos.azure.com/$metadata#Tables/@Element"}'
headers:
Content-Type:
- application/json;odata=minimalmetadata
Date:
- Mon, 26 Jul 2021 21:18:06 GMT
- Tue, 03 Aug 2021 15:24:59 GMT
Etag:
- W/"datetime'2021-07-26T21%3A18%3A06.8679688Z'"
- W/"datetime'2021-08-03T15%3A24%3A58.8577800Z'"
Location:
- https://seankaneprim.table.cosmos.azure.com/Tables('gotable74vbfumji7tiq')
- https://seankaneprim.table.cosmos.azure.com/Tables('gotable8jdoawmoqnmjx')
X-Ms-Request-Id:
- f8c51d05-a8f8-475b-a633-ed7b61de14e7
- a30ff87f-cef8-47ce-8c48-ad2346793917
status: 201 Created
code: 201
duration: ""
Expand All @@ -61,24 +61,24 @@ interactions:
- azsdk-go-aztable/<version> azsdk-go-aztable/<version> azcore/v0.16.2 (go1.16.5;
Windows_NT)
X-Ms-Date:
- Mon, 26 Jul 2021 21:18:07 GMT
- Tue, 03 Aug 2021 15:24:59 GMT
X-Ms-Version:
- "2019-02-02"
url: https://seankaneprim.table.cosmos.azure.com/gotable74vbfumji7tiq
url: https://seankaneprim.table.cosmos.azure.com/gotable8jdoawmoqnmjx
method: POST
response:
body: ""
headers:
Date:
- Mon, 26 Jul 2021 21:18:06 GMT
- Tue, 03 Aug 2021 15:24:59 GMT
Etag:
- W/"datetime'2021-07-26T21%3A18%3A07.5371528Z'"
- W/"datetime'2021-08-03T15%3A24%3A59.4564104Z'"
Location:
- https://seankaneprim.table.cosmos.azure.com/gotable74vbfumji7tiq(PartitionKey='partition',RowKey='1')
- https://seankaneprim.table.cosmos.azure.com/gotable8jdoawmoqnmjx(PartitionKey='partition',RowKey='1')
Preference-Applied:
- return-no-content
X-Ms-Request-Id:
- 5e25c2bf-0b1d-45af-818e-925b1a37befc
- 06beab79-39a9-4993-a968-06d3f136a344
status: 204 No Content
code: 204
duration: ""
Expand All @@ -94,18 +94,18 @@ interactions:
- azsdk-go-aztable/<version> azsdk-go-aztable/<version> azcore/v0.16.2 (go1.16.5;
Windows_NT)
X-Ms-Date:
- Mon, 26 Jul 2021 21:18:07 GMT
- Tue, 03 Aug 2021 15:25:00 GMT
X-Ms-Version:
- "2019-02-02"
url: https://seankaneprim.table.cosmos.azure.com/Tables('gotable74vbfumji7tiq')
url: https://seankaneprim.table.cosmos.azure.com/Tables('gotable8jdoawmoqnmjx')
method: DELETE
response:
body: ""
headers:
Date:
- Mon, 26 Jul 2021 21:18:07 GMT
- Tue, 03 Aug 2021 15:24:59 GMT
X-Ms-Request-Id:
- c122c25b-6d80-4f88-bab3-ff8ac231f138
- 6e7e902c-1981-4d2c-ac90-954bd3cc5371
status: 204 No Content
code: 204
duration: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
COSMOS_TABLES_ENDPOINT_SUFFIX: cosmos.azure.com
TABLES_COSMOS_ACCOUNT_NAME: seankaneprim
TABLES_PRIMARY_COSMOS_ACCOUNT_KEY: Kg==
randomSeed: "1627676807"
Original file line number Diff line number Diff line change
@@ -0,0 +1,211 @@
---
version: 1
interactions:
- request:
body: '{"TableName":"gotablex11b3nqe5r4hg"}'
form: {}
headers:
Accept:
- application/json;odata=minimalmetadata
Authorization:
- sanitized
Content-Length:
- "36"
Content-Type:
- application/json
Dataserviceversion:
- "3.0"
User-Agent:
- azsdk-go-aztable/<version> azsdk-go-aztable/<version> azcore/v0.16.2 (go1.16.5;
Windows_NT)
X-Ms-Date:
- Fri, 30 Jul 2021 20:26:47 GMT
X-Ms-Version:
- "2019-02-02"
url: https://seankaneprim.table.cosmos.azure.com/Tables
method: POST
response:
body: '{"TableName":"gotablex11b3nqe5r4hg","odata.metadata":"https://seankaneprim.table.cosmos.azure.com/$metadata#Tables/@Element"}'
headers:
Content-Type:
- application/json;odata=minimalmetadata
Date:
- Fri, 30 Jul 2021 20:26:49 GMT
Etag:
- W/"datetime'2021-07-30T20%3A26%3A49.6224264Z'"
Location:
- https://seankaneprim.table.cosmos.azure.com/Tables('gotablex11b3nqe5r4hg')
X-Ms-Request-Id:
- 8c5d0025-6b93-4bef-8821-77e025cea69e
status: 201 Created
code: 201
duration: ""
- request:
body: '{"Bool":true,"Integer":1,"PartitionKey":"partition","RowKey":"1","String":"some
string 1","Timestamp":"0001-01-01T00:00:00Z"}'
form: {}
headers:
Accept:
- application/json
Authorization:
- sanitized
Content-Length:
- "125"
Content-Type:
- application/json
Dataserviceversion:
- "3.0"
User-Agent:
- azsdk-go-aztable/<version> azsdk-go-aztable/<version> azcore/v0.16.2 (go1.16.5;
Windows_NT)
X-Ms-Date:
- Fri, 30 Jul 2021 20:26:49 GMT
X-Ms-Version:
- "2019-02-02"
url: https://seankaneprim.table.cosmos.azure.com/gotablex11b3nqe5r4hg(PartitionKey='partition',RowKey='1')
method: PUT
response:
body: ""
headers:
Content-Type:
- application/json
Date:
- Fri, 30 Jul 2021 20:26:50 GMT
Etag:
- W/"datetime'2021-07-30T20%3A26%3A50.3232520Z'"
X-Ms-Request-Id:
- 01020bfe-503c-40aa-bd90-9eb243ec8faf
status: 204 No Content
code: 204
duration: ""
- request:
body: ""
form: {}
headers:
Accept:
- application/json;odata=minimalmetadata
Authorization:
- sanitized
Dataserviceversion:
- "3.0"
User-Agent:
- azsdk-go-aztable/<version> azsdk-go-aztable/<version> azcore/v0.16.2 (go1.16.5;
Windows_NT)
X-Ms-Date:
- Fri, 30 Jul 2021 20:26:49 GMT
X-Ms-Version:
- "2019-02-02"
url: https://seankaneprim.table.cosmos.azure.com/gotablex11b3nqe5r4hg(PartitionKey='partition',RowKey='1')
method: GET
response:
body: '{"odata.metadata":"https://seankaneprim.table.cosmos.azure.com/gotablex11b3nqe5r4hg/$metadata#gotablex11b3nqe5r4hg/@Element","odata.etag":"W/\"datetime''2021-07-30T20%3A26%3A50.3232520Z''\"","PartitionKey":"partition","RowKey":"1","Bool":true,"Integer":1,"String":"some
string 1","Timestamp":"2021-07-30T20:26:50.3232520Z"}'
headers:
Content-Type:
- application/json;odata=minimalmetadata
Date:
- Fri, 30 Jul 2021 20:26:50 GMT
Etag:
- W/"datetime'2021-07-30T20%3A26%3A50.3232520Z'"
X-Ms-Request-Id:
- d2129f32-414f-491a-a2ab-f6c4ca87dfcc
status: 200 OK
code: 200
duration: ""
- request:
body: '{"Integer":1,"MergeProperty":"foo","PartitionKey":"partition","RowKey":"1","String":"some
string 1"}'
form: {}
headers:
Accept:
- application/json
Authorization:
- sanitized
Content-Length:
- "100"
Content-Type:
- application/json
Dataserviceversion:
- "3.0"
User-Agent:
- azsdk-go-aztable/<version> azsdk-go-aztable/<version> azcore/v0.16.2 (go1.16.5;
Windows_NT)
X-Ms-Date:
- Fri, 30 Jul 2021 20:26:49 GMT
X-Ms-Version:
- "2019-02-02"
url: https://seankaneprim.table.cosmos.azure.com/gotablex11b3nqe5r4hg(PartitionKey='partition',RowKey='1')
method: PUT
response:
body: ""
headers:
Content-Type:
- application/json
Date:
- Fri, 30 Jul 2021 20:26:50 GMT
Etag:
- W/"datetime'2021-07-30T20%3A26%3A50.6126344Z'"
X-Ms-Request-Id:
- 748608bf-0011-4f92-b37d-bac60664069d
status: 204 No Content
code: 204
duration: ""
- request:
body: ""
form: {}
headers:
Accept:
- application/json;odata=minimalmetadata
Authorization:
- sanitized
Dataserviceversion:
- "3.0"
User-Agent:
- azsdk-go-aztable/<version> azsdk-go-aztable/<version> azcore/v0.16.2 (go1.16.5;
Windows_NT)
X-Ms-Date:
- Fri, 30 Jul 2021 20:26:49 GMT
X-Ms-Version:
- "2019-02-02"
url: https://seankaneprim.table.cosmos.azure.com/gotablex11b3nqe5r4hg()?%24filter=RowKey+eq+%271%27
method: GET
response:
body: '{"value":[{"odata.etag":"W/\"datetime''2021-07-30T20%3A26%3A50.6126344Z''\"","PartitionKey":"partition","RowKey":"1","Integer":1,"MergeProperty":"foo","String":"some
string 1","Timestamp":"2021-07-30T20:26:50.6126344Z"}],"odata.metadata":"https://seankaneprim.table.cosmos.azure.com/$metadata#gotablex11b3nqe5r4hg"}'
headers:
Content-Type:
- application/json;odata=minimalmetadata
Date:
- Fri, 30 Jul 2021 20:26:50 GMT
X-Ms-Request-Id:
- e306607f-7f86-42ea-a447-920b722189c2
status: 200 OK
code: 200
duration: ""
- request:
body: ""
form: {}
headers:
Accept:
- application/json
Authorization:
- sanitized
User-Agent:
- azsdk-go-aztable/<version> azsdk-go-aztable/<version> azcore/v0.16.2 (go1.16.5;
Windows_NT)
X-Ms-Date:
- Fri, 30 Jul 2021 20:26:49 GMT
X-Ms-Version:
- "2019-02-02"
url: https://seankaneprim.table.cosmos.azure.com/Tables('gotablex11b3nqe5r4hg')
method: DELETE
response:
body: ""
headers:
Date:
- Fri, 30 Jul 2021 20:26:50 GMT
X-Ms-Request-Id:
- be2036f9-dec7-4bdd-8af2-6024832c067f
status: 204 No Content
code: 204
duration: ""
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
STORAGE_ENDPOINT_SUFFIX: core.windows.net
TABLES_PRIMARY_STORAGE_ACCOUNT_KEY: Kg==
TABLES_STORAGE_ACCOUNT_NAME: seankaneprim
randomSeed: "1626385851"
randomSeed: "1628004297"
Loading