Skip to content

Commit 5a53804

Browse files
authored
test: update retry conf test data (#2190)
* test: update retry conf test data Copies the retry_test json from the latest in the conformance test repo. Rename retryStrategyTest to retryTest for consistency, and add 408 errors for upload tests. S8 is still not implemented in node so that part is skipped. * remove one 408 case * fix lint * fix lint
1 parent 820b19a commit 5a53804

File tree

8 files changed

+27
-17
lines changed

8 files changed

+27
-17
lines changed

conformance-test/scenarios/scenarioFive.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ import {executeScenario, RetryTestCase} from '../conformanceCommon';
1818
import * as assert from 'assert';
1919

2020
const SCENARIO_NUMBER_TO_TEST = 5;
21-
const retryTestCase: RetryTestCase | undefined =
22-
testFile.retryStrategyTests.find(test => test.id === SCENARIO_NUMBER_TO_TEST);
21+
const retryTestCase: RetryTestCase | undefined = testFile.retryTests.find(
22+
test => test.id === SCENARIO_NUMBER_TO_TEST
23+
);
2324

2425
describe(`Scenario ${SCENARIO_NUMBER_TO_TEST}`, () => {
2526
assert(retryTestCase);

conformance-test/scenarios/scenarioFour.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ import {executeScenario, RetryTestCase} from '../conformanceCommon';
1818
import * as assert from 'assert';
1919

2020
const SCENARIO_NUMBER_TO_TEST = 4;
21-
const retryTestCase: RetryTestCase | undefined =
22-
testFile.retryStrategyTests.find(test => test.id === SCENARIO_NUMBER_TO_TEST);
21+
const retryTestCase: RetryTestCase | undefined = testFile.retryTests.find(
22+
test => test.id === SCENARIO_NUMBER_TO_TEST
23+
);
2324

2425
describe(`Scenario ${SCENARIO_NUMBER_TO_TEST}`, () => {
2526
assert(retryTestCase);

conformance-test/scenarios/scenarioOne.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ import {executeScenario, RetryTestCase} from '../conformanceCommon';
1818
import * as assert from 'assert';
1919

2020
const SCENARIO_NUMBER_TO_TEST = 1;
21-
const retryTestCase: RetryTestCase | undefined =
22-
testFile.retryStrategyTests.find(test => test.id === SCENARIO_NUMBER_TO_TEST);
21+
const retryTestCase: RetryTestCase | undefined = testFile.retryTests.find(
22+
test => test.id === SCENARIO_NUMBER_TO_TEST
23+
);
2324

2425
describe(`Scenario ${SCENARIO_NUMBER_TO_TEST}`, () => {
2526
assert(retryTestCase);

conformance-test/scenarios/scenarioSeven.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ import {executeScenario, RetryTestCase} from '../conformanceCommon';
1818
import * as assert from 'assert';
1919

2020
const SCENARIO_NUMBER_TO_TEST = 7;
21-
const retryTestCase: RetryTestCase | undefined =
22-
testFile.retryStrategyTests.find(test => test.id === SCENARIO_NUMBER_TO_TEST);
21+
const retryTestCase: RetryTestCase | undefined = testFile.retryTests.find(
22+
test => test.id === SCENARIO_NUMBER_TO_TEST
23+
);
2324

2425
describe(`Scenario ${SCENARIO_NUMBER_TO_TEST}`, () => {
2526
assert(retryTestCase);

conformance-test/scenarios/scenarioSix.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ import {executeScenario, RetryTestCase} from '../conformanceCommon';
1818
import * as assert from 'assert';
1919

2020
const SCENARIO_NUMBER_TO_TEST = 6;
21-
const retryTestCase: RetryTestCase | undefined =
22-
testFile.retryStrategyTests.find(test => test.id === SCENARIO_NUMBER_TO_TEST);
21+
const retryTestCase: RetryTestCase | undefined = testFile.retryTests.find(
22+
test => test.id === SCENARIO_NUMBER_TO_TEST
23+
);
2324

2425
describe(`Scenario ${SCENARIO_NUMBER_TO_TEST}`, () => {
2526
assert(retryTestCase);

conformance-test/scenarios/scenarioThree.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ import {executeScenario, RetryTestCase} from '../conformanceCommon';
1818
import * as assert from 'assert';
1919

2020
const SCENARIO_NUMBER_TO_TEST = 3;
21-
const retryTestCase: RetryTestCase | undefined =
22-
testFile.retryStrategyTests.find(test => test.id === SCENARIO_NUMBER_TO_TEST);
21+
const retryTestCase: RetryTestCase | undefined = testFile.retryTests.find(
22+
test => test.id === SCENARIO_NUMBER_TO_TEST
23+
);
2324

2425
describe(`Scenario ${SCENARIO_NUMBER_TO_TEST}`, () => {
2526
assert(retryTestCase);

conformance-test/scenarios/scenarioTwo.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ import {executeScenario, RetryTestCase} from '../conformanceCommon';
1818
import * as assert from 'assert';
1919

2020
const SCENARIO_NUMBER_TO_TEST = 2;
21-
const retryTestCase: RetryTestCase | undefined =
22-
testFile.retryStrategyTests.find(test => test.id === SCENARIO_NUMBER_TO_TEST);
21+
const retryTestCase: RetryTestCase | undefined = testFile.retryTests.find(
22+
test => test.id === SCENARIO_NUMBER_TO_TEST
23+
);
2324

2425
describe(`Scenario ${SCENARIO_NUMBER_TO_TEST}`, () => {
2526
assert(retryTestCase);

conformance-test/test-data/retryStrategyTestData.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"retryStrategyTests": [
2+
"retryTests": [
33
{
44
"id": 1,
55
"description": "always_idempotent",
@@ -130,7 +130,7 @@
130130
},
131131
{
132132
"id": 5,
133-
"description": "non_retryable_errors",
133+
"description": "non-retryable errors",
134134
"cases": [
135135
{
136136
"instructions": ["return-400"]
@@ -247,6 +247,9 @@
247247
{
248248
"instructions": ["return-reset-connection", "return-503"]
249249
},
250+
{
251+
"instructions": ["return-408"]
252+
},
250253
{
251254
"instructions": ["return-503-after-256K"]
252255
},
@@ -261,4 +264,4 @@
261264
"expectSuccess": true
262265
}
263266
]
264-
}
267+
}

0 commit comments

Comments
 (0)