|
|
@@ -79,12 +79,12 @@ sep "/memories (conversational)"
|
|
|
run "POST /memories — plain text" \
|
|
|
-X POST "$BASE/memories" \
|
|
|
-H "Content-Type: application/json" \
|
|
|
- -d '{"text": "${MEMORY_MARKER} plain text entry for testing", "user_id": "testuser"}'
|
|
|
+ -d "{\"text\": \"${MEMORY_MARKER} plain text entry for testing\", \"user_id\": \"testuser\"}"
|
|
|
|
|
|
run "POST /memories — messages array" \
|
|
|
-X POST "$BASE/memories" \
|
|
|
-H "Content-Type: application/json" \
|
|
|
- -d '{"messages": [{"role": "user", "content": "${MEMORY_MARKER} message entry for testing"}], "user_id": "testuser"}'
|
|
|
+ -d "{\"messages\": [{\"role\": \"user\", \"content\": \"${MEMORY_MARKER} message entry for testing\"}], \"user_id\": \"testuser\"}"
|
|
|
|
|
|
run "POST /memories/all" \
|
|
|
-X POST "$BASE/memories/all" \
|
|
|
@@ -95,7 +95,7 @@ assert_json "memories/all returns array" '.results | type == "array"'
|
|
|
run "POST /memories/search — capture marker" \
|
|
|
-X POST "$BASE/memories/search" \
|
|
|
-H "Content-Type: application/json" \
|
|
|
- -d '{"query": "$MEMORY_MARKER", "user_id": "testuser", "limit": 5 }'
|
|
|
+ -d "{\"query\": \"${MEMORY_MARKER}\", \"user_id\": \"testuser\", \"limit\": 5}"
|
|
|
assert_json "memories marker search returns array" '.results | type == "array"'
|
|
|
|
|
|
MEMORY_IDS=$(echo "$LAST_JSON" | jq -r '.results[] | .id')
|