feat: implement scorecard-classic command #8126
tests.yaml
on: pull_request
build-and-unit
5m 49s
cli-package-test
50s
code-style-check
1m 21s
Annotations
3 errors and 10 warnings
|
build-and-unit
Process completed with exit code 1.
|
|
tests/e2e/respect/replacements/replacements.test.ts > should replace values in the request body:
tests/e2e/respect/replacements/replacements.test.ts#L13
Error: Snapshot `should replace values in the request body 1` mismatched
- Expected
+ Received
"────────────────────────────────────────────────────────────────────────────────
Running workflow replacements.arazzo.yaml / replacements
- ✓ GET /special-events/{eventId} - step first-step
+ ✗ GET /special-events/{eventId} - step first-step
Request URL: https://redocly.com/_mock/demo/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39
Request Headers:
accept: application/json, application/problem+json
authorization: Basic Og==
-
- Response status code: 200
- Response time: <test> ms
- Response Headers: <response headers test>
- Response Size: <test> bytes
- Response Body:
- {
- "eventId": "6744a0da-4121-49cd-8479-f8cc20526495",
- "name": "Time Traveler Tea Party",
- "location": "Temporal Tearoom",
- "eventDescription": "Sip tea with important historical figures.",
- "dates": [
- "2023-11-18",
- "2023-11-25",
- "2023-12-02"
- ],
- "price": 60
- }
-
- ✓ status code check - $statusCode in [200, 400, 404]
- ✓ content-type check
- ✓ schema check
-
- ✓ POST /tickets - step step-with-json-replacements
-
- Request URL: https://redocly.com/_mock/demo/openapi/museum-api/tickets
- Request Headers:
- content-type: application/json
- accept: application/json, application/problem+json
- authorization: Basic Og==
- Request Body:
- {
- "eventId": "my-custom-event-id",
- "name": "Time Traveler Tea Party",
- "location": "Time Traveler Tea Party",
- "eventDescription": "Sip tea with important historical figures.",
- "dates": [
- "2025-01-01"
- ],
- "price": 60
- }
-
-
- Response status code: 400
- Response time: <test> ms
- Response Headers: <response headers test>
- Response Size: <test> bytes
- Response Body:
- {
- "type": "object",
- "title": "Error validating body. data must have required property 'ticketType', data must have required property 'ticketDate', data must have required property 'email', data/eventId must match format \"uuid\""
- }
-
- ✓ status code check - $statusCode in [201, 400, 404]
- ✓ content-type check
- ✓ schema check
-
- ✓ PATCH /special-events/{eventId} - step step-with-form-urlencoded-replacements
-
- Request URL: https://redocly.com/_mock/demo/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39
- Request Headers:
- content-type: application/x-www-form-urlencoded
- accept: application/json, application/problem+json
- authorization: Basic Og==
- Request Body:
- "name=Time+Traveler+Tea+Party&location=New+York"
-
-
- Response status code: 400
- Response time: <test> ms
- Response Headers: <response headers test>
- Response Size: <test> bytes
- Response Body:
- {
- "type": "object",
- "title": "Media type \"application/x-www-form-urlencoded\" is not supported"
- }
-
- ✓ status code check - $statusCode in [200, 400, 404]
- ✓ content-type check
- ✓ schema check
-
- ✓ PATCH /special-events/{eventId} - step step-with-form-urlencoded-replacements-2
-
- Request URL: https://redocly.com/_mock/demo/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39
-
|
|
tests/e2e/respect/inputs-with-cli-and-env/inputs-with-cli-and-env.test.ts > should use inputs from CLI and env:
tests/e2e/respect/inputs-with-cli-and-env/inputs-with-cli-and-env.test.ts#L21
Error: Snapshot `should use inputs from CLI and env 1` mismatched
- Expected
+ Received
@@ -182,11 +182,11 @@
────────────────────────────────────────────────────────────────────────────────
Running workflow inputs-with-cli-and-env.arazzo.yaml / events-crud
- ✓ POST /special-events - step create-event
+ ✗ POST /special-events - step create-event
Request URL: https://redocly.com/_mock/demo/openapi/museum-api/special-events
Request Headers:
content-type: application/json
accept: application/json, application/problem+json
@@ -205,46 +205,34 @@
"2023-09-08"
],
"price": 0
}
-
- Response status code: 201
- Response time: <test> ms
- Response Headers: <response headers test>
- Response Size: <test> bytes
- Response Body:
- {
- "eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
- "name": "Mermaid Treasure Identification and Analysis",
- "location": "Under the seaaa 🦀 🎶 🌊.",
- "eventDescription": "Join us as we review and classify a rare collection of 20 thingamabobs, gadgets, gizmos, whoosits, and whatsits, kindly donated by Ariel.",
- "dates": [
- "2023-09-05",
- "2023-09-08"
- ],
- "price": 0
- }
-
- ✓ success criteria check - $statusCode == 201
- ✓ success criteria check - $.name == 'Mermaid Treasure Identification and Ana...
- ✓ status code check - $statusCode in [201, 400, 404]
- ✓ content-type check
- ✓ schema check
-
-
+ ✗ failed network request
+
+
+ Failed tests info:
+
+ Workflow name: events-crud
+
+ stepId - create-event
+ ✗ failed network request
+ fetch failed (cause: ECONNRESET)
+
Summary for inputs-with-cli-and-env.arazzo.yaml
- Workflows: 2 passed, 2 total
+ Workflows: 1 passed, 1 failed, 2 total
- Steps: 4 passed, 4 total
+ Steps: 3 passed, 1 failed, 4 total
- Checks: 16 passed, 16 total
+ Checks: 11 passed, 1 failed, 12 total
Time: <test>ms
┌─────────────────────────────────────────────────────────────────────────────┬────────────┬─────────┬─────────┬──────────┐
│ Filename │ Workflows │ Passed │ Failed │ Warnings │
├─────────────────────────────────────────────────────────────────────────────┼────────────┼─────────┼─────────┼──────────┤
- │ ✓ inputs-with-cli-and-env.arazzo.yaml │ 2 │ 2 │ - │ - │
+ │ x inputs-with-cli-and-env.arazzo.yaml │ 2 │ 1 │ 1 │ - │
└─────────────────────────────────────────────────────────────────────────────┴────────────┴─────────┴─────────┴──────────┘
+ Tests exited with error
+
"
❯ tests/e2e/respect/inputs-with-cli-and-env/input
|
|
code-style-check:
packages/cli/src/commands/join.ts#L673
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/join.ts#L653
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/join.ts#L336
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/join.ts#L328
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/join.ts#L192
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/join.ts#L59
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/build-docs/utils.ts#L52
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/build-docs/types.ts#L21
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/build-docs/types.ts#L11
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/build-docs/types.ts#L10
Unexpected any. Specify a different type
|