content type/
This commit is contained in:
parent
400cdc5059
commit
71b470c107
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -227,7 +227,7 @@ test-ci:
|
|||
JWT_AUTH_READY=false; \
|
||||
for i in $$(seq 1 60); do \
|
||||
if curl -k -s https://localhost:9200 -u admin:$${OPENSEARCH_PASSWORD} >/dev/null 2>&1; then \
|
||||
if curl -k -s -H "Authorization: Bearer $$TEST_TOKEN" https://localhost:9200/documents/_search -d '{"query":{"match_all":{}}}' 2>&1 | grep -v "Unauthorized" >/dev/null; then \
|
||||
if curl -k -s -H "Authorization: Bearer $$TEST_TOKEN" -H "Content-Type: application/json" https://localhost:9200/documents/_search -d '{"query":{"match_all":{}}}' 2>&1 | grep -v "Unauthorized" >/dev/null; then \
|
||||
echo "✓ OpenSearch JWT auth working after $$((i*2)) seconds"; \
|
||||
JWT_AUTH_READY=true; \
|
||||
break; \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue