From 7d1979aa9a2a0fde70c1653569a825d1f9ce40a1 Mon Sep 17 00:00:00 2001 From: Tim Middleton Date: Wed, 15 May 2024 13:10:33 +0800 Subject: [PATCH 1/2] Add tests to Coherence demo project --- .github/workflows/maven-build-snapshots.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/maven-build-snapshots.yml b/.github/workflows/maven-build-snapshots.yml index 5c70520..6cb77ed 100644 --- a/.github/workflows/maven-build-snapshots.yml +++ b/.github/workflows/maven-build-snapshots.yml @@ -48,6 +48,12 @@ 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 + kill $PID - name: Coherence Demo Jar uses: actions/upload-artifact@v4 From 1b087750e2778c97046c0fa2724021b00099a766 Mon Sep 17 00:00:00 2001 From: Tim Middleton Date: Wed, 15 May 2024 13:39:13 +0800 Subject: [PATCH 2/2] add more curl tests --- .github/workflows/maven-build-snapshots.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/maven-build-snapshots.yml b/.github/workflows/maven-build-snapshots.yml index 6cb77ed..030ad67 100644 --- a/.github/workflows/maven-build-snapshots.yml +++ b/.github/workflows/maven-build-snapshots.yml @@ -53,6 +53,12 @@ jobs: 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