From 0a88bf1fbf447d371026b74824bddd632cf43f03 Mon Sep 17 00:00:00 2001 From: Prudhvi Godithi Date: Mon, 26 Feb 2024 09:57:31 -0800 Subject: [PATCH] Add security plugin changes Signed-off-by: Prudhvi Godithi --- .github/workflows/test.yml | 4 ++-- docker-compose.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 657c82d..069fecb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -91,13 +91,13 @@ jobs: - name: Wait for OpenSearch # ensure that OS has come up and is available run: | - ./script/wait-for-endpoint --timeout=20 http://admin:admin@localhost:9200 + ./script/wait-for-endpoint --timeout=60 http://admin:myStrongPassword123%40456@localhost:9200 - name: Dump docker logs on failure if: failure() uses: jwalton/gh-docker-logs@v2 - name: Run the tests run: | - export OPENSEARCH_URL=http://admin:admin@localhost:9200 + export OPENSEARCH_URL=http://admin:myStrongPassword123%40456@localhost:9200 export TF_LOG=INFO TF_ACC=1 go test ./... -v -parallel 20 -cover -short # check goreleaser config for deprecations diff --git a/docker-compose.yml b/docker-compose.yml index 1b58279..19bf76d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,7 @@ services: - network.publish_host=127.0.0.1 - logger.org.opensearch=warn - "OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g" + - "OPENSEARCH_INITIAL_ADMIN_PASSWORD=myStrongPassword123@456" - "plugins.security.ssl.http.enabled=false" - ${OSS_ENV_VAR:-FOO=bar} command: ${OS_COMMAND}