Skip to content

Commit 7f76fc9

Browse files
committed
update tests
1 parent a5d4803 commit 7f76fc9

File tree

89 files changed

+1986
-31
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1986
-31
lines changed

.github/workflows/smoke-plugins.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install dependencies
2121
run: npm ci
2222
- name: Prepare Smoke
23-
run: bash ./scripts/prepare-smoke-plugins.sh
23+
run: bash ./__tests__/smoke-plugins/prepare-smoke-plugins.sh
2424
- uses: actions/cache@v3
2525
with:
2626
path: __tests__/smoke-plugins/

.github/workflows/smoke.yaml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install dependencies
2121
run: npm ci
2222
- name: Prepare Smoke
23-
run: bash ./scripts/prepare-smoke.sh
23+
run: bash ./__tests__/smoke/prepare-smoke.sh
2424
- uses: actions/cache@v3
2525
with:
2626
path: __tests__/smoke/
@@ -283,28 +283,6 @@ jobs:
283283
node-version: 18
284284
- run: bash ./__tests__/smoke/run-smoke.sh "yarn add ./redocly-cli.tgz" "yarn"
285285

286-
run-smoke--split--windows:
287-
needs: prepare-smoke
288-
runs-on: windows-latest
289-
steps:
290-
- uses: actions/checkout@v3
291-
- uses: actions/cache@v3
292-
with:
293-
path: __tests__/smoke/
294-
key: cache-${{ github.run_id }}-${{ github.run_attempt }}
295-
enableCrossOsArchive: true
296-
- uses: actions/setup-node@v3
297-
with:
298-
node-version: 22
299-
- name: Run split smoke
300-
run: |
301-
npm i -g __tests__/smoke/redocly-cli.tgz
302-
redocly --version
303-
redocly split resources/pets.yaml --outDir __tests__/smoke/__split-pets
304-
git diff
305-
redocly split resources/museum.yaml --outDir __tests__/smoke/__split-museum
306-
git diff
307-
308286
run-smoke--docker-image:
309287
runs-on: ubuntu-latest
310288
steps:
File renamed without changes.

__tests__/smoke/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"redocly-version": "redocly --version",
99
"redocly-lint": "redocly lint openapi.yaml",
1010
"redocly-bundle": "redocly bundle openapi.yaml --ext json",
11-
"redocly-build-docs": "redocly build-docs openapi.yaml"
11+
"redocly-build-docs": "redocly build-docs openapi.yaml",
12+
"redocly-split": "redocly split pets.yaml --outDir output/split/petstore && redocly split museum.yaml --outDir output/split/museum"
1213
},
1314
"author": "redocly",
1415
"license": "ISC"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
summary: Special event ticket
2+
value:
3+
ticketType: general
4+
eventId: dad4bce8-f5cb-4078-a211-995864315e39
5+
ticketDate: '2023-09-05'
6+
email: todd@example.com
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
summary: Special event ticket
2+
value:
3+
message: Museum special event ticket purchased
4+
ticketId: b811f723-17b2-44f7-8952-24b03e43d8a9
5+
eventName: Mermaid Treasure Identification and Analysis
6+
ticketType: event
7+
ticketDate: '2023-09-05'
8+
confirmationCode: ticket-event-9c55eg-8v82a
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
summary: General entry ticket
2+
value:
3+
ticketType: general
4+
ticketDate: '2023-09-07'
5+
email: todd@example.com
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
summary: General entry ticket
2+
value:
3+
message: Museum general entry ticket purchased
4+
ticketId: 382c0820-0530-4f4b-99af-13811ad0f17a
5+
ticketType: general
6+
ticketDate: '2023-09-07'
7+
confirmationCode: ticket-general-e5e5c6-dce78
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
summary: Create special event
2+
value:
3+
name: Mermaid Treasure Identification and Analysis
4+
location: Under the seaaa 🦀 🎶 🌊.
5+
eventDescription: >-
6+
Join us as we review and classify a rare collection of 20 thingamabobs,
7+
gadgets, gizmos, whoosits, and whatsits, kindly donated by Ariel.
8+
dates:
9+
- '2023-09-05'
10+
- '2023-09-08'
11+
price: 0
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
summary: Special event created
2+
value:
3+
eventId: dad4bce8-f5cb-4078-a211-995864315e39
4+
name: Mermaid Treasure Identification and Analysis
5+
location: Under the seaaa 🦀 🎶 🌊.
6+
eventDescription: >-
7+
Join us as we review and classify a rare collection of 20 thingamabobs,
8+
gadgets, gizmos, whoosits, and whatsits, kindly donated by Ariel.
9+
dates:
10+
- '2023-09-05'
11+
- '2023-09-08'
12+
price: 30

0 commit comments

Comments
 (0)