test bgs cmd
This commit is contained in:
@@ -86,6 +86,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
database:
|
database:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
command: ["/bigsky", "--crawl-insecure-ws"]
|
||||||
|
|
||||||
social-app:
|
social-app:
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -431,7 +431,7 @@ function at-repos-reset-bgs-db() {
|
|||||||
result=$(curl -s -X POST "https://bgs.${host}/admin/pds/requestCrawl" \
|
result=$(curl -s -X POST "https://bgs.${host}/admin/pds/requestCrawl" \
|
||||||
-H "Authorization: Bearer ${BGS_ADMIN_KEY}" \
|
-H "Authorization: Bearer ${BGS_ADMIN_KEY}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{\"hostname\":\"${host}\"}" \
|
-d "{\"hostname\":\"pds:3000\"}" \
|
||||||
-w "%{http_code}" -o /dev/null)
|
-w "%{http_code}" -o /dev/null)
|
||||||
if [ "$result" = "200" ]; then
|
if [ "$result" = "200" ]; then
|
||||||
echo "✅ PDS crawl requested successfully"
|
echo "✅ PDS crawl requested successfully"
|
||||||
|
|||||||
Reference in New Issue
Block a user