Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ exports[`should send in request and proceed case-insensitive headers in runtime
Running workflow case-insensitive-headers.yaml / get-museum-hours

✓ GET /museum-hours - step get-museum-hours
    ✓ success criteria check
    ✓ success criteria check
    ✓ success criteria check
    ✓ success criteria check - $request.header.content-type == 'third'
    ✓ success criteria check - $request.header.CammelCasedHeader == 'custom-heade...
    ✓ success criteria check - $response.header.X-Content-Type-Options == 'nosnif...
    ✓ status code check (Response code 200 matches one of description codes: [200, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down
18 changes: 9 additions & 9 deletions __tests__/respect/free-apis/__snapshots__/free-apis.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ exports[`free apis test case 1`] = `
Running workflow free.yaml / json

✓ GET https://jsonplaceholder.typicode.com/posts/1 - step get-first-post
    ✓ success criteria check
    ✓ success criteria check
    ✓ success criteria check
    ✓ success criteria check
    ✓ success criteria check
    ✓ success criteria check - $statusCode == 200
    ✓ success criteria check - $response.body#/id == 1
    ✓ success criteria check - $response.body#/title == 'sunt aut facere repellat...
    ✓ success criteria check - $response.body#/body == "quia et suscipit\\nsuscipi...
    ✓ success criteria check - $response.body#/userId == 1

✓ GET https://jsonplaceholder.typicode.com/posts/wrong-id - step get-wrong-post
    ✓ success criteria check
    ✓ success criteria check - $statusCode == 404

────────────────────────────────────────────────────────────────────────────────

Running workflow free.yaml / xml

✗ POST http://restapi.adequateshop.com/api/Traveler - step post-traveler
    ✓ success criteria check
    ✓ success criteria check
    ✗ success criteria check
    ✓ success criteria check - $statusCode == 404
    ✓ success criteria check - $response.header.content-type == 'text/html; chars...
    ✗ success criteria check - $response.body == '<Error><Message>Pleae try with ...


  Failed tests info:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ exports[`should implicitly add content type header based on requestBody.content
       "instance": "string"
      }

    ✓ success criteria check
    ✓ success criteria check - $request.header.content-type == 'application/origi...
    ✓ status code check (Response code 400 matches one of description codes: [201, 400])
    ✓ content-type check
    ✓ schema check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ exports[`should use inputs from CLI and env 1`] = `
       }
      ]

    ✓ success criteria check
    ✓ success criteria check - $statusCode == 200
    ✓ status code check (Response code 200 matches one of description codes: [200, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down Expand Up @@ -103,7 +103,7 @@ exports[`should use inputs from CLI and env 1`] = `
       "confirmationCode": "ticket-general-e5e5c6-dce78"
      }

    ✓ success criteria check
    ✓ success criteria check - $statusCode == 201
    ✓ status code check (Response code 201 matches one of description codes: [201, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down Expand Up @@ -152,8 +152,8 @@ exports[`should use inputs from CLI and env 1`] = `
       "price": 0
      }

    ✓ success criteria check
    ✓ success criteria check
    ✓ success criteria check - $statusCode == 201
    ✓ success criteria check - $.name == 'Mermaid Treasure Identification and Ana...
    ✓ status code check (Response code 201 matches one of description codes: [201, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,31 @@ exports[`local-json-server local-json-server test case 1`] = `
Running workflow local-json-server.yaml / crud-items

✓ POST /items - step add-item
    ✓ success criteria check
    ✓ success criteria check - $statusCode == 201
    ✓ status code check (Response code 201 matches one of description codes: [201])
    ✓ content-type check
    ✓ schema check

✗ GET /items - step get-all-items-again
    ✗ success criteria check
    ✗ success criteria check - $response.body#/0/value == 100
    ✓ status code check (Response code 200 matches one of description codes: [200])
    ✓ content-type check
    ✓ schema check

✓ GET /items/{id} - step get-item-by-id
    ✓ success criteria check
    ✓ success criteria check
    ✓ success criteria check
    ✓ success criteria check - $statusCode == 200
    ✓ success criteria check - $response.body#/id == $steps.add-item.outputs.crea...
    ✓ success criteria check - $response.body#/value == $steps.add-item.outputs.c...
    ✓ status code check (Response code 200 matches one of description codes: [200, 404])
    ✓ content-type check
    ✓ schema check

✓ DELETE /items/{id} - step drop-item
    ✓ success criteria check
    ✓ success criteria check - $statusCode == 200
    ✓ status code check (Response code 200 matches one of description codes: [200])

✓ GET /items/{id} - step get-after-deleting
    ✓ success criteria check
    ✓ success criteria check - $statusCode == 404
    ✓ status code check (Response code 404 matches one of description codes: [200, 404])
    ✓ content-type check

Expand All @@ -62,7 +62,7 @@ exports[`local-json-server local-json-server test case 1`] = `
    ✓ content-type check

✓ DELETE /items/{id} - step drop-item-auto-inherit
    ✓ success criteria check
    ✓ success criteria check - $statusCode == 200
    ✓ status code check (Response code 200 matches one of description codes: [200])


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ exports[`should hide sensitive input values 1`] = `
       }
      ]

    ✓ success criteria check
    ✓ success criteria check - $statusCode == 200
    ✓ status code check (Response code 200 matches one of description codes: [200, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down Expand Up @@ -254,8 +254,8 @@ exports[`should hide sensitive input values 1`] = `
       "price": 0
      }

    ✓ success criteria check
    ✓ success criteria check
    ✓ success criteria check - $statusCode == 201
    ✓ success criteria check - $.name == 'Mermaid Treasure Identification and Ana...
    ✓ status code check (Response code 201 matches one of description codes: [201, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ exports[`should resolve outputs access syntax variations 1`] = `
       }
      ]

    ✓ success criteria check
    ✓ success criteria check - $statusCode == 200
    ✓ status code check (Response code 200 matches one of description codes: [200, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down Expand Up @@ -103,7 +103,7 @@ exports[`should resolve outputs access syntax variations 1`] = `
       "confirmationCode": "ticket-general-e5e5c6-dce78"
      }

    ✓ success criteria check
    ✓ success criteria check - $statusCode == 201
    ✓ status code check (Response code 201 matches one of description codes: [201, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down Expand Up @@ -281,9 +281,9 @@ exports[`should resolve outputs access syntax variations 1`] = `
       "price": 0
      }

    ✓ success criteria check
    ✓ success criteria check
    ✓ success criteria check
    ✓ success criteria check - $statusCode == 201
    ✓ success criteria check - $workflows.get-museum-hours.outputs.message == 'Mu...
    ✓ success criteria check - $.name == 'Mermaid Treasure Identification and Ana...
    ✓ status code check (Response code 201 matches one of description codes: [201, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down Expand Up @@ -316,8 +316,8 @@ exports[`should resolve outputs access syntax variations 1`] = `
       "price": 60
      }

    ✓ success criteria check
    ✓ success criteria check
    ✓ success criteria check - $workflows.events-crud.outputs.createdEventData#/p...
    ✓ success criteria check - ^200$
    ✓ status code check (Response code 200 matches one of description codes: [200, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ exports[`should use inputs from CLI and env to mapp with resolved refs 1`] = `
       }
      ]

    ✓ success criteria check
    ✓ success criteria check - $statusCode == 200
    ✓ status code check (Response code 200 matches one of description codes: [200, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down Expand Up @@ -140,7 +140,7 @@ exports[`should use inputs from CLI and env to mapp with resolved refs 1`] = `
       }
      ]

    ✗ success criteria check
    ✗ success criteria check - $statusCode == 201
    ✓ status code check (Response code 200 matches one of description codes: [200, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down Expand Up @@ -213,7 +213,7 @@ exports[`should use inputs from CLI and env to mapp with resolved refs 1`] = `
       }
      ]

    ✓ success criteria check
    ✓ success criteria check - $statusCode == 200
    ✓ status code check (Response code 200 matches one of description codes: [200, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down Expand Up @@ -401,7 +401,7 @@ exports[`should use inputs from CLI and env to mapp with resolved refs 1`] = `
       "price": 0
      }

    ✓ success criteria check
    ✓ success criteria check - $statusCode == 201
    ✓ status code check (Response code 201 matches one of description codes: [201, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down Expand Up @@ -475,7 +475,7 @@ exports[`should use inputs from CLI and env to mapp with resolved refs 1`] = `
       }
      ]

    ✓ success criteria check
    ✓ success criteria check - $statusCode == 200
    ✓ status code check (Response code 200 matches one of description codes: [200, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ exports[`should use error severity level 1`] = `
       }
      ]

    ✓ success criteria check
    ✓ success criteria check - $statusCode == 200
    ✗ status code check

Running child workflow for the step buy-ticket
Expand Down Expand Up @@ -102,7 +102,7 @@ exports[`should use error severity level 1`] = `
       "confirmationCode": "ticket-general-e5e5c6-dce78"
      }

    ✓ success criteria check
    ✓ success criteria check - $statusCode == 201
    ✓ status code check (Response code 201 matches one of description codes: [201, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down Expand Up @@ -280,8 +280,8 @@ exports[`should use error severity level 1`] = `
       "price": 0
      }

    ✓ success criteria check
    ✓ success criteria check
    ✓ success criteria check - $statusCode == 201
    ✓ success criteria check - $.name == 'Mermaid Treasure Identification and Ana...
    ✓ status code check (Response code 201 matches one of description codes: [201, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down Expand Up @@ -310,7 +310,7 @@ exports[`should use error severity level 1`] = `
       "price": 60
      }

    ✓ success criteria check
    ✓ success criteria check - ^200$
    ✓ status code check (Response code 200 matches one of description codes: [200, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down Expand Up @@ -349,8 +349,8 @@ exports[`should use error severity level 1`] = `
       "price": 0
      }

    ✓ success criteria check
    ✓ success criteria check
    ✓ success criteria check - $statusCode == 200
    ✓ success criteria check - $.name == 'Orca Identification and Analysis'
    ✓ status code check (Response code 200 matches one of description codes: [200, 400, 404])
    ✗ content-type check

Expand All @@ -367,7 +367,7 @@ exports[`should use error severity level 1`] = `
    Response Body:
      {}

    ✗ success criteria check
    ✗ success criteria check - $statusCode == 200
    ✗ status code check


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ exports[`should use off severity level 1`] = `
       }
      ]

    ✓ success criteria check
    ✓ success criteria check - $statusCode == 200
    ✗ status code check

Running child workflow for the step buy-ticket
Expand Down Expand Up @@ -102,7 +102,7 @@ exports[`should use off severity level 1`] = `
       "confirmationCode": "ticket-general-e5e5c6-dce78"
      }

    ✓ success criteria check
    ✓ success criteria check - $statusCode == 201
    ✓ status code check (Response code 201 matches one of description codes: [201, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down Expand Up @@ -280,8 +280,8 @@ exports[`should use off severity level 1`] = `
       "price": 0
      }

    ✓ success criteria check
    ✓ success criteria check
    ✓ success criteria check - $statusCode == 201
    ✓ success criteria check - $.name == 'Mermaid Treasure Identification and Ana...
    ✓ status code check (Response code 201 matches one of description codes: [201, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down Expand Up @@ -310,7 +310,7 @@ exports[`should use off severity level 1`] = `
       "price": 60
      }

    ✓ success criteria check
    ✓ success criteria check - ^200$
    ✓ status code check (Response code 200 matches one of description codes: [200, 400, 404])
    ✓ content-type check
    ✓ schema check
Expand Down Expand Up @@ -349,8 +349,8 @@ exports[`should use off severity level 1`] = `
       "price": 0
      }

    ✓ success criteria check
    ✓ success criteria check
    ✓ success criteria check - $statusCode == 200
    ✓ success criteria check - $.name == 'Orca Identification and Analysis'
    ✓ status code check (Response code 200 matches one of description codes: [200, 400, 404])
    ✗ content-type check

Expand All @@ -367,7 +367,7 @@ exports[`should use off severity level 1`] = `
    Response Body:
      {}

    ✗ success criteria check
    ✗ success criteria check - $statusCode == 200
    ✗ status code check


Expand Down
Loading
Loading