feat: implement scorecard-classic command #8123
tests.yaml
on: pull_request
build-and-unit
5m 57s
cli-package-test
51s
code-style-check
1m 18s
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/outputs-access-syntax-variations/outputs-access-syntax-variations.test.ts > should resolve outputs access syntax variations:
tests/e2e/respect/outputs-access-syntax-variations/outputs-access-syntax-variations.test.ts#L13
Error: Snapshot `should resolve outputs access syntax variations 1` mismatched
- Expected
+ Received
@@ -294,53 +294,41 @@
────────────────────────────────────────────────────────────────────────────────
Running workflow outputs-access-syntax-variations.arazzo.yaml / get-event-by-id
- ✓ GET /special-events/{eventId} - step get-event-by-id
+ ✗ GET /special-events/{eventId} - step get-event-by-id
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
- }
-
- ✓ success criteria check - $workflows.events-crud.outputs.createdEventData#/p...
- ✓ status code check - $statusCode in [200, 400, 404]
- ✓ content-type check
- ✓ schema check
-
-
+ ✗ failed network request
+
+
+ Failed tests info:
+
+ Workflow name: get-event-by-id
+
+ stepId - get-event-by-id
+ ✗ failed network request
+ fetch failed (cause: ECONNRESET)
+
Summary for outputs-access-syntax-variations.arazzo.yaml
- Workflows: 3 passed, 3 total
+ Workflows: 2 passed, 1 failed, 3 total
- Steps: 5 passed, 5 total
+ Steps: 4 passed, 1 failed, 5 total
- Checks: 20 passed, 20 total
+ Checks: 16 passed, 1 failed, 17 total
Time: <test>ms
┌──────────────────────────────────────────────────────────────────────────────────────┬────────────┬─────────┬─────────┬──────────┐
│ Filename │ Workflows │ Passed │ Failed │ Warnings │
├──────────────────────────────────────────────────────────────────────────────────────┼────────────┼─────────┼─────────┼──────────┤
- │ ✓ outputs-access-syntax-variations.arazzo.yaml │ 3 │ 3 │ - │ - │
+ │ x outputs-access-syntax-variations.arazzo.yaml │ 3 │ 2 │ 1 │ - │
└──────────────────────────────────────────────────────────────────────────────────────┴────────────┴─────────┴─────────┴──────────┘
+ Tests exited with error
+
"
❯ tests/e2e/respect/outputs-access-syntax-variations/outputs-access-syntax-variations.test.ts:13:18
|
|
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
|