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

test(storage): init retry conformance test scaffolding #4711

Merged
merged 36 commits into from Oct 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a40676c
test(storage): add retry conformance tests [WIP]
tritone Dec 4, 2020
8c45efb
Merge branch 'master' into conf-test
tritone Mar 8, 2021
f606eeb
[WIP] test(storage): add retry conformance tests
tritone Mar 8, 2021
aa61155
separate idempotent/non-idempotent calls
tritone Mar 11, 2021
400a64b
rework schema
tritone Mar 25, 2021
ff9be59
get per-func errors/naming
tritone Mar 25, 2021
0abbad4
use instruction lists
tritone Mar 29, 2021
87f998e
update schema with fixtures
tritone Apr 2, 2021
57cc43e
update schema with comments
tritone Apr 2, 2021
c6385cd
update test cases
tritone Apr 2, 2021
14c25b6
fix id
tritone Apr 2, 2021
5ddf761
change to new emu format [WIP]
tritone Apr 16, 2021
d792232
Merge branch 'master' into conf-test
tritone Apr 30, 2021
4b1b2b9
use new retry_test resource
tritone May 3, 2021
36ae41c
gofmt
tritone May 3, 2021
d8fbc75
add test check and fix endpoints
tritone May 4, 2021
ec4ea20
change fixture to resource
tritone May 4, 2021
d4fd9c1
Merge branch 'master' into conf-scaffolding
BrennaEpp Aug 31, 2021
e0b4753
Merge branch 'master' into conf-scaffolding
BrennaEpp Aug 31, 2021
bd237cc
fix to changes
BrennaEpp Aug 31, 2021
31ebabd
fix
BrennaEpp Aug 31, 2021
74874e5
Merge branch 'master' into conf-scaffolding
BrennaEpp Sep 29, 2021
1974fa8
add some comments
BrennaEpp Sep 29, 2021
d6c80fb
call error from function
BrennaEpp Sep 29, 2021
4e4c1f8
add comments and remove extra url parsing
BrennaEpp Sep 29, 2021
0c98ce0
Merge branch 'master' into conf-scaffolding
BrennaEpp Sep 29, 2021
c157162
retry json align
BrennaEpp Oct 8, 2021
445f24c
Merge branch 'master' into conf-scaffolding
BrennaEpp Oct 8, 2021
31744de
goimports fix
BrennaEpp Oct 8, 2021
8d1ecfb
remove extra func
BrennaEpp Oct 8, 2021
018c255
Merge branch 'master' into conf-scaffolding
BrennaEpp Oct 9, 2021
afda9b6
Merge branch 'master' into conf-scaffolding
BrennaEpp Oct 12, 2021
8ce513a
Merge branch 'master' into conf-scaffolding
BrennaEpp Oct 18, 2021
ed848c2
separate retry tests
BrennaEpp Oct 18, 2021
907c050
Merge branch 'master' into conf-scaffolding
BrennaEpp Oct 18, 2021
acdd446
fix typos
BrennaEpp Oct 18, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
45 changes: 45 additions & 0 deletions storage/internal/test/conformance/retry_tests.json
@@ -0,0 +1,45 @@
{
"retryTests": [
{
"id": 1,
"description": "always_idempotent",
"cases": [
{
"instructions": ["return-503", "return-503"]
},
{
"instructions": ["return-reset-connection", "return-reset-connection"]
},
{
"instructions": ["return-reset-connection", "return-503"]
}
],
"methods": [
{"name": "storage.bucket_acl.get", "resources": ["BUCKET"]},
{"name": "storage.bucket_acl.list", "resources": ["BUCKET"]},
{"name": "storage.buckets.delete", "resources": ["BUCKET"]},
{"name": "storage.buckets.get", "resources": ["BUCKET"]},
{"name": "storage.buckets.getIamPolicy", "resources": ["BUCKET"]},
{"name": "storage.buckets.insert", "resources": []},
{"name": "storage.buckets.list", "resources": ["BUCKET"]},
{"name": "storage.buckets.lockRetentionPolicy", "resources": ["BUCKET"]},
{"name": "storage.buckets.testIamPermissions", "resources": ["BUCKET"]},
{"name": "storage.default_object_acl.get", "resources": ["BUCKET"]},
{"name": "storage.default_object_acl.list", "resources": ["BUCKET"]},
{"name": "storage.hmacKey.delete", "resources": ["HMAC_KEY"]},
{"name": "storage.hmacKey.get", "resources": ["HMAC_KEY"]},
{"name": "storage.hmacKey.list", "resources": ["HMAC_KEY"]},
{"name": "storage.notifications.delete", "resources": ["BUCKET", "NOTIFICATION"]},
{"name": "storage.notifications.get", "resources": ["BUCKET", "NOTIFICATION"]},
{"name": "storage.notifications.list", "resources": ["BUCKET", "NOTIFICATION"]},
{"name": "storage.object_acl.get", "resources": ["BUCKET", "OBJECT"]},
{"name": "storage.object_acl.list", "resources": ["BUCKET", "OBJECT"]},
{"name": "storage.objects.get", "resources": ["BUCKET", "OBJECT"]},
{"name": "storage.objects.list", "resources": ["BUCKET", "OBJECT"]},
{"name": "storage.serviceaccount.get", "resources": []}
],
"preconditionProvided": false,
"expectSuccess": true
}
]
}