From 3882042a59ff55b8058503f9266e087653e837bb Mon Sep 17 00:00:00 2001 From: dblock Date: Fri, 10 May 2024 16:42:43 -0400 Subject: [PATCH] Run dredd with hookfiles. Signed-off-by: dblock --- .github/workflows/test.yml | 2 +- tools/package-lock.json | 3 --- tools/package.json | 3 ++- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b01b65f86..f8e3da0e4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,4 +40,4 @@ jobs: - name: Test working-directory: ./tools run: |- - npm run dredd -- --user "admin:$OPENSEARCH_INITIAL_ADMIN_PASSWORD" ../build/min.yaml https://localhost:9200 + npm run dredd -- --user "admin:$OPENSEARCH_INITIAL_ADMIN_PASSWORD" ../build/opensearch-openapi.yaml https://localhost:9200 diff --git a/tools/package-lock.json b/tools/package-lock.json index 2cedf80bc..38a8fe830 100644 --- a/tools/package-lock.json +++ b/tools/package-lock.json @@ -3061,7 +3061,6 @@ }, "node_modules/dredd-transactions/node_modules/@apielements/apib-parser": { "version": "0.20.1", - "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -3077,13 +3076,11 @@ }, "node_modules/dredd-transactions/node_modules/deckardcain": { "version": "1.0.0", - "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/dredd-transactions/node_modules/drafter.js": { "version": "3.2.0", - "extraneous": true, "inBundle": true, "license": "MIT", "engines": { diff --git a/tools/package.json b/tools/package.json index 15a5fbc1f..81a7c7e47 100644 --- a/tools/package.json +++ b/tools/package.json @@ -8,7 +8,8 @@ "merge": "ts-node merger/merge.ts", "lint:spec": "ts-node linter/lint.ts", "lint": "eslint .", - "test": "jest" + "test": "jest", + "dredd": "dredd --hookfiles=./dredd/all.js" }, "dependencies": { "@apidevtools/swagger-parser": "^10.1.0",