From 65a2632aa1f20bdd97207afb2dbd3dd8a2cc3a8b Mon Sep 17 00:00:00 2001 From: Michael Folz Date: Tue, 14 Jan 2025 16:47:41 +0100 Subject: [PATCH] #382 - Change display and translations structure for criteria and concepts - remove GET of documents with fixed ids from elastic search integration test since those ids differ with each new ontology --- .github/scripts/post-elastic-test-queries.sh | 33 -------------------- 1 file changed, 33 deletions(-) diff --git a/.github/scripts/post-elastic-test-queries.sh b/.github/scripts/post-elastic-test-queries.sh index c5a5a0f9..d0386b21 100755 --- a/.github/scripts/post-elastic-test-queries.sh +++ b/.github/scripts/post-elastic-test-queries.sh @@ -2,39 +2,6 @@ curl "$ELASTIC_HOST/_cat/indices" -response=$(curl -s -w "%{http_code}" -o response_body "$ELASTIC_HOST/ontology/_doc/7f33051d-d44a-33f5-9297-be1e192b5d5a") -http_code="${response: -3}" -json_body=$(cat response_body) - -if [ "$http_code" -eq 200 ]; then - if echo "$json_body" | jq '.found == true' | grep -q true; then - echo "Ontology Document found in elastic search" - else - echo "Empty or nonexistent response from elastic search" - exit 1 - fi -else - echo "Response code $http_code" - exit 1 -fi - - -response=$(curl -s -w "%{http_code}" -o response_body "$ELASTIC_HOST/codeable_concept/_doc/a2ac3e3d-f649-3f0a-916a-74a5abc3a361") -http_code="${response: -3}" -json_body=$(cat response_body) - -if [ "$http_code" -eq 200 ]; then - if echo "$json_body" | jq '.found == true' | grep -q true; then - echo "Codeable Concept Document found in elastic search" - else - echo "Empty or nonexistent response from elastic search" - exit 1 - fi -else - echo "Response code $http_code" - exit 1 -fi - access_token="$(curl -s --request POST \ --url http://localhost:8083/auth/realms/dataportal/protocol/openid-connect/token \ --header 'Content-Type: application/x-www-form-urlencoded' \