Implement lab4 grade 3: private S3 attachments and persistence checks
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
$ python student-tests/grade3.py
|
||||
Container mtusi-lab4-osokin-api-1 Running
|
||||
Container mtusi-lab4-osokin-api-2 Starting
|
||||
Container mtusi-lab4-osokin-api-2 Started
|
||||
PASS: uploading API stopped; another API returned identical original and attached message.
|
||||
PASS: real PNG/JPEG originals and anonymous S3 403.
|
||||
PASS: unavailable S3 yields 503; restart restores the same original and existing session.
|
||||
@@ -0,0 +1,2 @@
|
||||
$ python scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
@@ -0,0 +1 @@
|
||||
$ docker compose --env-file .env config --quiet
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"verified_at_utc": "2026-11-16T12:17:45.593148+00:00",
|
||||
"host_os": "Windows-10-10.0.19045-SP0",
|
||||
"client_python": "3.14.3",
|
||||
"docker": {
|
||||
"ServerVersion": "29.8.2",
|
||||
"OperatingSystem": "Docker Desktop",
|
||||
"KernelVersion": "6.18.54.1-microsoft-standard-WSL2",
|
||||
"NCPU": 8,
|
||||
"MemTotal": 8275030016,
|
||||
"Architecture": "x86_64"
|
||||
},
|
||||
"images": {
|
||||
"postgres:17.6-bookworm": [
|
||||
"postgres@sha256:f3bd19c606e442c3d7bdfa8002e03fe260a1023351e0ea4598032022b68dd6e3"
|
||||
],
|
||||
"redis:7.4.5-bookworm": [
|
||||
"redis@sha256:90e7a336d044f1abc9e9dbc05d65566850896d11453bbd1dd0fb7e5059f0e8fb"
|
||||
],
|
||||
"haproxy:3.0.16-alpine": [
|
||||
"haproxy@sha256:0e310ea3294f7854692c37898920fd2c04ea6abdb89724092e93280a2b85b4cf"
|
||||
],
|
||||
"minio/minio:RELEASE.2025-04-22T22-12-26Z": [
|
||||
"minio/minio@sha256:a1ea29fa28355559ef137d71fc570e508a214ec84ff8083e39bc5428980b015e"
|
||||
]
|
||||
},
|
||||
"app_python": "Python 3.13.7"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
$ python tests/resilience.py --mode failover --base-url http://127.0.0.1:8084 --action-script scripts/stop-one.cmd
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 99, "failed_attempts": 4, "first_recovery_seconds": 5.198}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,2 @@
|
||||
$ docker compose exec -T api python student-tests/test_idempotency.py
|
||||
{"result": "PASS", "parallel_requests": 16, "api_instances": ["2026dc4e851d-ef8f1bfddac8", "63b31780a94f-17a31e0697e3"], "unique_messages": 1, "scope_conflict_logout": "PASS"}
|
||||
@@ -0,0 +1,3 @@
|
||||
$ docker compose exec -T api python student-tests/test_limits.py
|
||||
PASS: 10 MiB and 40,000,000 pixels accepted; excess bytes rejected before read;
|
||||
excess dimensions rejected before decode; unsafe filenames rejected; Unicode filename accepted.
|
||||
@@ -0,0 +1,3 @@
|
||||
$ python tests/resilience.py --mode persistence --base-url http://127.0.0.1:8084 --action-script scripts/restart.cmd
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"anonymous_get": 403,
|
||||
"real_images": [
|
||||
{
|
||||
"format": "PNG",
|
||||
"bytes": 95,
|
||||
"sha256": "506fcf4116edf75bba71fe37e2317dbe2c2fed5c3ed12505f37b3d088d5572c5"
|
||||
},
|
||||
{
|
||||
"format": "JPEG",
|
||||
"bytes": 645,
|
||||
"sha256": "7cf106893f3c292cd0c385ed007e48e74919288e09e4674ab3c6efb1ff800ef7"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,155 @@
|
||||
$ python scripts/labctl.py state
|
||||
[
|
||||
{
|
||||
"id": "2026dc4e851d17a53ca8abc9da19edbf1a896265ab9fbb29d30e307cc3b672c4",
|
||||
"name": "mtusi-lab4-osokin-api-1",
|
||||
"service": "api",
|
||||
"hostname": "2026dc4e851d",
|
||||
"pid": 12852,
|
||||
"started_at": "2026-11-16T12:17:20.776941959Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:6166d1ba0c0b46f550fcdd39b773b6fe889f7ddbefa263188f5d734cb47af92d",
|
||||
"memory_limit": 805306368,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "63b31780a94fc04de9631600e577c8a578fb715b26c6d672a25529f1dfcf8c8b",
|
||||
"name": "mtusi-lab4-osokin-api-2",
|
||||
"service": "api",
|
||||
"hostname": "63b31780a94f",
|
||||
"pid": 11211,
|
||||
"started_at": "2026-11-16T12:16:40.901560588Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:6166d1ba0c0b46f550fcdd39b773b6fe889f7ddbefa263188f5d734cb47af92d",
|
||||
"memory_limit": 805306368,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "6f7fa2489ec73b82edd15bd154a13fc5b6782a419b080588035554640799f0f5",
|
||||
"name": "mtusi-lab4-osokin-bucket-1",
|
||||
"service": "bucket",
|
||||
"hostname": "6f7fa2489ec7",
|
||||
"pid": 0,
|
||||
"started_at": "2026-11-16T12:13:32.160735673Z",
|
||||
"status": "exited",
|
||||
"health": null,
|
||||
"image": "sha256:6166d1ba0c0b46f550fcdd39b773b6fe889f7ddbefa263188f5d734cb47af92d",
|
||||
"memory_limit": 805306368,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "7a3000f4e2e3053f9be9a1e14172ad606d5cca86c2c1b6e2f6c10720c01444e1",
|
||||
"name": "mtusi-lab4-osokin-db-1",
|
||||
"service": "db",
|
||||
"hostname": "7a3000f4e2e3",
|
||||
"pid": 11171,
|
||||
"started_at": "2026-11-16T12:16:40.543566533Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:f3bd19c606e442c3d7bdfa8002e03fe260a1023351e0ea4598032022b68dd6e3",
|
||||
"memory_limit": 536870912,
|
||||
"cpu_limit": 2.0,
|
||||
"published_ports": {
|
||||
"5432/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab4-osokin_pgdata",
|
||||
"destination": "/var/lib/postgresql/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "f69eb31bce350053a70a069732156ba5fea9360300676dbe567c017d6c1c9688",
|
||||
"name": "mtusi-lab4-osokin-lb-1",
|
||||
"service": "lb",
|
||||
"hostname": "f69eb31bce35",
|
||||
"pid": 11295,
|
||||
"started_at": "2026-11-16T12:16:41.324174766Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e310ea3294f7854692c37898920fd2c04ea6abdb89724092e93280a2b85b4cf",
|
||||
"memory_limit": 134217728,
|
||||
"cpu_limit": 0.5,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8084"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "e1f68174df2ed177dc6a002b23228d3859bdcf83b0734d9e6f7bdc8fcce4c81e",
|
||||
"name": "mtusi-lab4-osokin-migrate-1",
|
||||
"service": "migrate",
|
||||
"hostname": "e1f68174df2e",
|
||||
"pid": 0,
|
||||
"started_at": "2026-11-16T12:13:31.670346003Z",
|
||||
"status": "exited",
|
||||
"health": null,
|
||||
"image": "sha256:6166d1ba0c0b46f550fcdd39b773b6fe889f7ddbefa263188f5d734cb47af92d",
|
||||
"memory_limit": 805306368,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "ae03f444cf66bca154f467aea2333362aeea77fed94f819369fb5176a00ae922",
|
||||
"name": "mtusi-lab4-osokin-redis-1",
|
||||
"service": "redis",
|
||||
"hostname": "ae03f444cf66",
|
||||
"pid": 11162,
|
||||
"started_at": "2026-11-16T12:16:40.390083828Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:90e7a336d044f1abc9e9dbc05d65566850896d11453bbd1dd0fb7e5059f0e8fb",
|
||||
"memory_limit": 134217728,
|
||||
"cpu_limit": 0.5,
|
||||
"published_ports": {
|
||||
"6379/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab4-osokin_redisdata",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "c49b92fdbaae49470b7f69e4f973c6822b587b4c62067ee2a70db7b4d084f900",
|
||||
"name": "mtusi-lab4-osokin-s3-1",
|
||||
"service": "s3",
|
||||
"hostname": "c49b92fdbaae",
|
||||
"pid": 11084,
|
||||
"started_at": "2026-11-16T12:16:40.108761513Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:a1ea29fa28355559ef137d71fc570e508a214ec84ff8083e39bc5428980b015e",
|
||||
"memory_limit": 536870912,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"9000/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab4-osokin_s3data",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,250 @@
|
||||
{
|
||||
"before": [
|
||||
{
|
||||
"id": "2026dc4e851d17a53ca8abc9da19edbf1a896265ab9fbb29d30e307cc3b672c4",
|
||||
"name": "mtusi-lab4-osokin-api-1",
|
||||
"service": "api",
|
||||
"hostname": "2026dc4e851d",
|
||||
"pid": 3801,
|
||||
"started_at": "2026-11-16T12:13:39.391673918Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:6166d1ba0c0b46f550fcdd39b773b6fe889f7ddbefa263188f5d734cb47af92d",
|
||||
"memory_limit": 805306368,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "63b31780a94fc04de9631600e577c8a578fb715b26c6d672a25529f1dfcf8c8b",
|
||||
"name": "mtusi-lab4-osokin-api-2",
|
||||
"service": "api",
|
||||
"hostname": "63b31780a94f",
|
||||
"pid": 8365,
|
||||
"started_at": "2026-11-16T12:15:31.242158531Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:6166d1ba0c0b46f550fcdd39b773b6fe889f7ddbefa263188f5d734cb47af92d",
|
||||
"memory_limit": 805306368,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "7a3000f4e2e3053f9be9a1e14172ad606d5cca86c2c1b6e2f6c10720c01444e1",
|
||||
"name": "mtusi-lab4-osokin-db-1",
|
||||
"service": "db",
|
||||
"hostname": "7a3000f4e2e3",
|
||||
"pid": 811,
|
||||
"started_at": "2026-11-16T12:12:04.793750358Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:f3bd19c606e442c3d7bdfa8002e03fe260a1023351e0ea4598032022b68dd6e3",
|
||||
"memory_limit": 536870912,
|
||||
"cpu_limit": 2.0,
|
||||
"published_ports": {
|
||||
"5432/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab4-osokin_pgdata",
|
||||
"destination": "/var/lib/postgresql/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "f69eb31bce350053a70a069732156ba5fea9360300676dbe567c017d6c1c9688",
|
||||
"name": "mtusi-lab4-osokin-lb-1",
|
||||
"service": "lb",
|
||||
"hostname": "f69eb31bce35",
|
||||
"pid": 4289,
|
||||
"started_at": "2026-11-16T12:13:52.556515025Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e310ea3294f7854692c37898920fd2c04ea6abdb89724092e93280a2b85b4cf",
|
||||
"memory_limit": 134217728,
|
||||
"cpu_limit": 0.5,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8084"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "ae03f444cf66bca154f467aea2333362aeea77fed94f819369fb5176a00ae922",
|
||||
"name": "mtusi-lab4-osokin-redis-1",
|
||||
"service": "redis",
|
||||
"hostname": "ae03f444cf66",
|
||||
"pid": 959,
|
||||
"started_at": "2026-11-16T12:12:07.441668202Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:90e7a336d044f1abc9e9dbc05d65566850896d11453bbd1dd0fb7e5059f0e8fb",
|
||||
"memory_limit": 134217728,
|
||||
"cpu_limit": 0.5,
|
||||
"published_ports": {
|
||||
"6379/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab4-osokin_redisdata",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "c49b92fdbaae49470b7f69e4f973c6822b587b4c62067ee2a70db7b4d084f900",
|
||||
"name": "mtusi-lab4-osokin-s3-1",
|
||||
"service": "s3",
|
||||
"hostname": "c49b92fdbaae",
|
||||
"pid": 10343,
|
||||
"started_at": "2026-11-16T12:16:24.37991011Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:a1ea29fa28355559ef137d71fc570e508a214ec84ff8083e39bc5428980b015e",
|
||||
"memory_limit": 536870912,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"9000/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab4-osokin_s3data",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "2026dc4e851d17a53ca8abc9da19edbf1a896265ab9fbb29d30e307cc3b672c4",
|
||||
"name": "mtusi-lab4-osokin-api-1",
|
||||
"service": "api",
|
||||
"hostname": "2026dc4e851d",
|
||||
"pid": 11286,
|
||||
"started_at": "2026-11-16T12:16:41.122280354Z",
|
||||
"status": "running",
|
||||
"health": "starting",
|
||||
"image": "sha256:6166d1ba0c0b46f550fcdd39b773b6fe889f7ddbefa263188f5d734cb47af92d",
|
||||
"memory_limit": 805306368,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "63b31780a94fc04de9631600e577c8a578fb715b26c6d672a25529f1dfcf8c8b",
|
||||
"name": "mtusi-lab4-osokin-api-2",
|
||||
"service": "api",
|
||||
"hostname": "63b31780a94f",
|
||||
"pid": 11211,
|
||||
"started_at": "2026-11-16T12:16:40.901560588Z",
|
||||
"status": "running",
|
||||
"health": "starting",
|
||||
"image": "sha256:6166d1ba0c0b46f550fcdd39b773b6fe889f7ddbefa263188f5d734cb47af92d",
|
||||
"memory_limit": 805306368,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "7a3000f4e2e3053f9be9a1e14172ad606d5cca86c2c1b6e2f6c10720c01444e1",
|
||||
"name": "mtusi-lab4-osokin-db-1",
|
||||
"service": "db",
|
||||
"hostname": "7a3000f4e2e3",
|
||||
"pid": 11171,
|
||||
"started_at": "2026-11-16T12:16:40.543566533Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:f3bd19c606e442c3d7bdfa8002e03fe260a1023351e0ea4598032022b68dd6e3",
|
||||
"memory_limit": 536870912,
|
||||
"cpu_limit": 2.0,
|
||||
"published_ports": {
|
||||
"5432/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab4-osokin_pgdata",
|
||||
"destination": "/var/lib/postgresql/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "f69eb31bce350053a70a069732156ba5fea9360300676dbe567c017d6c1c9688",
|
||||
"name": "mtusi-lab4-osokin-lb-1",
|
||||
"service": "lb",
|
||||
"hostname": "f69eb31bce35",
|
||||
"pid": 11295,
|
||||
"started_at": "2026-11-16T12:16:41.324174766Z",
|
||||
"status": "running",
|
||||
"health": "starting",
|
||||
"image": "sha256:0e310ea3294f7854692c37898920fd2c04ea6abdb89724092e93280a2b85b4cf",
|
||||
"memory_limit": 134217728,
|
||||
"cpu_limit": 0.5,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8084"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "ae03f444cf66bca154f467aea2333362aeea77fed94f819369fb5176a00ae922",
|
||||
"name": "mtusi-lab4-osokin-redis-1",
|
||||
"service": "redis",
|
||||
"hostname": "ae03f444cf66",
|
||||
"pid": 11162,
|
||||
"started_at": "2026-11-16T12:16:40.390083828Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:90e7a336d044f1abc9e9dbc05d65566850896d11453bbd1dd0fb7e5059f0e8fb",
|
||||
"memory_limit": 134217728,
|
||||
"cpu_limit": 0.5,
|
||||
"published_ports": {
|
||||
"6379/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab4-osokin_redisdata",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "c49b92fdbaae49470b7f69e4f973c6822b587b4c62067ee2a70db7b4d084f900",
|
||||
"name": "mtusi-lab4-osokin-s3-1",
|
||||
"service": "s3",
|
||||
"hostname": "c49b92fdbaae",
|
||||
"pid": 11084,
|
||||
"started_at": "2026-11-16T12:16:40.108761513Z",
|
||||
"status": "running",
|
||||
"health": "starting",
|
||||
"image": "sha256:a1ea29fa28355559ef137d71fc570e508a214ec84ff8083e39bc5428980b015e",
|
||||
"memory_limit": 536870912,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"9000/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab4-osokin_s3data",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
$ python scripts/labctl.py restore
|
||||
Container mtusi-lab4-osokin-api-2 Running
|
||||
Container mtusi-lab4-osokin-api-1 Starting
|
||||
Container mtusi-lab4-osokin-api-1 Started
|
||||
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"before": [
|
||||
{
|
||||
"id": "c49b92fdbaae49470b7f69e4f973c6822b587b4c62067ee2a70db7b4d084f900",
|
||||
"name": "mtusi-lab4-osokin-s3-1",
|
||||
"service": "s3",
|
||||
"hostname": "c49b92fdbaae",
|
||||
"pid": 891,
|
||||
"started_at": "2026-11-16T12:12:06.319676602Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:a1ea29fa28355559ef137d71fc570e508a214ec84ff8083e39bc5428980b015e",
|
||||
"memory_limit": 536870912,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"9000/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab4-osokin_s3data",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "c49b92fdbaae49470b7f69e4f973c6822b587b4c62067ee2a70db7b4d084f900",
|
||||
"name": "mtusi-lab4-osokin-s3-1",
|
||||
"service": "s3",
|
||||
"hostname": "c49b92fdbaae",
|
||||
"pid": 10343,
|
||||
"started_at": "2026-11-16T12:16:24.37991011Z",
|
||||
"status": "running",
|
||||
"health": "starting",
|
||||
"image": "sha256:a1ea29fa28355559ef137d71fc570e508a214ec84ff8083e39bc5428980b015e",
|
||||
"memory_limit": 536870912,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"9000/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab4-osokin_s3data",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"observation": {
|
||||
"live": 200,
|
||||
"ready": 503,
|
||||
"upload": 503,
|
||||
"content": 503,
|
||||
"metadata": 200
|
||||
},
|
||||
"recovered_within_seconds": 20.312,
|
||||
"original_preserved": true
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
$ python tests/smoke.py --base-url http://127.0.0.1:8084
|
||||
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,2 @@
|
||||
$ python tests/smoke.py --base-url http://127.0.0.1:8084
|
||||
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"target_instance": "2026dc4e851d-9723d8bbbf19",
|
||||
"before": [
|
||||
{
|
||||
"id": "2026dc4e851d17a53ca8abc9da19edbf1a896265ab9fbb29d30e307cc3b672c4",
|
||||
"name": "mtusi-lab4-osokin-api-1",
|
||||
"service": "api",
|
||||
"hostname": "2026dc4e851d",
|
||||
"pid": 11286,
|
||||
"started_at": "2026-11-16T12:16:41.122280354Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:6166d1ba0c0b46f550fcdd39b773b6fe889f7ddbefa263188f5d734cb47af92d",
|
||||
"memory_limit": 805306368,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "63b31780a94fc04de9631600e577c8a578fb715b26c6d672a25529f1dfcf8c8b",
|
||||
"name": "mtusi-lab4-osokin-api-2",
|
||||
"service": "api",
|
||||
"hostname": "63b31780a94f",
|
||||
"pid": 11211,
|
||||
"started_at": "2026-11-16T12:16:40.901560588Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:6166d1ba0c0b46f550fcdd39b773b6fe889f7ddbefa263188f5d734cb47af92d",
|
||||
"memory_limit": 805306368,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "2026dc4e851d17a53ca8abc9da19edbf1a896265ab9fbb29d30e307cc3b672c4",
|
||||
"name": "mtusi-lab4-osokin-api-1",
|
||||
"service": "api",
|
||||
"hostname": "2026dc4e851d",
|
||||
"pid": 0,
|
||||
"started_at": "2026-11-16T12:16:41.122280354Z",
|
||||
"status": "exited",
|
||||
"health": "unhealthy",
|
||||
"image": "sha256:6166d1ba0c0b46f550fcdd39b773b6fe889f7ddbefa263188f5d734cb47af92d",
|
||||
"memory_limit": 805306368,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "63b31780a94fc04de9631600e577c8a578fb715b26c6d672a25529f1dfcf8c8b",
|
||||
"name": "mtusi-lab4-osokin-api-2",
|
||||
"service": "api",
|
||||
"hostname": "63b31780a94f",
|
||||
"pid": 11211,
|
||||
"started_at": "2026-11-16T12:16:40.901560588Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:6166d1ba0c0b46f550fcdd39b773b6fe889f7ddbefa263188f5d734cb47af92d",
|
||||
"memory_limit": 805306368,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
}
|
||||
],
|
||||
"hook_seconds": 2.982078799999954
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"uploader": "63b31780a94f-17a31e0697e3",
|
||||
"downloader": "2026dc4e851d-ef8f1bfddac8",
|
||||
"before": [
|
||||
{
|
||||
"id": "2026dc4e851d17a53ca8abc9da19edbf1a896265ab9fbb29d30e307cc3b672c4",
|
||||
"name": "mtusi-lab4-osokin-api-1",
|
||||
"service": "api",
|
||||
"hostname": "2026dc4e851d",
|
||||
"pid": 3801,
|
||||
"started_at": "2026-11-16T12:13:39.391673918Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:6166d1ba0c0b46f550fcdd39b773b6fe889f7ddbefa263188f5d734cb47af92d",
|
||||
"memory_limit": 805306368,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "63b31780a94fc04de9631600e577c8a578fb715b26c6d672a25529f1dfcf8c8b",
|
||||
"name": "mtusi-lab4-osokin-api-2",
|
||||
"service": "api",
|
||||
"hostname": "63b31780a94f",
|
||||
"pid": 3747,
|
||||
"started_at": "2026-11-16T12:13:38.666975081Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:6166d1ba0c0b46f550fcdd39b773b6fe889f7ddbefa263188f5d734cb47af92d",
|
||||
"memory_limit": 805306368,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "2026dc4e851d17a53ca8abc9da19edbf1a896265ab9fbb29d30e307cc3b672c4",
|
||||
"name": "mtusi-lab4-osokin-api-1",
|
||||
"service": "api",
|
||||
"hostname": "2026dc4e851d",
|
||||
"pid": 3801,
|
||||
"started_at": "2026-11-16T12:13:39.391673918Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:6166d1ba0c0b46f550fcdd39b773b6fe889f7ddbefa263188f5d734cb47af92d",
|
||||
"memory_limit": 805306368,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "63b31780a94fc04de9631600e577c8a578fb715b26c6d672a25529f1dfcf8c8b",
|
||||
"name": "mtusi-lab4-osokin-api-2",
|
||||
"service": "api",
|
||||
"hostname": "63b31780a94f",
|
||||
"pid": 0,
|
||||
"started_at": "2026-11-16T12:13:38.666975081Z",
|
||||
"status": "exited",
|
||||
"health": "unhealthy",
|
||||
"image": "sha256:6166d1ba0c0b46f550fcdd39b773b6fe889f7ddbefa263188f5d734cb47af92d",
|
||||
"memory_limit": 805306368,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {},
|
||||
"mounts": []
|
||||
}
|
||||
],
|
||||
"bytes": 111817,
|
||||
"sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
|
||||
"same_original": true,
|
||||
"attached_message_read": true,
|
||||
"stranger_metadata": 404,
|
||||
"stranger_content": 404
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
Reference in New Issue
Block a user