Completed for a grade of four
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Upload: 201 ready; instance=ecbe49d85c82
|
||||
Upload: 201 ready; instance=335579ab19d6
|
||||
Anonymous S3 GET of known object: 403
|
||||
Outsider metadata/content: 404
|
||||
Download: 200; instance=9440528ba703
|
||||
Download: 200; instance=a8ee56f6ec22
|
||||
SHA-256: 99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
|
||||
PASS: uploading replica stopped; original served by another replica; stopped replica restored
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
PASS: connection closed mid-body; temporary files removed on both replicas; metadata absent
|
||||
@@ -0,0 +1,131 @@
|
||||
{
|
||||
"concurrency": 10,
|
||||
"file_bytes": 7684003,
|
||||
"pixels": 2560000,
|
||||
"sha256": "de56c853868dc1ee1d4b0046023ed484ecd1e4d2ce2d403fbb661d81a414995b",
|
||||
"baseline_bytes": {
|
||||
"335579ab19d6": 193679360,
|
||||
"a8ee56f6ec22": 204886016
|
||||
},
|
||||
"sampled_peak_bytes": {
|
||||
"335579ab19d6": 296071168,
|
||||
"a8ee56f6ec22": 271552512
|
||||
},
|
||||
"results": [
|
||||
{
|
||||
"upload": 0,
|
||||
"seconds": 2.591,
|
||||
"instance": "a8ee56f6ec22"
|
||||
},
|
||||
{
|
||||
"upload": 1,
|
||||
"seconds": 2.834,
|
||||
"instance": "335579ab19d6"
|
||||
},
|
||||
{
|
||||
"upload": 2,
|
||||
"seconds": 2.52,
|
||||
"instance": "335579ab19d6"
|
||||
},
|
||||
{
|
||||
"upload": 3,
|
||||
"seconds": 1.634,
|
||||
"instance": "a8ee56f6ec22"
|
||||
},
|
||||
{
|
||||
"upload": 4,
|
||||
"seconds": 1.03,
|
||||
"instance": "335579ab19d6"
|
||||
},
|
||||
{
|
||||
"upload": 5,
|
||||
"seconds": 2.973,
|
||||
"instance": "a8ee56f6ec22"
|
||||
},
|
||||
{
|
||||
"upload": 6,
|
||||
"seconds": 2.087,
|
||||
"instance": "335579ab19d6"
|
||||
},
|
||||
{
|
||||
"upload": 7,
|
||||
"seconds": 1.056,
|
||||
"instance": "a8ee56f6ec22"
|
||||
},
|
||||
{
|
||||
"upload": 8,
|
||||
"seconds": 1.593,
|
||||
"instance": "335579ab19d6"
|
||||
},
|
||||
{
|
||||
"upload": 9,
|
||||
"seconds": 2.096,
|
||||
"instance": "a8ee56f6ec22"
|
||||
}
|
||||
],
|
||||
"samples": [
|
||||
{
|
||||
"seconds": 0.0,
|
||||
"bytes": {
|
||||
"335579ab19d6": 196050944,
|
||||
"a8ee56f6ec22": 210128896
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 0.404,
|
||||
"bytes": {
|
||||
"335579ab19d6": 212848640,
|
||||
"a8ee56f6ec22": 223256576
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 0.749,
|
||||
"bytes": {
|
||||
"335579ab19d6": 241385472,
|
||||
"a8ee56f6ec22": 242810880
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 1.075,
|
||||
"bytes": {
|
||||
"335579ab19d6": 248864768,
|
||||
"a8ee56f6ec22": 259260416
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 1.489,
|
||||
"bytes": {
|
||||
"335579ab19d6": 266833920,
|
||||
"a8ee56f6ec22": 249815040
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 1.838,
|
||||
"bytes": {
|
||||
"335579ab19d6": 290893824,
|
||||
"a8ee56f6ec22": 257802240
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 2.244,
|
||||
"bytes": {
|
||||
"335579ab19d6": 293588992,
|
||||
"a8ee56f6ec22": 271036416
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 2.607,
|
||||
"bytes": {
|
||||
"335579ab19d6": 296071168,
|
||||
"a8ee56f6ec22": 271552512
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 3.007,
|
||||
"bytes": {
|
||||
"335579ab19d6": 284782592,
|
||||
"a8ee56f6ec22": 263704576
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,10 @@
|
||||
Command: ./gradlew test --rerun-tasks
|
||||
AWS SDK for Kotlin 1.6.41; BUILD SUCCESSFUL
|
||||
Tests: 75; failures: 0; errors: 0; skipped: 0
|
||||
Command: ./gradlew test
|
||||
BUILD SUCCESSFUL
|
||||
Tests: 76; failures: 0; errors: 0; skipped: 0
|
||||
com.mtusi.messenger.main.infrastructure.controllers.attachment.AttachmentControllerTest: tests=3 failures=0
|
||||
upload originals ACL message links and idempotency()
|
||||
invalid images filenames and byte limit return client errors()
|
||||
S3 outage fails upload download and readiness without losing the original()
|
||||
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
|
||||
@@ -11,7 +14,11 @@ com.mtusi.messenger.main.infrastructure.controllers.message.MessageIdempotencyTe
|
||||
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.AttachmentCleanupTest: tests=1 failures=0
|
||||
orphan cleanup respects grace and fences late publishers()
|
||||
com.mtusi.messenger.main.infrastructure.services.attachment.ImageValidatorTest: tests=2 failures=0
|
||||
corrupted CRC and missing end chunk are rejected()
|
||||
pixel limit is enforced on header before decoding()
|
||||
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
|
||||
|
||||
+12
-12
@@ -1,17 +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
|
||||
/mtusi-messenger-lab4-api-1 started=2026-11-05T11:21:33.808216129Z
|
||||
/mtusi-messenger-lab4-api-2 started=2026-11-05T11:19:40.744427424Z
|
||||
/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-05T11:16:50.746732095Z
|
||||
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
|
||||
/mtusi-messenger-lab4-api-1 started=2026-11-05T11:22:10.858998716Z
|
||||
/mtusi-messenger-lab4-api-2 started=2026-11-05T11:22:10.784659257Z
|
||||
/mtusi-messenger-lab4-lb-1 started=2026-11-05T11:22:13.944573717Z
|
||||
/mtusi-messenger-lab4-postgres-1 started=2026-11-05T11:22:01.053742252Z
|
||||
/mtusi-messenger-lab4-redis-1 started=2026-11-05T11:22:01.049022586Z
|
||||
/mtusi-messenger-lab4-s3-1 started=2026-11-05T11:22:01.056079919Z
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
Container mtusi-messenger-lab4-s3-1 Running
|
||||
Bucket created successfully `local/messenger-attachments`.
|
||||
Access permission for `local/messenger-attachments` is set to `private`
|
||||
Container mtusi-messenger-lab4-s3-1 Running
|
||||
Bucket created successfully `local/messenger-attachments`.
|
||||
Access permission for `local/messenger-attachments` is set to `private`
|
||||
Container mtusi-messenger-lab4-s3-1 Running
|
||||
PASS: app cannot administer MinIO, create buckets, change policy or write outside originals/
|
||||
wget: can't connect to remote host (172.25.0.2): Connection refused
|
||||
PASS: console unavailable from shared network
|
||||
Reference in New Issue
Block a user