diff --git a/servers/unraid/supermemory-poc/smoke.sh b/servers/unraid/supermemory-poc/smoke.sh index d59a8b3..53240c7 100644 --- a/servers/unraid/supermemory-poc/smoke.sh +++ b/servers/unraid/supermemory-poc/smoke.sh @@ -73,7 +73,18 @@ curl --fail --silent --show-error --max-time 15 \ -H 'Content-Type: application/json' \ --data "{\"q\":\"$existing_marker\",\"containerTag\":\"$container_tag\",\"searchMode\":\"hybrid\",\"limit\":5}" \ "$base_url/v4/search" >/tmp/search-exact.json || fail 41 search-exact-request -grep -q "$existing_marker" /tmp/search-exact.json || fail 44 search-exact-no-hit +if ! grep -q "$existing_marker" /tmp/search-exact.json; then + curl --fail --silent --show-error --max-time 15 \ + -H "$auth_header" \ + -H 'Content-Type: application/json' \ + --data "{\"q\":\"$existing_marker\",\"containerTag\":\"$container_tag\"}" \ + "$base_url/v3/search" >/tmp/search-exact-v3.json || fail 43 search-exact-v3-request + if grep -q "$existing_marker" /tmp/search-exact-v3.json; then + grep -q 'poc-smoke' /tmp/search-exact-v3.json || fail 49 search-v3-metadata-missing + fail 48 search-v3-only + fi + fail 44 search-exact-no-hit +fi grep -q 'poc-smoke' /tmp/search-exact.json || fail 45 search-exact-metadata-missing curl --fail --silent --show-error --max-time 15 \