Skip to content

Commit e3f00fb

Browse files
committed
wip
1 parent 8ce25ec commit e3f00fb

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

artifactory_tests/test_runner/launch.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,23 @@ do
3434
done
3535
echo "Artifactory ready after license activation!"
3636

37+
# Verify the Conan API is actually responding (not just the generic ping).
38+
# Creates a temp Conan repo, polls until auth works (not 503), then deletes it.
39+
curl -s -u"$ARTIFACTORY_USER:$ARTIFACTORY_PASSWORD" -XPUT "$ARTIFACTORY_DEFAULT_URL/api/repositories/conan-readiness-probe" \
40+
-H "Content-Type: application/json" \
41+
-d '{"rclass":"local","packageType":"conan","repoLayoutRef":"conan-default"}' > /dev/null
42+
43+
until [ "$(curl -s -o /dev/null -w '%{http_code}' \
44+
-u"$ARTIFACTORY_USER:$ARTIFACTORY_PASSWORD" \
45+
"$ARTIFACTORY_DEFAULT_URL/api/conan/conan-readiness-probe/v2/users/authenticate")" != "503" ]
46+
do
47+
echo "Conan API not ready yet... waiting"
48+
sleep 4
49+
done
50+
echo "Conan API is ready!"
51+
52+
curl -s -u"$ARTIFACTORY_USER:$ARTIFACTORY_PASSWORD" -XDELETE "$ARTIFACTORY_DEFAULT_URL/api/repositories/conan-readiness-probe" > /dev/null
53+
3754
# Clone Conan repository
3855
echo "Cloning Conan repository..."
3956
git clone "$CONAN_GIT_REPO" conan_sources

0 commit comments

Comments
 (0)