82 lines
4.5 KiB
Plaintext
82 lines
4.5 KiB
Plaintext
> docker compose ps api
|
|
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
|
mtusi2026lab3-api-1 mtusi-messenger:lab3 "/app/server" api 17 seconds ago Up 9 seconds (healthy) 8080/tcp
|
|
mtusi2026lab3-api-2 mtusi-messenger:lab3 "/app/server" api 17 seconds ago Up 9 seconds (healthy) 8080/tcp
|
|
> make load-action-go ACTION=rolling-update.sh LOAD_DURATION=60s ACTION_AT=10s
|
|
go test -tags=load,action ./student-tests/... -run TestLoadWithAction -v -args \
|
|
-base-url=http://localhost:8080 -duration=60s \
|
|
-replica=1 \
|
|
-action=/mnt/c/Users/kamywek10/Documents/Gitea/mtusi2026lab3/scripts/rolling-update.sh \
|
|
-action-at=10s
|
|
=== RUN TestLoadWithAction
|
|
load_action_test.go:139: t= 0s ok= 380 err= 0
|
|
load_action_test.go:139: t= 1s ok= 400 err= 0
|
|
load_action_test.go:139: t= 2s ok= 400 err= 0
|
|
load_action_test.go:139: t= 3s ok= 400 err= 0
|
|
load_action_test.go:139: t= 4s ok= 400 err= 0
|
|
load_action_test.go:139: t= 5s ok= 400 err= 0
|
|
load_action_test.go:139: t= 6s ok= 400 err= 0
|
|
load_action_test.go:139: t= 7s ok= 400 err= 0
|
|
load_action_test.go:139: t= 8s ok= 400 err= 0
|
|
load_action_test.go:139: t= 9s ok= 400 err= 0
|
|
load_action_test.go:139: t=10s ok= 400 err= 0
|
|
load_action_test.go:139: t=11s ok= 399 err= 0
|
|
load_action_test.go:139: t=12s ok= 401 err= 0
|
|
load_action_test.go:139: t=13s ok= 400 err= 0
|
|
load_action_test.go:139: t=14s ok= 400 err= 0
|
|
load_action_test.go:139: t=15s ok= 400 err= 0
|
|
load_action_test.go:139: t=16s ok= 400 err= 0
|
|
load_action_test.go:139: t=17s ok= 400 err= 0
|
|
load_action_test.go:139: t=18s ok= 400 err= 0
|
|
load_action_test.go:139: t=19s ok= 400 err= 0
|
|
load_action_test.go:139: t=20s ok= 400 err= 0
|
|
load_action_test.go:139: t=21s ok= 189 err= 0
|
|
load_action_test.go:139: t=22s ok= 250 err= 0
|
|
load_action_test.go:139: t=23s ok= 400 err= 0
|
|
load_action_test.go:139: t=24s ok= 400 err= 0
|
|
load_action_test.go:139: t=25s ok= 400 err= 0
|
|
load_action_test.go:139: t=26s ok= 400 err= 0
|
|
load_action_test.go:139: t=27s ok= 400 err= 0
|
|
load_action_test.go:139: t=28s ok= 400 err= 0
|
|
load_action_test.go:139: t=29s ok= 400 err= 0
|
|
load_action_test.go:139: t=30s ok= 47 err= 0
|
|
load_action_test.go:139: t=31s ok= 60 err= 0
|
|
load_action_test.go:139: t=32s ok= 333 err= 0
|
|
load_action_test.go:139: t=33s ok= 400 err= 0
|
|
load_action_test.go:139: t=34s ok= 400 err= 0
|
|
load_action_test.go:139: t=35s ok= 400 err= 0
|
|
load_action_test.go:139: t=36s ok= 400 err= 0
|
|
load_action_test.go:139: t=37s ok= 400 err= 0
|
|
load_action_test.go:139: t=38s ok= 400 err= 0
|
|
load_action_test.go:139: t=39s ok= 400 err= 0
|
|
load_action_test.go:139: t=40s ok= 400 err= 0
|
|
load_action_test.go:139: t=41s ok= 400 err= 0
|
|
load_action_test.go:139: t=42s ok= 400 err= 0
|
|
load_action_test.go:139: t=43s ok= 400 err= 0
|
|
load_action_test.go:139: t=44s ok= 400 err= 0
|
|
load_action_test.go:139: t=45s ok= 400 err= 0
|
|
load_action_test.go:139: t=46s ok= 400 err= 0
|
|
load_action_test.go:139: t=47s ok= 400 err= 0
|
|
load_action_test.go:139: t=48s ok= 400 err= 0
|
|
load_action_test.go:139: t=49s ok= 400 err= 0
|
|
load_action_test.go:139: t=50s ok= 400 err= 0
|
|
load_action_test.go:139: t=51s ok= 400 err= 0
|
|
load_action_test.go:139: t=52s ok= 400 err= 0
|
|
load_action_test.go:139: t=53s ok= 400 err= 0
|
|
load_action_test.go:139: t=54s ok= 400 err= 0
|
|
load_action_test.go:139: t=55s ok= 400 err= 0
|
|
load_action_test.go:139: t=56s ok= 400 err= 0
|
|
load_action_test.go:139: t=57s ok= 400 err= 0
|
|
load_action_test.go:139: t=58s ok= 400 err= 0
|
|
load_action_test.go:139: t=59s ok= 400 err= 0
|
|
load_action_test.go:139: t=60s ok= 0 err= 0
|
|
load_action_test.go:142: action: started at 10.00s, finished at 30.30s
|
|
load_action_test.go:143: total ok=22859 errors=0, successful RPS=380.98
|
|
load_action_test.go:146: recovery time: 0s (no errors after action start)
|
|
--- PASS: TestLoadWithAction (60.44s)
|
|
PASS
|
|
ok mtusi2026-messenger/student-tests 60.443s
|
|
> docker compose ps api
|
|
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
|
mtusi2026lab3-api-3 mtusi-messenger:lab3 "/app/server" api 50 seconds ago Up 49 seconds (healthy) 8080/tcp
|
|
mtusi2026lab3-api-4 mtusi-messenger:lab3 "/app/server" api 42 seconds ago Up 41 seconds (healthy) 8080/tcp |