Răsfoiți Sursa

Bumped version to 5.3.0 and adjusted tests.

nmihajlovski 8 ani în urmă
părinte
comite
badf9a910b

+ 2 - 2
library/rapidoid

@@ -1,5 +1,5 @@
 Maintainers: Nikolche Mihajlovski <[email protected]> (@nmihajlovski)
 GitRepo: https://github.com/rapidoid/docker-rapidoid.git
 
-Tags: 5.2.8, 5.2, 5, latest
-GitCommit: 7eb27264261ac49b80e7089e1192bed955d4db94
+Tags: 5.3.0, 5.3, 5, latest
+GitCommit: 67f00e5020c40a993fdab4d93c0b8cde85bbe0b2

+ 3 - 3
test/tests/rapidoid-hello-world/run.sh

@@ -16,8 +16,8 @@ serverImage="$("$dir/../image-name.sh" librarytest/rapidoid-hello-web "$image")"
 
 "$dir/../docker-build.sh" "$dir" "$serverImage" <<EOD
 FROM $image
-RUN mkdir -p /app/public
-COPY dir/index.html /app/public/
+RUN mkdir -p /app/static
+COPY dir/index.html /app/static/
 EOD
 
 cid="$(docker run -d "$serverImage" app.services=ping)"
@@ -43,4 +43,4 @@ _request() {
 [ "$(_request GET "/index.html")" = "Hello world!" ]
 
 # Make sure that Rapidoid's built-in Ping service works correctly
-[ "$(_request GET "/_ping")" = "OK" ]
+[ "$(_request GET "/rapidoid/ping")" = "OK" ]

+ 2 - 2
test/tests/rapidoid-load-balancer/run.sh

@@ -34,12 +34,12 @@ _request() {
 
 # Make sure all Rapidoid servers are listening on port 80
 for cid in $app1id $app2id $proxyid; do
-    . "$dir/../../retry.sh" --tries 40 --sleep 0.25 '[ "$(_request '$cid' GET /_ping --output /dev/null || echo $?)" != 7 ]'
+    . "$dir/../../retry.sh" --tries 40 --sleep 0.25 '[ "$(_request '$cid' GET /rapidoid/ping --output /dev/null || echo $?)" != 7 ]'
 done
 
 # Make sure that the round-robin load balancing works properly
 for n in `seq 1 5`; do
     for i in 1 2; do
-        [[ "$(_request $cid GET "/_status")" == *"\"app$i\""* ]]
+        [[ "$(_request $cid GET "/rapidoid/status")" == *"\"app$i\""* ]]
     done
 done