Skip to content

Commit 656df76

Browse files
committed
tests: revert snapshot
1 parent a071540 commit 656df76

File tree

1 file changed

+38
-36
lines changed

1 file changed

+38
-36
lines changed

__tests__/respect/local-json-server/__snapshots__/local-json-server.test.ts.snap

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,68 +5,70 @@ exports[`local-json-server > local-json-server test case 1`] = `
55
66
Running workflow local-json-server.arazzo.yaml / before
77
8-
✗ GET /items - step get-all-items-before
9-
    ✗ status code check
8+
✓ GET /items - step get-all-items-before
9+
    ✓ status code check - $statusCode in [200]
10+
    ✓ content-type check
11+
    ✓ schema check
1012
1113
────────────────────────────────────────────────────────────────────────────────
1214
1315
Running workflow local-json-server.arazzo.yaml / crud-items
1416
15-
✗ POST /items - step add-item
16-
    ✗ success criteria check - $statusCode == 201
17-
    ✗ status code check
18-
    ✗ unexpected error
17+
✓ POST /items - step add-item
18+
    ✓ success criteria check - $statusCode == 201
19+
    ✓ status code check - $statusCode in [201]
20+
    ✓ content-type check
21+
    ✓ schema check
22+
23+
✗ GET /items - step get-all-items-again
24+
    ✗ success criteria check - $response.body#/0/value == 100
25+
    ✓ status code check - $statusCode in [200]
26+
    ✓ content-type check
27+
    ✓ schema check
1928
2029
────────────────────────────────────────────────────────────────────────────────
2130
2231
Running workflow local-json-server.arazzo.yaml / auto-inherit
2332
24-
✗ POST /items - step add-item-auto-inherit
25-
    ✗ status code check
26-
    ✗ unexpected error
33+
✓ POST /items - step add-item-auto-inherit
34+
    ✓ status code check - $statusCode in [201]
35+
    ✓ content-type check
36+
    ✓ schema check
37+
38+
✓ GET /items - step get-all-items
39+
    ✓ status code check - $statusCode in [200]
40+
    ✓ content-type check
41+
    ✓ schema check
42+
43+
✓ GET /items/{id} - step get-item-by-id-auto-inherit
44+
    ✓ status code check - $statusCode in [200, 404]
45+
    ✓ content-type check
46+
47+
✓ DELETE /items/{id} - step drop-item-auto-inherit
48+
    ✓ success criteria check - $statusCode == 200
49+
    ✓ status code check - $statusCode in [200]
2750
2851
2952
  Failed tests info:
3053
31-
  Workflow name: before
32-
33-
    stepId - get-all-items-before
34-
    ✗ status code check
35-
      
36-
      
3754
  Workflow name: crud-items
3855
39-
    stepId - add-item
56+
    stepId - get-all-items-again
4057
    ✗ success criteria check
41-
      Checking simple criteria: {"condition":"$statusCode == 201"}
42-
      
43-
    ✗ status code check
44-
      
45-
      
46-
    ✗ unexpected error
47-
    Reason: Error in resolving runtime expression '$response.body#/id'.
48-
    This could be because the expression references a value from a previous failed step, or is trying to reference a variable that hasn't been set.
49-
  Workflow name: auto-inherit
50-
51-
    stepId - add-item-auto-inherit
52-
    ✗ status code check
53-
      
58+
      Checking simple criteria: {"condition":"$response.body#/0/value == 100"}
5459
      
55-
    ✗ unexpected error
56-
    Reason: Error in resolving runtime expression '$response.body#/id'.
57-
    This could be because the expression references a value from a previous failed step, or is trying to reference a variable that hasn't been set.
5860
  Summary for local-json-server.arazzo.yaml
5961
  
60-
  Workflows: 3 failed, 3 total
61-
  Steps: 3 failed, 3 total
62-
  Checks: 6 failed, 6 total
62+
  Workflows: 2 passed, 1 failed, 3 total
63+
  Steps: 6 passed, 1 failed, 7 total
64+
  Checks: 20 passed, 1 failed, 21 total
6365
  Time: <test>ms
6466
6567
6668
┌───────────────────────────────────────────────────────────────────────┬────────────┬─────────┬─────────┬──────────┐
6769
│ Filename │ Workflows │ Passed │ Failed │ Warnings │
6870
├───────────────────────────────────────────────────────────────────────┼────────────┼─────────┼─────────┼──────────┤
69-
│ x local-json-server.arazzo.yaml │ 3 │ 03 │ - │
71+
│ x local-json-server.arazzo.yaml │ 3 │ 21 │ - │
7072
└───────────────────────────────────────────────────────────────────────┴────────────┴─────────┴─────────┴──────────┘
7173
7274

0 commit comments

Comments
 (0)