Completed for a grade of three

This commit is contained in:
2026-11-05 14:10:23 +03:00
parent 319f0d519e
commit 770ca11745
44 changed files with 1209 additions and 47 deletions
+6
View File
@@ -0,0 +1,6 @@
Upload: 201 ready; instance=ecbe49d85c82
Anonymous S3 GET of known object: 403
Outsider metadata/content: 404
Download: 200; instance=9440528ba703
SHA-256: 99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
PASS: uploading replica stopped; original served by another replica; stopped replica restored
+4
View File
@@ -0,0 +1,4 @@
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:8084"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 123, "failed_attempts": 0, "first_recovery_seconds": 5.537}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
+22
View File
@@ -0,0 +1,22 @@
Command: ./gradlew test --rerun-tasks
AWS SDK for Kotlin 1.6.41; BUILD SUCCESSFUL
Tests: 75; failures: 0; errors: 0; skipped: 0
com.mtusi.messenger.main.infrastructure.controllers.attachment.AttachmentControllerTest: tests=3 failures=0
com.mtusi.messenger.main.infrastructure.controllers.authentication.AuthenticationControllerTest: tests=9 failures=0
com.mtusi.messenger.main.infrastructure.controllers.chat.ChatControllerTest: tests=6 failures=0
com.mtusi.messenger.main.infrastructure.controllers.health.HealthControllerTest: tests=2 failures=0
com.mtusi.messenger.main.infrastructure.controllers.message.MessageConcurrencyTest: tests=1 failures=0
com.mtusi.messenger.main.infrastructure.controllers.message.MessageControllerTest: tests=7 failures=0
com.mtusi.messenger.main.infrastructure.controllers.message.MessageIdempotencyTest: tests=7 failures=0
com.mtusi.messenger.main.infrastructure.controllers.user.UserControllerTest: tests=11 failures=0
com.mtusi.messenger.main.infrastructure.repositories.authentication.session.cache.RedisSessionCacheRepositoryTest: tests=3 failures=0
com.mtusi.messenger.main.infrastructure.repositories.chat.ExposedChatRepositoryTest: tests=2 failures=0
com.mtusi.messenger.main.infrastructure.services.attachment.ImageValidatorTest: tests=2 failures=0
com.mtusi.messenger.main.infrastructure.services.authentication.CrossReplicaRevocationTest: tests=2 failures=0
com.mtusi.messenger.main.infrastructure.services.authentication.SessionLookupSingleFlightTest: tests=4 failures=0
com.mtusi.messenger.main.infrastructure.services.hashing.DefaultHashingServiceTest: tests=4 failures=0
com.mtusi.messenger.main.plugins.CorsTest: tests=2 failures=0
com.mtusi.messenger.main.plugins.DatabaseMigrationTest: tests=1 failures=0
com.mtusi.messenger.main.plugins.DependencyFailureTest: tests=5 failures=0
com.mtusi.messenger.main.plugins.InstanceIdTest: tests=1 failures=0
com.mtusi.messenger.main.plugins.SessionCacheTest: tests=3 failures=0
+17
View File
@@ -0,0 +1,17 @@
Before restart:
/mtusi-messenger-lab4-api-1 started=2026-11-04T23:04:21.983430629Z
/mtusi-messenger-lab4-api-2 started=2026-11-04T23:03:16.431601751Z
/mtusi-messenger-lab4-lb-1 started=2026-11-04T23:03:19.024302711Z
/mtusi-messenger-lab4-postgres-1 started=2026-11-04T23:03:06.139259385Z
/mtusi-messenger-lab4-redis-1 started=2026-11-04T23:03:06.148613844Z
/mtusi-messenger-lab4-s3-1 started=2026-11-04T23:03:06.148211344Z
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:8084"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
After restart:
/mtusi-messenger-lab4-api-1 started=2026-11-04T23:04:56.021297464Z
/mtusi-messenger-lab4-api-2 started=2026-11-04T23:04:56.113348339Z
/mtusi-messenger-lab4-lb-1 started=2026-11-04T23:04:59.215310882Z
/mtusi-messenger-lab4-postgres-1 started=2026-11-04T23:04:47.265519668Z
/mtusi-messenger-lab4-redis-1 started=2026-11-04T23:04:47.259546585Z
/mtusi-messenger-lab4-s3-1 started=2026-11-04T23:04:47.267464335Z
+2
View File
@@ -0,0 +1,2 @@
python3 tests/smoke.py --base-url "http://localhost:8084"
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.