From af5fd767a6d410cbed66d6faf5fbd51e89e99eed Mon Sep 17 00:00:00 2001 From: Peter Nied Date: Tue, 26 Sep 2023 20:49:21 +0000 Subject: [PATCH] Make sure CURL fails if there is a 400+ error code response Signed-off-by: Peter Nied --- .github/actions/start-opensearch-with-one-plugin/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/start-opensearch-with-one-plugin/action.yml b/.github/actions/start-opensearch-with-one-plugin/action.yml index b0beed68ac..4a8fc98d6c 100644 --- a/.github/actions/start-opensearch-with-one-plugin/action.yml +++ b/.github/actions/start-opensearch-with-one-plugin/action.yml @@ -108,7 +108,7 @@ runs: # Verify that the server is operational - name: Check OpenSearch Running on Linux if: ${{ runner.os != 'Windows'}} - run: curl https://localhost:9200/_cat/plugins -u 'admin:${{ inputs.admin-password }}' -k -v + run: curl https://localhost:9200/_cat/plugins -u 'admin:${{ inputs.admin-password }}' -k -v --fail-with-body shell: bash - name: Check OpenSearch Running on Windows