Skip to content

feat: adding openapi upload #2805

feat: adding openapi upload

feat: adding openapi upload #2805

Triggered via pull request December 10, 2024 18:33
Status Failure
Total duration 1m 0s
Artifacts

ci.yml

on: pull_request
lint
28s
lint
GitHub Action Dry Run
52s
GitHub Action Dry Run
Matrix: Test Suite
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 9 warnings
__tests__/commands/openapi/upload.test.ts > rdme openapi upload > given that the API definition is a local file > and the command is being run in a CI environment > should overwrite an existing API definition without asking for confirmation: __tests__/commands/openapi/upload.test.ts#L252
AssertionError: expected { …(3) } to strictly equal {} - Expected + Received - Object {} + Object { + "error": [Error: Nock: No match for request { + "method": "GET", + "url": "https://api.readme.com/v2/versions/1.0.0/apis", + "headers": { + "accept": "application/json", + "authorization": "***", + "user-agent": "rdme-github/7.0.0 linux-x64 node-v20.18.1", + "x-github-repository": "readmeio/rdme", + "x-github-run-attempt": "1", + "x-github-run-id": "12262487580", + "x-github-run-number": "2805", + "x-github-sha": "0255825d9d5aee062abd7f6e0b19eca42b4b871d", + "x-rdme-ci": "GitHub Actions", + "x-readme-source": "cli-gh" + } + }], + "stderr": "- Validating the API definition located at __tests__/__fixtures__/petstore-simple-weird-version.json... + ", + "stdout": "", + } ❯ __tests__/commands/openapi/upload.test.ts:252:24
Test Suite (lts/-1)
Process completed with exit code 1.
__tests__/commands/openapi/upload.test.ts > rdme openapi upload > given that the API definition is a local file > and the command is being run in a CI environment > should overwrite an existing API definition without asking for confirmation: __tests__/commands/openapi/upload.test.ts#L252
AssertionError: expected { …(3) } to strictly equal {} - Expected + Received - Object {} + Object { + "error": [Error: Nock: No match for request { + "method": "GET", + "url": "https://api.readme.com/v2/versions/1.0.0/apis", + "headers": { + "accept": "application/json", + "authorization": "***", + "user-agent": "rdme-github/7.0.0 linux-x64 node-v23.4.0", + "x-github-repository": "readmeio/rdme", + "x-github-run-attempt": "1", + "x-github-run-id": "12262487580", + "x-github-run-number": "2805", + "x-github-sha": "0255825d9d5aee062abd7f6e0b19eca42b4b871d", + "x-rdme-ci": "GitHub Actions", + "x-readme-source": "cli-gh" + } + }], + "stderr": "- Validating the API definition located at __tests__/__fixtures__/petstore-simple-weird-version.json... + ", + "stdout": "", + } ❯ __tests__/commands/openapi/upload.test.ts:252:24
Test Suite (latest)
Process completed with exit code 1.
__tests__/commands/openapi/upload.test.ts > rdme openapi upload > given that the API definition is a local file > and the command is being run in a CI environment > should overwrite an existing API definition without asking for confirmation: __tests__/commands/openapi/upload.test.ts#L252
AssertionError: expected { …(3) } to strictly equal {} - Expected + Received - Object {} + Object { + "error": [Error: Nock: No match for request { + "method": "GET", + "url": "https://api.readme.com/v2/versions/1.0.0/apis", + "headers": { + "accept": "application/json", + "authorization": "***", + "user-agent": "rdme-github/7.0.0 linux-x64 node-v22.11.0", + "x-github-repository": "readmeio/rdme", + "x-github-run-attempt": "1", + "x-github-run-id": "12262487580", + "x-github-run-number": "2805", + "x-github-sha": "0255825d9d5aee062abd7f6e0b19eca42b4b871d", + "x-rdme-ci": "GitHub Actions", + "x-readme-source": "cli-gh" + } + }], + "stderr": "- Validating the API definition located at __tests__/__fixtures__/petstore-simple-weird-version.json... + ", + "stdout": "", + } ❯ __tests__/commands/openapi/upload.test.ts:252:24
Test Suite (lts/*)
Process completed with exit code 1.
GitHub Action Dry Run
Token "Error" does not exist.
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test Suite (lts/-1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test Suite (latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test Suite (lts/*)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
GitHub Action Dry Run
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
GitHub Action Dry Run
`pre` execution is not supported for local action from './rdme-repo/'
GitHub Action Dry Run
`pre` execution is not supported for local action from './rdme-repo/'
GitHub Action Dry Run
`pre` execution is not supported for local action from './rdme-repo/'
GitHub Action Dry Run
`pre` execution is not supported for local action from './rdme-repo/'