117 lines
5.2 KiB
Plaintext
117 lines
5.2 KiB
Plaintext
Local configuration ready; secrets were not printed.
|
|
Image mtusi-lab2-review-50a92603-api Building
|
|
#1 [internal] load local bake definitions
|
|
#1 reading from stdin 704B done
|
|
#1 DONE 0.0s
|
|
|
|
#2 resolving provenance for metadata file
|
|
#2 DONE 0.0s
|
|
|
|
#3 [internal] load build definition from Dockerfile
|
|
#3 transferring dockerfile: 739B done
|
|
#3 DONE 0.0s
|
|
|
|
#4 [internal] load metadata for docker.io/library/python:3.12.8-slim-bookworm@sha256:2199a62885a12290dc9c5be3ca0681d367576ab7bf037da120e564723292a2f0
|
|
#4 DONE 0.0s
|
|
|
|
#5 [internal] load .dockerignore
|
|
#5 transferring context: 132B done
|
|
#5 DONE 0.0s
|
|
|
|
#6 [internal] load build context
|
|
#6 transferring context: 25.73kB done
|
|
#6 DONE 0.0s
|
|
|
|
#7 [1/7] FROM docker.io/library/python:3.12.8-slim-bookworm@sha256:2199a62885a12290dc9c5be3ca0681d367576ab7bf037da120e564723292a2f0
|
|
#7 resolve docker.io/library/python:3.12.8-slim-bookworm@sha256:2199a62885a12290dc9c5be3ca0681d367576ab7bf037da120e564723292a2f0 done
|
|
#7 DONE 0.0s
|
|
|
|
#8 [2/7] WORKDIR /app
|
|
#8 CACHED
|
|
|
|
#9 [4/7] COPY requirements.txt ./
|
|
#9 CACHED
|
|
|
|
#10 [5/7] RUN pip install --no-cache-dir -r requirements.txt
|
|
#10 CACHED
|
|
|
|
#11 [6/7] COPY src/ ./src/
|
|
#11 CACHED
|
|
|
|
#12 [3/7] RUN groupadd --gid 10001 app && useradd --uid 10001 --gid app --no-create-home app
|
|
#12 CACHED
|
|
|
|
#13 [7/7] COPY migrations/ ./migrations/
|
|
#13 CACHED
|
|
|
|
#14 exporting to image
|
|
#14 exporting layers done
|
|
#14 exporting manifest sha256:9de8694da45da73001c72c27f49f41b2b32dda6f170fb0ce738ced563c2c9471 done
|
|
#14 exporting config sha256:21388fc537a563dea4b9d14946bc95036d2ca3727ebed78cdeb410843e7f3700 done
|
|
#14 exporting attestation manifest sha256:ced1e33e702d25de0036f12d77f8ba1e49335255d54c60a9de74a012000fc609 done
|
|
#14 exporting manifest list sha256:6e728a75c92839d45b87038fbbe85f2db96e887e3614496fcc34a4ede2824c42 done
|
|
#14 naming to docker.io/library/mtusi-lab2-review-50a92603-api:latest done
|
|
#14 unpacking to docker.io/library/mtusi-lab2-review-50a92603-api:latest done
|
|
#14 DONE 0.0s
|
|
Image mtusi-lab2-review-50a92603-api Built
|
|
Network mtusi-lab2-review-50a92603_default Creating
|
|
Network mtusi-lab2-review-50a92603_default Created
|
|
Volume mtusi-lab2-review-50a92603_postgres_data Creating
|
|
Volume mtusi-lab2-review-50a92603_postgres_data Created
|
|
Container mtusi-lab2-review-50a92603-redis-1 Creating
|
|
Container mtusi-lab2-review-50a92603-postgres-1 Creating
|
|
Container mtusi-lab2-review-50a92603-postgres-1 Created
|
|
Container mtusi-lab2-review-50a92603-redis-1 Created
|
|
Container mtusi-lab2-review-50a92603-api-1 Creating
|
|
Container mtusi-lab2-review-50a92603-api-1 Created
|
|
Container mtusi-lab2-review-50a92603-postgres-1 Starting
|
|
Container mtusi-lab2-review-50a92603-redis-1 Starting
|
|
Container mtusi-lab2-review-50a92603-postgres-1 Started
|
|
Container mtusi-lab2-review-50a92603-redis-1 Started
|
|
Container mtusi-lab2-review-50a92603-postgres-1 Waiting
|
|
Container mtusi-lab2-review-50a92603-redis-1 Waiting
|
|
Container mtusi-lab2-review-50a92603-postgres-1 Healthy
|
|
Container mtusi-lab2-review-50a92603-redis-1 Healthy
|
|
Container mtusi-lab2-review-50a92603-api-1 Starting
|
|
Container mtusi-lab2-review-50a92603-api-1 Started
|
|
Container mtusi-lab2-review-50a92603-api-1 Waiting
|
|
Container mtusi-lab2-review-50a92603-postgres-1 Waiting
|
|
Container mtusi-lab2-review-50a92603-redis-1 Waiting
|
|
Container mtusi-lab2-review-50a92603-redis-1 Healthy
|
|
Container mtusi-lab2-review-50a92603-postgres-1 Healthy
|
|
Container mtusi-lab2-review-50a92603-api-1 Healthy
|
|
python3 scripts/check_contract.py
|
|
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
|
python3 tests/smoke.py --base-url "http://127.0.0.1:18086"
|
|
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
|
|
BASE_URL="http://127.0.0.1:18086" python3 -m unittest discover -s student-tests -p test_api.py -v
|
|
test_concurrent_messages_and_pagination (test_api.APIContract) ... ok
|
|
test_cursor_scope_and_validation (test_api.APIContract) ... ok
|
|
test_foreign_chat (test_api.APIContract) ... ok
|
|
test_invalid_chat_creation (test_api.APIContract) ... ok
|
|
test_malformed_json_and_extra_fields (test_api.APIContract) ... ok
|
|
test_registration_race (test_api.APIContract) ... ok
|
|
test_unicode_limits (test_api.APIContract) ... ok
|
|
test_unicode_nul_round_trip (test_api.APIContract) ... ok
|
|
test_unicode_password_basic_and_logout (test_api.APIContract) ... ok
|
|
|
|
----------------------------------------------------------------------
|
|
Ran 9 tests in 3.405s
|
|
|
|
OK
|
|
PASS: clean local clone, fresh Compose project/volume, migrations 001+002, public smoke and all nine student tests.
|
|
Container mtusi-lab2-review-50a92603-api-1 Stopping
|
|
Container mtusi-lab2-review-50a92603-api-1 Stopped
|
|
Container mtusi-lab2-review-50a92603-api-1 Removing
|
|
Container mtusi-lab2-review-50a92603-api-1 Removed
|
|
Container mtusi-lab2-review-50a92603-postgres-1 Stopping
|
|
Container mtusi-lab2-review-50a92603-redis-1 Stopping
|
|
Container mtusi-lab2-review-50a92603-redis-1 Stopped
|
|
Container mtusi-lab2-review-50a92603-redis-1 Removing
|
|
Container mtusi-lab2-review-50a92603-redis-1 Removed
|
|
Container mtusi-lab2-review-50a92603-postgres-1 Stopped
|
|
Container mtusi-lab2-review-50a92603-postgres-1 Removing
|
|
Container mtusi-lab2-review-50a92603-postgres-1 Removed
|
|
Network mtusi-lab2-review-50a92603_default Removing
|
|
Network mtusi-lab2-review-50a92603_default Removed
|