From b024818a337077063a49d25291e428572dab997d Mon Sep 17 00:00:00 2001 From: Martynas Date: Mon, 23 Oct 2023 00:21:29 +0200 Subject: [PATCH] Fixed HTTP test? --- http-tests/imports/import-rdf-no-query.sh | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/http-tests/imports/import-rdf-no-query.sh b/http-tests/imports/import-rdf-no-query.sh index 9e3b0d111..661772733 100755 --- a/http-tests/imports/import-rdf-no-query.sh +++ b/http-tests/imports/import-rdf-no-query.sh @@ -21,21 +21,11 @@ pushd . > /dev/null && cd "$SCRIPT_ROOT/admin/acl" popd > /dev/null -pushd . > /dev/null && cd "$SCRIPT_ROOT" - -# create container - -container=$(./create-container.sh \ - -f "$AGENT_CERT_FILE" \ - -p "$AGENT_CERT_PWD" \ - -b "$END_USER_BASE_URL" \ - --title "Concepts" \ - --slug "concepts" \ - --parent "$END_USER_BASE_URL") +pushd . > /dev/null && cd "$SCRIPT_ROOT/imports" # import RDF -cd imports +item="${END_USER_BASE_URL}concepts/" ./import-rdf.sh \ -f "$AGENT_CERT_FILE" \ @@ -44,7 +34,7 @@ cd imports --title "Test" \ --file "$pwd/test.ttl" \ --file-content-type "text/turtle" \ - --graph "$container" + --graph "$item" popd > /dev/null @@ -56,12 +46,12 @@ test_triples="" while [ "$i" -lt "$counter" ] && [ -z "$test_triples" ] do - # check item properties + # check expected graph content test_triples=$(curl -G -k -f -s -N \ -E "$AGENT_CERT_FILE":"$AGENT_CERT_PWD" \ -H "Accept: application/n-triples" \ - "$container" \ + "$item" \ | grep " " || [[ $? == 1 ]]) sleep 1 ;