diff --git a/.github/workflows/analyze-pr-changes.yml b/.github/workflows/analyze-pr-changes.yml index 14bbb1ed2..d962fdc9c 100644 --- a/.github/workflows/analyze-pr-changes.yml +++ b/.github/workflows/analyze-pr-changes.yml @@ -57,7 +57,7 @@ jobs: -e OPENSEARCH_INITIAL_ADMIN_PASSWORD="$OPENSEARCH_PASSWORD" \ opensearch-with-api-plugin - npm install + npm ci npm run dump-cluster-spec -- --opensearch-insecure --output $CLUSTER_SPEC @@ -72,7 +72,7 @@ jobs: - name: Build BEFORE Spec shell: bash -eo pipefail {0} run: | - npm install + npm ci npm run merge -- --source ./spec --output $BEFORE_SPEC - name: Checkout AFTER Spec @@ -82,7 +82,7 @@ jobs: - name: Build AFTER Spec shell: bash -eo pipefail {0} run: | - npm install + npm ci npm run merge -- --source ./spec --output $AFTER_SPEC - name: Calculate Coverage @@ -216,4 +216,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: pr-comment - path: pr-comment.json \ No newline at end of file + path: pr-comment.json diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ed72ed331..4caefaf13 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: node-version: '20' - name: Build - run: npm install && npm run merge + run: npm ci && npm run merge - name: Extract Branch Name id: branch diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 246c9edf9..b04c3d121 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -25,7 +25,7 @@ jobs: node-version: '20' - name: Install Dependencies - run: npm install + run: npm ci - name: Lint run: npm run lint diff --git a/.github/workflows/test-spec.yml b/.github/workflows/test-spec.yml index 80f7577f8..2449a9b10 100644 --- a/.github/workflows/test-spec.yml +++ b/.github/workflows/test-spec.yml @@ -55,7 +55,7 @@ jobs: node-version: '20' - name: Install Dependencies - run: npm install + run: npm ci - name: Run OpenSearch Cluster working-directory: .github/opensearch-cluster diff --git a/.github/workflows/test-tools-integ.yml b/.github/workflows/test-tools-integ.yml index a48dd7518..915e840cd 100644 --- a/.github/workflows/test-tools-integ.yml +++ b/.github/workflows/test-tools-integ.yml @@ -43,7 +43,7 @@ jobs: node-version: '20' - name: Install Dependencies - run: npm install + run: npm ci - name: Tests run: | @@ -52,4 +52,4 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v4.0.1 with: - token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-tools-unit.yml b/.github/workflows/test-tools-unit.yml index 00b585bb2..d18fc2525 100644 --- a/.github/workflows/test-tools-unit.yml +++ b/.github/workflows/test-tools-unit.yml @@ -33,7 +33,7 @@ jobs: node-version: '20' - name: Install Dependencies - run: npm install + run: npm ci - name: Tests run: | @@ -42,4 +42,4 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v4.0.1 with: - token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/validate-spec.yml b/.github/workflows/validate-spec.yml index 89213ac67..71f6f478d 100644 --- a/.github/workflows/validate-spec.yml +++ b/.github/workflows/validate-spec.yml @@ -25,7 +25,7 @@ jobs: node-version: '20' - name: Install Dependencies - run: npm install + run: npm ci - name: Lint Spec run: npm run lint:spec diff --git a/TESTING_GUIDE.md b/TESTING_GUIDE.md index e7e1ba7e8..ad79f85d6 100644 --- a/TESTING_GUIDE.md +++ b/TESTING_GUIDE.md @@ -1,6 +1,9 @@ - [Spec Testing Guide](#spec-testing-guide) - [Running Spec Tests Locally](#running-spec-tests-locally) + - [Common Errors](#common-errors) + - [401 Unauthorized](#401-unauthorized) + - [FORBIDDEN/10/cluster create-index blocked (api)](#forbidden10cluster-create-index-blocked-api) - [Writing Spec Tests](#writing-spec-tests) - [Simple Test Story](#simple-test-story) - [Using Output from Previous Chapters](#using-output-from-previous-chapters)