Skip to content

Commit 0953dc3

Browse files
committed
chore: cleanup respect e2e tests
1 parent 2b750f6 commit 0953dc3

File tree

85 files changed

+248
-13977
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+248
-13977
lines changed

__tests__/respect/case-insensitive-headers/__snapshots__/case-insensitive-headers.test.ts.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`should send in request and proceed case-insensitive headers in runtime expressions 1`] = `
44
"────────────────────────────────────────────────────────────────────────────────
55
6-
Running workflow case-insensitive-headers.yaml / get-museum-hours
6+
Running workflow case-insensitive-headers.arazzo.yaml / get-museum-hours
77
88
✓ GET /museum-hours - step get-museum-hours
99
    ✓ success criteria check - $request.header.content-type == 'third'
@@ -14,19 +14,19 @@ exports[`should send in request and proceed case-insensitive headers in runtime
1414
    ✓ schema check
1515
1616
17-
  Summary for case-insensitive-headers.yaml
17+
  Summary for case-insensitive-headers.arazzo.yaml
1818
  
1919
  Workflows: 1 passed, 1 total
2020
  Steps: 1 passed, 1 total
2121
  Checks: 6 passed, 6 total
2222
  Time: <test>ms
2323
2424
25-
┌───────────────────────────────────────────────────────────────────────┬────────────┬─────────┬─────────┬──────────┐
26-
│ Filename │ Workflows │ Passed │ Failed │ Warnings │
27-
├───────────────────────────────────────────────────────────────────────┼────────────┼─────────┼─────────┼──────────┤
28-
│ ✓ case-insensitive-headers.yaml │ 1 │ 1 │ - │ - │
29-
└───────────────────────────────────────────────────────────────────────┴────────────┴─────────┴─────────┴──────────┘
25+
┌──────────────────────────────────────────────────────────────────────────────┬────────────┬─────────┬─────────┬──────────┐
26+
│ Filename │ Workflows │ Passed │ Failed │ Warnings │
27+
├──────────────────────────────────────────────────────────────────────────────┼────────────┼─────────┼─────────┼──────────┤
28+
│ ✓ case-insensitive-headers.arazzo.yaml │ 1 │ 1 │ - │ - │
29+
└──────────────────────────────────────────────────────────────────────────────┴────────────┴─────────┴─────────┴──────────┘
3030
3131
3232
"

__tests__/respect/case-insensitive-headers/case-insensitive-headers.yaml renamed to __tests__/respect/case-insensitive-headers/case-insensitive-headers.arazzo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ info:
88
sourceDescriptions:
99
- name: museum-api
1010
type: openapi
11-
url: museum-api.yaml
11+
url: ../museum-api.yaml
1212

1313
workflows:
1414
- workflowId: get-museum-hours

__tests__/respect/case-insensitive-headers/case-insensitive-headers.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getCommandOutput, getParams } from '../utils';
33

44
test('should send in request and proceed case-insensitive headers in runtime expressions', () => {
55
const indexEntryPoint = join(process.cwd(), 'packages/cli/lib/index.js');
6-
const fixturesPath = join(__dirname, 'case-insensitive-headers.yaml');
6+
const fixturesPath = join(__dirname, 'case-insensitive-headers.arazzo.yaml');
77
const args = getParams(indexEntryPoint, ['respect', fixturesPath]);
88

99
const result = getCommandOutput(args);

__tests__/respect/cat-fact-api/__snapshots__/cat-fact-api.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`cats api test case 1`] = `
44
"────────────────────────────────────────────────────────────────────────────────
55
6-
Running workflow auto-cat.yaml / get-breeds-workflow
6+
Running workflow auto-cat.arazzo.yaml / get-breeds-workflow
77
88
✗ GET /breeds - step get-breeds-step
99
    ✓ status code check - $statusCode in [200]
@@ -12,7 +12,7 @@ exports[`cats api test case 1`] = `
1212
1313
────────────────────────────────────────────────────────────────────────────────
1414
15-
Running workflow auto-cat.yaml / get-fact-workflow
15+
Running workflow auto-cat.arazzo.yaml / get-fact-workflow
1616
1717
✓ GET /fact - step get-fact-step
1818
    ✓ status code check - $statusCode in [200, 404]
@@ -21,7 +21,7 @@ exports[`cats api test case 1`] = `
2121
2222
────────────────────────────────────────────────────────────────────────────────
2323
24-
Running workflow auto-cat.yaml / get-facts-workflow
24+
Running workflow auto-cat.arazzo.yaml / get-facts-workflow
2525
2626
✗ GET /facts - step get-facts-step
2727
    ✓ status code check - $statusCode in [200]
File renamed without changes.

__tests__/respect/cat-fact-api/cat-fact-api.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { join } from 'path';
2-
import { getParams, getCommandOutput, getFixturePath, cleanColors } from '../utils';
2+
import { getParams, getCommandOutput, cleanColors } from '../utils';
33

44
test('cats api test case', () => {
55
const indexEntryPoint = join(process.cwd(), 'packages/cli/lib/index.js');
6-
const fixturesPath = join(__dirname, 'auto-cat.yaml');
6+
const fixturesPath = join(__dirname, 'auto-cat.arazzo.yaml');
77
const args = getParams(indexEntryPoint, ['respect', fixturesPath]);
88
const result = cleanColors(getCommandOutput(args));
99

__tests__/respect/free-apis/__snapshots__/free-apis.test.ts.snap

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`free apis test case 1`] = `
44
"────────────────────────────────────────────────────────────────────────────────
55
6-
Running workflow free.yaml / json
6+
Running workflow free.arazzo.yaml / json
77
88
✓ GET https://jsonplaceholder.typicode.com/posts/1 - step get-first-post
99
    ✓ success criteria check - $statusCode == 200
@@ -17,7 +17,7 @@ exports[`free apis test case 1`] = `
1717
1818
────────────────────────────────────────────────────────────────────────────────
1919
20-
Running workflow free.yaml / xml
20+
Running workflow free.arazzo.yaml / xml
2121
2222
✗ POST http://restapi.adequateshop.com/api/Traveler - step post-traveler
2323
    ✓ success criteria check - $statusCode == 404
@@ -33,19 +33,19 @@ exports[`free apis test case 1`] = `
3333
    ✗ success criteria check
3434
      Checking simple criteria: {"condition":"$response.body == '<Error><Message>Pleae try with different email address!</Message></Error>'"}
3535
      
36-
  Summary for free.yaml
36+
  Summary for free.arazzo.yaml
3737
  
3838
  Workflows: 1 passed, 1 failed, 2 total
3939
  Steps: 2 passed, 1 failed, 3 total
4040
  Checks: 8 passed, 1 failed, 9 total
4141
  Time: <test>ms
4242
4343
44-
┌───────────────────────────────────────────────────┬────────────┬─────────┬─────────┬──────────┐
45-
│ Filename │ Workflows │ Passed │ Failed │ Warnings │
46-
├───────────────────────────────────────────────────┼────────────┼─────────┼─────────┼──────────┤
47-
│ x free.yaml │ 2 │ 1 │ 1 │ - │
48-
└───────────────────────────────────────────────────┴────────────┴─────────┴─────────┴──────────┘
44+
┌──────────────────────────────────────────────────────────┬────────────┬─────────┬─────────┬──────────┐
45+
│ Filename │ Workflows │ Passed │ Failed │ Warnings │
46+
├──────────────────────────────────────────────────────────┼────────────┼─────────┼─────────┼──────────┤
47+
│ x free.arazzo.yaml │ 2 │ 1 │ 1 │ - │
48+
└──────────────────────────────────────────────────────────┴────────────┴─────────┴─────────┴──────────┘
4949
5050
5151

__tests__/respect/free-apis/free-apis.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getParams, getCommandOutput } from '../utils';
33

44
test('free apis test case', () => {
55
const indexEntryPoint = join(process.cwd(), 'packages/cli/lib/index.js');
6-
const fixturesPath = join(__dirname, 'free.yaml');
6+
const fixturesPath = join(__dirname, 'free.arazzo.yaml');
77
const args = getParams(indexEntryPoint, ['respect', fixturesPath]);
88

99
const result = getCommandOutput(args);
File renamed without changes.

__tests__/respect/implicit/__snapshots__/implicit.test.ts.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`should implicitly add content type header based on requestBody.content field (the first one) if such does not specified 1`] = `
44
"────────────────────────────────────────────────────────────────────────────────
55
6-
Running workflow implicit.yaml / implicit-content-type
6+
Running workflow implicit.arazzo.yaml / implicit-content-type
77
88
✓ POST /activities - step post-activities
99
@@ -80,19 +80,19 @@ exports[`should implicitly add content type header based on requestBody.content
8080
    ✓ schema check
8181
8282
83-
  Summary for implicit.yaml
83+
  Summary for implicit.arazzo.yaml
8484
  
8585
  Workflows: 1 passed, 1 total
8686
  Steps: 2 passed, 2 total
8787
  Checks: 5 passed, 5 total
8888
  Time: <test>ms
8989
9090
91-
┌───────────────────────────────────────────────────────┬────────────┬─────────┬─────────┬──────────┐
92-
│ Filename │ Workflows │ Passed │ Failed │ Warnings │
93-
├───────────────────────────────────────────────────────┼────────────┼─────────┼─────────┼──────────┤
94-
│ ✓ implicit.yaml │ 1 │ 1 │ - │ - │
95-
└───────────────────────────────────────────────────────┴────────────┴─────────┴─────────┴──────────┘
91+
┌──────────────────────────────────────────────────────────────┬────────────┬─────────┬─────────┬──────────┐
92+
│ Filename │ Workflows │ Passed │ Failed │ Warnings │
93+
├──────────────────────────────────────────────────────────────┼────────────┼─────────┼─────────┼──────────┤
94+
│ ✓ implicit.arazzo.yaml │ 1 │ 1 │ - │ - │
95+
└──────────────────────────────────────────────────────────────┴────────────┴─────────┴─────────┴──────────┘
9696
9797
9898
"

0 commit comments

Comments
 (0)