From 611ba6731af61bc6936ccc9b988931b76d2f221e Mon Sep 17 00:00:00 2001 From: Tim Middleton Date: Thu, 16 May 2024 09:38:37 +0800 Subject: [PATCH] Add tests to Coherence demo project (#100) * Add tests to Coherence demo project * add more curl tests --- .github/workflows/maven-build-snapshots.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/maven-build-snapshots.yml b/.github/workflows/maven-build-snapshots.yml index 5c70520..030ad67 100644 --- a/.github/workflows/maven-build-snapshots.yml +++ b/.github/workflows/maven-build-snapshots.yml @@ -48,6 +48,18 @@ jobs: run: | echo "Running verify against $COH_VERSION" mvn --file pom.xml -nsu --batch-mode -e -Dcoherence.version=$COH_VERSION clean install + echo "==== Testing end-points =====" + mvn exec:exec > server.log 2>&1 & + PID=$! + sleep 30 + curl -s http://127.0.0.1:8080/service/chart-data/false | jq + curl -s http://127.0.0.1:8080/service/chart-data/true | jq + curl -v http://127.0.0.1:8080/service/start-member/1 + sleep 10 + curl -v http://127.0.0.1:8080/service/stop-member/1 + curl -q http://127.0.0.1:8080/service/developer/hostname + curl -q http://127.0.0.1:8080/service/developer/populate + kill $PID - name: Coherence Demo Jar uses: actions/upload-artifact@v4