forked from mtusi2026/mtusi2026lab6
110 lines
11 KiB
Plaintext
110 lines
11 KiB
Plaintext
./scripts/test-storage.sh
|
|
=== RUN TestIdempotencyTransactionAndExpiry
|
|
2026/11/16 07:14:23 INFO connected to database db=lab5_atomic_1794813262_55454
|
|
2026/11/16 07:14:23 INFO successfully initialized migrator
|
|
2026/11/16 07:14:23 INFO successfully loaded migrations error=<nil>
|
|
2026/11/16 07:14:23 INFO postgres_pool_config max_conns=8 connect_timeout=500ms statement_timeout_ms=2000
|
|
2026/11/16 07:14:23 INFO successfully connected to postgres pool
|
|
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules
|
|
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/empty
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/whitespace
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/invalid_UTF8
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/nul
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/too_long
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/duplicate
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/too_many
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/nil_id
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/unknown
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/foreign_chat
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/missing_object
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
|
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
|
=== RUN TestIdempotencyTransactionAndExpiry/object_lock_cancellation_does_not_leak_a_pooled_lock
|
|
=== NAME TestIdempotencyTransactionAndExpiry
|
|
idempotency_test.go:295: rollback removed both side effect and key; expired key created one new message
|
|
--- PASS: TestIdempotencyTransactionAndExpiry (0.11s)
|
|
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules (0.01s)
|
|
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/empty (0.00s)
|
|
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/whitespace (0.00s)
|
|
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/invalid_UTF8 (0.00s)
|
|
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/nul (0.00s)
|
|
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/too_long (0.00s)
|
|
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/duplicate (0.00s)
|
|
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/too_many (0.00s)
|
|
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/nil_id (0.00s)
|
|
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/unknown (0.00s)
|
|
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/foreign_chat (0.00s)
|
|
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/missing_object (0.00s)
|
|
--- PASS: TestIdempotencyTransactionAndExpiry/object_lock_cancellation_does_not_leak_a_pooled_lock (0.05s)
|
|
PASS
|