Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(ydbcp): add docker-compose for ydbcp #46

Merged
merged 2 commits into from
Aug 28, 2024
Merged

Conversation

ulya-sidorina
Copy link
Collaborator

No description provided.

@ulya-sidorina ulya-sidorina force-pushed the feature/NBYDB-173 branch 5 times, most recently from 5b157f8 to c0df42c Compare August 22, 2024 14:28
Copy link

📝 Test results

ydbcp

28 tests (28 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 28

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4001016.9999999999999ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-22T14:29:37.078Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-22T14:29:37.078Z	DEBUG	queries/write.go:270	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-22T14:29:37.079Z	DEBUG	queries/write.go:270	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-22T14:29:37.080Z	DEBUG	queries/write.go:270	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers20001031ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-22T14:29:37.790Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "8a337041-4496-4461-8663-982d8c5726bf", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.790Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8a337041-4496-4461-8663-982d8c5726bf", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-22T14:29:37.791Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.791Z	INFO	handlers/utils.go:48	getting operation status	{"id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.791Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-22T14:29:37.791Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "fa480c43-7ec9-40c3-9a99-f3324a277b74", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "fa480c43-7ec9-40c3-9a99-f3324a277b74", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7713fd84-cd47-40d4-9c51-f18f32128ffc", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7713fd84-cd47-40d4-9c51-f18f32128ffc", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "01c2ecee-4ccc-413e-83cb-6cee0cbe4459", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "01c2ecee-4ccc-413e-83cb-6cee0cbe4459", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:48	getting operation status	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:71	received retriable error	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "399a8ca0-71a5-459d-98f8-665bef62a26e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "814e99f7-756b-457b-b66a-68bd09e992db", "type": "TB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "814e99f7-756b-457b-b66a-68bd09e992db", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7ebf9c61-f8a1-42e2-b47b-c2f6d934e4bc", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2a2c62c2-527c-4101-9c27-0c2a863a5b33", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9a52313b-5907-4843-b075-8104b2901319", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "923749a7-3050-4f1e-8191-dde06a97ebf0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3f338042-d2d2-4377-bf45-936cf714f212", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0fa99da9-723f-40c9-a86e-8d74f9ecb6bb", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4fa80fd1-233c-491a-9260-1bea1bf3b90c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:48	getting operation status	{"id": "98827c76-94d3-4293-85bd-1981f4032490", "type": "TB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:71	received retriable error	{"id": "98827c76-94d3-4293-85bd-1981f4032490", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2001018.9999999999999ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "d5d6339b-e700-40d0-a540-bb5883ed4b67"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001031ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

Copy link

📝 Test results

ydbcp

28 tests (28 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 28

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4000ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-22T14:29:37.078Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-22T14:29:37.078Z	DEBUG	queries/write.go:270	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-22T14:29:37.079Z	DEBUG	queries/write.go:270	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-22T14:29:37.080Z	DEBUG	queries/write.go:270	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers20001ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-22T14:29:37.790Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "8a337041-4496-4461-8663-982d8c5726bf", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.790Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8a337041-4496-4461-8663-982d8c5726bf", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-22T14:29:37.791Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.791Z	INFO	handlers/utils.go:48	getting operation status	{"id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.791Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-22T14:29:37.791Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "fa480c43-7ec9-40c3-9a99-f3324a277b74", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "fa480c43-7ec9-40c3-9a99-f3324a277b74", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7713fd84-cd47-40d4-9c51-f18f32128ffc", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7713fd84-cd47-40d4-9c51-f18f32128ffc", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "01c2ecee-4ccc-413e-83cb-6cee0cbe4459", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "01c2ecee-4ccc-413e-83cb-6cee0cbe4459", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:48	getting operation status	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:71	received retriable error	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "399a8ca0-71a5-459d-98f8-665bef62a26e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "814e99f7-756b-457b-b66a-68bd09e992db", "type": "TB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "814e99f7-756b-457b-b66a-68bd09e992db", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7ebf9c61-f8a1-42e2-b47b-c2f6d934e4bc", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2a2c62c2-527c-4101-9c27-0c2a863a5b33", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9a52313b-5907-4843-b075-8104b2901319", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "923749a7-3050-4f1e-8191-dde06a97ebf0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3f338042-d2d2-4377-bf45-936cf714f212", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0fa99da9-723f-40c9-a86e-8d74f9ecb6bb", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4fa80fd1-233c-491a-9260-1bea1bf3b90c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:48	getting operation status	{"id": "98827c76-94d3-4293-85bd-1981f4032490", "type": "TB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:71	received retriable error	{"id": "98827c76-94d3-4293-85bd-1981f4032490", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2000ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "d5d6339b-e700-40d0-a540-bb5883ed4b67"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001035ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

Copy link

📝 Test results

ydbcp

28 tests (28 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 28

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4000ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-22T14:29:37.078Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-22T14:29:37.078Z	DEBUG	queries/write.go:270	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-22T14:29:37.079Z	DEBUG	queries/write.go:270	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-22T14:29:37.080Z	DEBUG	queries/write.go:270	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers20001ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-22T14:29:37.790Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "8a337041-4496-4461-8663-982d8c5726bf", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.790Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8a337041-4496-4461-8663-982d8c5726bf", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-22T14:29:37.791Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.791Z	INFO	handlers/utils.go:48	getting operation status	{"id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.791Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-22T14:29:37.791Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "fa480c43-7ec9-40c3-9a99-f3324a277b74", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "fa480c43-7ec9-40c3-9a99-f3324a277b74", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7713fd84-cd47-40d4-9c51-f18f32128ffc", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7713fd84-cd47-40d4-9c51-f18f32128ffc", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "01c2ecee-4ccc-413e-83cb-6cee0cbe4459", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "01c2ecee-4ccc-413e-83cb-6cee0cbe4459", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:48	getting operation status	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:71	received retriable error	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "399a8ca0-71a5-459d-98f8-665bef62a26e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "814e99f7-756b-457b-b66a-68bd09e992db", "type": "TB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "814e99f7-756b-457b-b66a-68bd09e992db", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7ebf9c61-f8a1-42e2-b47b-c2f6d934e4bc", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2a2c62c2-527c-4101-9c27-0c2a863a5b33", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9a52313b-5907-4843-b075-8104b2901319", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "923749a7-3050-4f1e-8191-dde06a97ebf0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3f338042-d2d2-4377-bf45-936cf714f212", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0fa99da9-723f-40c9-a86e-8d74f9ecb6bb", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4fa80fd1-233c-491a-9260-1bea1bf3b90c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:48	getting operation status	{"id": "98827c76-94d3-4293-85bd-1981f4032490", "type": "TB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:71	received retriable error	{"id": "98827c76-94d3-4293-85bd-1981f4032490", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2000ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "d5d6339b-e700-40d0-a540-bb5883ed4b67"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001031ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

Copy link

📝 Test results

ydbcp

28 tests (28 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 28

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4000ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-22T14:29:37.078Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-22T14:29:37.078Z	DEBUG	queries/write.go:270	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-22T14:29:37.079Z	DEBUG	queries/write.go:270	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-22T14:29:37.080Z	DEBUG	queries/write.go:270	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers20001ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-22T14:29:37.790Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "8a337041-4496-4461-8663-982d8c5726bf", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.790Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8a337041-4496-4461-8663-982d8c5726bf", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-22T14:29:37.791Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.791Z	INFO	handlers/utils.go:48	getting operation status	{"id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.791Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-22T14:29:37.791Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "fa480c43-7ec9-40c3-9a99-f3324a277b74", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "fa480c43-7ec9-40c3-9a99-f3324a277b74", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7713fd84-cd47-40d4-9c51-f18f32128ffc", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7713fd84-cd47-40d4-9c51-f18f32128ffc", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "01c2ecee-4ccc-413e-83cb-6cee0cbe4459", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "01c2ecee-4ccc-413e-83cb-6cee0cbe4459", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:48	getting operation status	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:71	received retriable error	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "399a8ca0-71a5-459d-98f8-665bef62a26e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "814e99f7-756b-457b-b66a-68bd09e992db", "type": "TB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "814e99f7-756b-457b-b66a-68bd09e992db", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7ebf9c61-f8a1-42e2-b47b-c2f6d934e4bc", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2a2c62c2-527c-4101-9c27-0c2a863a5b33", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9a52313b-5907-4843-b075-8104b2901319", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "923749a7-3050-4f1e-8191-dde06a97ebf0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3f338042-d2d2-4377-bf45-936cf714f212", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0fa99da9-723f-40c9-a86e-8d74f9ecb6bb", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4fa80fd1-233c-491a-9260-1bea1bf3b90c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:48	getting operation status	{"id": "98827c76-94d3-4293-85bd-1981f4032490", "type": "TB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:71	received retriable error	{"id": "98827c76-94d3-4293-85bd-1981f4032490", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2000ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "d5d6339b-e700-40d0-a540-bb5883ed4b67"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001032ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

Copy link

📝 Test results

ydbcp

28 tests (28 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 28

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4000ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-22T14:29:37.078Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-22T14:29:37.078Z	DEBUG	queries/write.go:270	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-22T14:29:37.079Z	DEBUG	queries/write.go:270	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-22T14:29:37.080Z	DEBUG	queries/write.go:270	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers20001ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-22T14:29:37.790Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "8a337041-4496-4461-8663-982d8c5726bf", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.790Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8a337041-4496-4461-8663-982d8c5726bf", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-22T14:29:37.791Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.791Z	INFO	handlers/utils.go:48	getting operation status	{"id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.791Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-22T14:29:37.791Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "fa480c43-7ec9-40c3-9a99-f3324a277b74", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "fa480c43-7ec9-40c3-9a99-f3324a277b74", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7713fd84-cd47-40d4-9c51-f18f32128ffc", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7713fd84-cd47-40d4-9c51-f18f32128ffc", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "01c2ecee-4ccc-413e-83cb-6cee0cbe4459", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "01c2ecee-4ccc-413e-83cb-6cee0cbe4459", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:48	getting operation status	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:71	received retriable error	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "399a8ca0-71a5-459d-98f8-665bef62a26e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "814e99f7-756b-457b-b66a-68bd09e992db", "type": "TB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "814e99f7-756b-457b-b66a-68bd09e992db", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7ebf9c61-f8a1-42e2-b47b-c2f6d934e4bc", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2a2c62c2-527c-4101-9c27-0c2a863a5b33", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9a52313b-5907-4843-b075-8104b2901319", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "923749a7-3050-4f1e-8191-dde06a97ebf0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3f338042-d2d2-4377-bf45-936cf714f212", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0fa99da9-723f-40c9-a86e-8d74f9ecb6bb", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4fa80fd1-233c-491a-9260-1bea1bf3b90c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:48	getting operation status	{"id": "98827c76-94d3-4293-85bd-1981f4032490", "type": "TB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:71	received retriable error	{"id": "98827c76-94d3-4293-85bd-1981f4032490", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2000ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "d5d6339b-e700-40d0-a540-bb5883ed4b67"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001035ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

Copy link

📝 Test results

ydbcp

28 tests (28 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 28

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4000ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-22T14:29:37.078Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-22T14:29:37.078Z	DEBUG	queries/write.go:270	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-22T14:29:37.079Z	DEBUG	queries/write.go:270	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-22T14:29:37.080Z	DEBUG	queries/write.go:270	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers20001ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-22T14:29:37.790Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "8a337041-4496-4461-8663-982d8c5726bf", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.790Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8a337041-4496-4461-8663-982d8c5726bf", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-22T14:29:37.791Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.791Z	INFO	handlers/utils.go:48	getting operation status	{"id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.791Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-22T14:29:37.791Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "fa480c43-7ec9-40c3-9a99-f3324a277b74", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "fa480c43-7ec9-40c3-9a99-f3324a277b74", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7713fd84-cd47-40d4-9c51-f18f32128ffc", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7713fd84-cd47-40d4-9c51-f18f32128ffc", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "01c2ecee-4ccc-413e-83cb-6cee0cbe4459", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "01c2ecee-4ccc-413e-83cb-6cee0cbe4459", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:48	getting operation status	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:71	received retriable error	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "399a8ca0-71a5-459d-98f8-665bef62a26e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "814e99f7-756b-457b-b66a-68bd09e992db", "type": "TB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "814e99f7-756b-457b-b66a-68bd09e992db", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7ebf9c61-f8a1-42e2-b47b-c2f6d934e4bc", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2a2c62c2-527c-4101-9c27-0c2a863a5b33", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9a52313b-5907-4843-b075-8104b2901319", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "923749a7-3050-4f1e-8191-dde06a97ebf0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3f338042-d2d2-4377-bf45-936cf714f212", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0fa99da9-723f-40c9-a86e-8d74f9ecb6bb", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4fa80fd1-233c-491a-9260-1bea1bf3b90c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:48	getting operation status	{"id": "98827c76-94d3-4293-85bd-1981f4032490", "type": "TB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:71	received retriable error	{"id": "98827c76-94d3-4293-85bd-1981f4032490", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2000ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "d5d6339b-e700-40d0-a540-bb5883ed4b67"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001044ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

Copy link

📝 Test results

ydbcp

28 tests (28 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 28

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4000ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-22T14:29:37.078Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-22T14:29:37.078Z	DEBUG	queries/write.go:270	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-22T14:29:37.079Z	DEBUG	queries/write.go:270	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-22T14:29:37.080Z	DEBUG	queries/write.go:270	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers20001ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-22T14:29:37.790Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "8a337041-4496-4461-8663-982d8c5726bf", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.790Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8a337041-4496-4461-8663-982d8c5726bf", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-22T14:29:37.791Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.791Z	INFO	handlers/utils.go:48	getting operation status	{"id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.791Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-22T14:29:37.791Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "fa480c43-7ec9-40c3-9a99-f3324a277b74", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "fa480c43-7ec9-40c3-9a99-f3324a277b74", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7713fd84-cd47-40d4-9c51-f18f32128ffc", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7713fd84-cd47-40d4-9c51-f18f32128ffc", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "01c2ecee-4ccc-413e-83cb-6cee0cbe4459", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "01c2ecee-4ccc-413e-83cb-6cee0cbe4459", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:48	getting operation status	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:71	received retriable error	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "399a8ca0-71a5-459d-98f8-665bef62a26e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "814e99f7-756b-457b-b66a-68bd09e992db", "type": "TB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "814e99f7-756b-457b-b66a-68bd09e992db", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7ebf9c61-f8a1-42e2-b47b-c2f6d934e4bc", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2a2c62c2-527c-4101-9c27-0c2a863a5b33", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9a52313b-5907-4843-b075-8104b2901319", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "923749a7-3050-4f1e-8191-dde06a97ebf0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3f338042-d2d2-4377-bf45-936cf714f212", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0fa99da9-723f-40c9-a86e-8d74f9ecb6bb", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4fa80fd1-233c-491a-9260-1bea1bf3b90c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:48	getting operation status	{"id": "98827c76-94d3-4293-85bd-1981f4032490", "type": "TB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:71	received retriable error	{"id": "98827c76-94d3-4293-85bd-1981f4032490", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2000ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "d5d6339b-e700-40d0-a540-bb5883ed4b67"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0001ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001035ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

Copy link

📝 Test results

ydbcp

28 tests (28 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 28

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4000ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-22T14:29:37.078Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-22T14:29:37.078Z	DEBUG	queries/write.go:270	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-22T14:29:37.079Z	DEBUG	queries/write.go:270	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-22T14:29:37.080Z	DEBUG	queries/write.go:270	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers20001ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-22T14:29:37.790Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "8a337041-4496-4461-8663-982d8c5726bf", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.790Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8a337041-4496-4461-8663-982d8c5726bf", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-22T14:29:37.791Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.791Z	INFO	handlers/utils.go:48	getting operation status	{"id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.791Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "cf2a359d-a64b-46a2-9cb6-6789ec7cea85", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-22T14:29:37.791Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "fa480c43-7ec9-40c3-9a99-f3324a277b74", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "fa480c43-7ec9-40c3-9a99-f3324a277b74", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "6f0e81dc-34b6-447c-a464-71cdd2145b7e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.792Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.792Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "4c539896-6909-43d1-be86-a39a92bafd75", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7713fd84-cd47-40d4-9c51-f18f32128ffc", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7713fd84-cd47-40d4-9c51-f18f32128ffc", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "01c2ecee-4ccc-413e-83cb-6cee0cbe4459", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "01c2ecee-4ccc-413e-83cb-6cee0cbe4459", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-22T14:29:37.793Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.793Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "5d1d2940-3900-461b-9b62-e29f98dfbfc9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:48	getting operation status	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "19c5d720-228a-4cb1-ac77-237fb1377855", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-22T14:29:37.794Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "state": "PENDING", "message": ""}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.794Z	INFO	handlers/utils.go:71	received retriable error	{"id": "7fb83e64-10bf-4c52-a6c4-33fd1d4780da", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "399a8ca0-71a5-459d-98f8-665bef62a26e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "814e99f7-756b-457b-b66a-68bd09e992db", "type": "TB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "814e99f7-756b-457b-b66a-68bd09e992db", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7ebf9c61-f8a1-42e2-b47b-c2f6d934e4bc", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-22T14:29:37.795Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2a2c62c2-527c-4101-9c27-0c2a863a5b33", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9a52313b-5907-4843-b075-8104b2901319", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "923749a7-3050-4f1e-8191-dde06a97ebf0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3f338042-d2d2-4377-bf45-936cf714f212", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-22T14:29:37.796Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0fa99da9-723f-40c9-a86e-8d74f9ecb6bb", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4fa80fd1-233c-491a-9260-1bea1bf3b90c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:48	getting operation status	{"id": "98827c76-94d3-4293-85bd-1981f4032490", "type": "TB", "ydb_operation_id": "1"}
2024-08-22T14:29:37.797Z	INFO	handlers/utils.go:71	received retriable error	{"id": "98827c76-94d3-4293-85bd-1981f4032490", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2000ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.809Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id d5d6339b-e700-40d0-a540-bb5883ed4b67, type TB, state PENDING"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "d5d6339b-e700-40d0-a540-bb5883ed4b67"}
2024-08-22T14:29:38.810Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001034ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

Copy link

📝 Test results

ydbcp

28 tests (28 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 28

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4001018ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-28T10:40:48.210Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-28T10:40:48.211Z	DEBUG	queries/write.go:302	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-28T10:40:48.211Z	DEBUG	queries/write.go:302	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-28T10:40:48.212Z	DEBUG	queries/write.go:302	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers20001031ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-28T10:40:48.721Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "b9227196-7921-4a9d-b1cd-2ad455f36fbf", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T10:40:48.721Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b9227196-7921-4a9d-b1cd-2ad455f36fbf", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-28T10:40:48.722Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "4a1b3af9-c808-4217-824c-6324765fdf73", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T10:40:48.722Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4a1b3af9-c808-4217-824c-6324765fdf73", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-28T10:40:48.722Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "a48dab45-233f-4245-893f-eec809e7a72c", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T10:40:48.722Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a48dab45-233f-4245-893f-eec809e7a72c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-28T10:40:48.723Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "ced71568-109a-4d9a-b6b6-70f62421bb3a", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T10:40:48.723Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ced71568-109a-4d9a-b6b6-70f62421bb3a", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T10:40:48.723Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "ced71568-109a-4d9a-b6b6-70f62421bb3a", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-28T10:40:48.723Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7a18eef0-a78d-4ceb-9ea0-ee1918297e95", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T10:40:48.723Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7a18eef0-a78d-4ceb-9ea0-ee1918297e95", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T10:40:48.723Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "7a18eef0-a78d-4ceb-9ea0-ee1918297e95", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-28T10:40:48.723Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "ce2ab1d8-95af-4ff4-abc9-918fe814931a", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-28T10:40:48.723Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ce2ab1d8-95af-4ff4-abc9-918fe814931a", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-28T10:40:48.724Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "57ed5317-8a33-4f1d-9c08-bae0271ab1c6", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-28T10:40:48.724Z	INFO	handlers/utils.go:48	getting operation status	{"id": "57ed5317-8a33-4f1d-9c08-bae0271ab1c6", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-28T10:40:48.724Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "bc50c3af-c262-4de4-88aa-25f10d5e694a", "type": "RB", "state": "CANCELLING", "message": "operation was cancelled by user"}
2024-08-28T10:40:48.724Z	INFO	handlers/utils.go:48	getting operation status	{"id": "bc50c3af-c262-4de4-88aa-25f10d5e694a", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T10:40:48.724Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "bc50c3af-c262-4de4-88aa-25f10d5e694a", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-28T10:40:48.724Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "399fb6bb-59b2-4ad2-9111-9d054e347f1d", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-28T10:40:48.724Z	INFO	handlers/utils.go:48	getting operation status	{"id": "399fb6bb-59b2-4ad2-9111-9d054e347f1d", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T10:40:48.724Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "399fb6bb-59b2-4ad2-9111-9d054e347f1d", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-28T10:40:48.725Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "f52552f4-b1e5-4f6c-979d-9de9201f6086", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T10:40:48.725Z	INFO	handlers/utils.go:48	getting operation status	{"id": "f52552f4-b1e5-4f6c-979d-9de9201f6086", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T10:40:48.725Z	INFO	handlers/utils.go:71	received retriable error	{"id": "f52552f4-b1e5-4f6c-979d-9de9201f6086", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-28T10:40:48.725Z	INFO	handlers/utils.go:48	getting operation status	{"id": "549f7d77-c83f-423d-a460-377ed5270814", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-28T10:40:48.725Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d8944b17-b994-444f-84fd-581f6ea3e256", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-28T10:40:48.726Z	INFO	handlers/utils.go:48	getting operation status	{"id": "69c4c57d-0dff-4776-a730-aebb48468ce0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-28T10:40:48.726Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7ec13f2f-f24e-44df-8691-c02ce0f96769", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-28T10:40:48.726Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d6299159-a76c-479a-9319-d0796430dfbe", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-28T10:40:48.727Z	INFO	handlers/utils.go:48	getting operation status	{"id": "49cc294e-30b6-47e9-8f17-537057e481b8", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-28T10:40:48.727Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7159815c-5861-41ff-a525-287bd4c38882", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-28T10:40:48.728Z	INFO	handlers/utils.go:48	getting operation status	{"id": "788da9d0-0392-4c6b-8480-0901fb2f2940", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-28T10:40:48.728Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8ac82b28-6d4c-4b46-a478-e9c8f20bf02a", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-28T10:40:48.729Z	INFO	handlers/utils.go:48	getting operation status	{"id": "24f463a5-1e1f-4aec-8b69-b38612202f9b", "type": "TB", "ydb_operation_id": "1"}
2024-08-28T10:40:48.729Z	INFO	handlers/utils.go:71	received retriable error	{"id": "24f463a5-1e1f-4aec-8b69-b38612202f9b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2001018ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-28T10:40:49.963Z	DEBUG	processor/processor.go:75	Operation Processor started	{"period": "10s"}
2024-08-28T10:40:49.963Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 1f42a0e6-0ca9-4f7f-9f7f-2ed2414fce7a, type TB, state PENDING"}
2024-08-28T10:40:49.963Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 1f42a0e6-0ca9-4f7f-9f7f-2ed2414fce7a, type TB, state PENDING"}
2024-08-28T10:40:49.963Z	DEBUG	processor/processor.go:139	start operation handler	{"operation": "Operation, id 1f42a0e6-0ca9-4f7f-9f7f-2ed2414fce7a, type TB, state PENDING"}
2024-08-28T10:40:49.963Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id 1f42a0e6-0ca9-4f7f-9f7f-2ed2414fce7a, type TB, state PENDING"}
2024-08-28T10:40:49.964Z	DEBUG	processor/processor.go:82	Operation Processor stopping. Waiting for running operations...
2024-08-28T10:40:49.964Z	DEBUG	processor/processor.go:156	operation handler is finished	{"operationID": "1f42a0e6-0ca9-4f7f-9f7f-2ed2414fce7a"}
2024-08-28T10:40:49.964Z	DEBUG	processor/processor.go:85	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001032ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

Copy link

📝 Test results

ydbcp

28 tests (28 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 28

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4001018.9999999999999ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-28T11:05:13.486Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-28T11:05:13.487Z	DEBUG	queries/write.go:302	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-28T11:05:13.488Z	DEBUG	queries/write.go:302	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-28T11:05:13.488Z	DEBUG	queries/write.go:302	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers20001031ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-28T11:05:14.206Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "f209f043-e1a9-4cb4-9047-283a685a7b6d", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:05:14.206Z	INFO	handlers/utils.go:48	getting operation status	{"id": "f209f043-e1a9-4cb4-9047-283a685a7b6d", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-28T11:05:14.207Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "17403f6c-f82a-4128-81e6-c415b12c37bc", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:05:14.207Z	INFO	handlers/utils.go:48	getting operation status	{"id": "17403f6c-f82a-4128-81e6-c415b12c37bc", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-28T11:05:14.207Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "ef9442b7-6ba4-4985-bd66-e3b022d5aa88", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:05:14.207Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ef9442b7-6ba4-4985-bd66-e3b022d5aa88", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-28T11:05:14.207Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "dac69030-57c5-4a4d-9661-724172375089", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:05:14.207Z	INFO	handlers/utils.go:48	getting operation status	{"id": "dac69030-57c5-4a4d-9661-724172375089", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:05:14.207Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "dac69030-57c5-4a4d-9661-724172375089", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-28T11:05:14.208Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "2f4327f3-6096-40af-97f1-2bac558d6ae2", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:05:14.208Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2f4327f3-6096-40af-97f1-2bac558d6ae2", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:05:14.208Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "2f4327f3-6096-40af-97f1-2bac558d6ae2", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-28T11:05:14.208Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "20784b03-56d4-42ca-ae8b-f6410628d4e1", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-28T11:05:14.208Z	INFO	handlers/utils.go:48	getting operation status	{"id": "20784b03-56d4-42ca-ae8b-f6410628d4e1", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-28T11:05:14.208Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "52901a29-be14-4fa9-90d3-43388e42c152", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-28T11:05:14.208Z	INFO	handlers/utils.go:48	getting operation status	{"id": "52901a29-be14-4fa9-90d3-43388e42c152", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-28T11:05:14.209Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "fa8c4d62-94cb-437f-a222-b51a2f5d51cf", "type": "RB", "state": "CANCELLING", "message": "operation was cancelled by user"}
2024-08-28T11:05:14.209Z	INFO	handlers/utils.go:48	getting operation status	{"id": "fa8c4d62-94cb-437f-a222-b51a2f5d51cf", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:05:14.209Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "fa8c4d62-94cb-437f-a222-b51a2f5d51cf", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-28T11:05:14.209Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "0ffa4129-a7d1-4aef-b55c-231f993f5f51", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-28T11:05:14.209Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0ffa4129-a7d1-4aef-b55c-231f993f5f51", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:05:14.209Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "0ffa4129-a7d1-4aef-b55c-231f993f5f51", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-28T11:05:14.209Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "5e861d10-392c-4cdf-ae31-31ea3390a056", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:05:14.209Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5e861d10-392c-4cdf-ae31-31ea3390a056", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:05:14.209Z	INFO	handlers/utils.go:71	received retriable error	{"id": "5e861d10-392c-4cdf-ae31-31ea3390a056", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-28T11:05:14.210Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c51ea1d2-cfb5-4aeb-afc7-4b2519a23cac", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-28T11:05:14.210Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c6567088-c21d-4ed7-8061-1d9f75de0296", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-28T11:05:14.210Z	INFO	handlers/utils.go:48	getting operation status	{"id": "75a83717-0548-4b2f-b6c2-f66d0b07db37", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-28T11:05:14.210Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4d1bfba5-d372-4755-a961-d4f4dafe2510", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-28T11:05:14.211Z	INFO	handlers/utils.go:48	getting operation status	{"id": "76fc1540-4a69-4f58-b5a1-7c3ccccffd26", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-28T11:05:14.211Z	INFO	handlers/utils.go:48	getting operation status	{"id": "da3854f8-5e96-4195-80aa-7cc69f080114", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-28T11:05:14.211Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d9e21390-297e-4467-a19f-9d497ab9438b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-28T11:05:14.212Z	INFO	handlers/utils.go:48	getting operation status	{"id": "99606a3b-f601-4e89-9597-802d4fb7a485", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-28T11:05:14.212Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e65bfaa3-fc9d-4499-b864-00b1cafc9f82", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-28T11:05:14.212Z	INFO	handlers/utils.go:48	getting operation status	{"id": "378cc20b-9d83-49fb-8027-e66e706eac3c", "type": "TB", "ydb_operation_id": "1"}
2024-08-28T11:05:14.212Z	INFO	handlers/utils.go:71	received retriable error	{"id": "378cc20b-9d83-49fb-8027-e66e706eac3c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2001018.9999999999999ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-28T11:05:15.241Z	DEBUG	processor/processor.go:75	Operation Processor started	{"period": "10s"}
2024-08-28T11:05:15.242Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id d34376f2-7b5c-4797-8ce4-d0aafe165a94, type TB, state PENDING"}
2024-08-28T11:05:15.242Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id d34376f2-7b5c-4797-8ce4-d0aafe165a94, type TB, state PENDING"}
2024-08-28T11:05:15.242Z	DEBUG	processor/processor.go:139	start operation handler	{"operation": "Operation, id d34376f2-7b5c-4797-8ce4-d0aafe165a94, type TB, state PENDING"}
2024-08-28T11:05:15.242Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id d34376f2-7b5c-4797-8ce4-d0aafe165a94, type TB, state PENDING"}
2024-08-28T11:05:15.242Z	DEBUG	processor/processor.go:156	operation handler is finished	{"operationID": "d34376f2-7b5c-4797-8ce4-d0aafe165a94"}
2024-08-28T11:05:15.242Z	DEBUG	processor/processor.go:82	Operation Processor stopping. Waiting for running operations...
2024-08-28T11:05:15.242Z	DEBUG	processor/processor.go:85	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001033ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

@ulya-sidorina ulya-sidorina force-pushed the feature/NBYDB-173 branch 3 times, most recently from e684491 to e3bf4f8 Compare August 28, 2024 11:24
Copy link

📝 Test results

ydbcp

28 tests (28 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 28

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4001016ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-28T11:23:45.749Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-28T11:23:45.750Z	DEBUG	queries/write.go:304	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-28T11:23:45.750Z	DEBUG	queries/write.go:304	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-28T11:23:45.751Z	DEBUG	queries/write.go:304	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers20001032ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-28T11:23:46.480Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "571339e6-428e-4fc9-885b-7de61b4ca1f8", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:23:46.480Z	INFO	handlers/utils.go:48	getting operation status	{"id": "571339e6-428e-4fc9-885b-7de61b4ca1f8", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-28T11:23:46.481Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "4aa4dc18-fda7-409a-9f0b-070d57f43456", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:23:46.481Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4aa4dc18-fda7-409a-9f0b-070d57f43456", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-28T11:23:46.482Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "603d986c-0826-4a20-90e4-2e6b9c3c001c", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:23:46.482Z	INFO	handlers/utils.go:48	getting operation status	{"id": "603d986c-0826-4a20-90e4-2e6b9c3c001c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-28T11:23:46.482Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "a0f1243e-91bb-4ac9-84f2-5911dda8b2a6", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:23:46.482Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a0f1243e-91bb-4ac9-84f2-5911dda8b2a6", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:23:46.482Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "a0f1243e-91bb-4ac9-84f2-5911dda8b2a6", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-28T11:23:46.483Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "ca3ad213-4840-4250-9935-48bca4b92fd5", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:23:46.483Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ca3ad213-4840-4250-9935-48bca4b92fd5", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:23:46.483Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "ca3ad213-4840-4250-9935-48bca4b92fd5", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-28T11:23:46.483Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "952e16b1-144e-4b2d-ac81-2a915c0eb291", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-28T11:23:46.483Z	INFO	handlers/utils.go:48	getting operation status	{"id": "952e16b1-144e-4b2d-ac81-2a915c0eb291", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-28T11:23:46.483Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "1ad36842-dc83-440d-b93a-fd987911ee81", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-28T11:23:46.483Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1ad36842-dc83-440d-b93a-fd987911ee81", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-28T11:23:46.484Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "ad0de6d4-7d87-4d4c-978d-39af6836b5ca", "type": "RB", "state": "CANCELLING", "message": "operation was cancelled by user"}
2024-08-28T11:23:46.484Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ad0de6d4-7d87-4d4c-978d-39af6836b5ca", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:23:46.484Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "ad0de6d4-7d87-4d4c-978d-39af6836b5ca", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-28T11:23:46.484Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "5460015b-7d82-4319-acfa-9fe34da70d27", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-28T11:23:46.484Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5460015b-7d82-4319-acfa-9fe34da70d27", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:23:46.484Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "5460015b-7d82-4319-acfa-9fe34da70d27", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-28T11:23:46.484Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "c3f989be-06f6-45f8-8981-013b58327e9c", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:23:46.484Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c3f989be-06f6-45f8-8981-013b58327e9c", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:23:46.484Z	INFO	handlers/utils.go:71	received retriable error	{"id": "c3f989be-06f6-45f8-8981-013b58327e9c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-28T11:23:46.484Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ecc4ba79-b400-4cd3-ac8d-597a7ab00ab5", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-28T11:23:46.485Z	INFO	handlers/utils.go:48	getting operation status	{"id": "49db4ac4-64d6-458f-ab5a-51548debdac7", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-28T11:23:46.485Z	INFO	handlers/utils.go:48	getting operation status	{"id": "26bdff94-3634-4b5e-adff-2416b2731f11", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-28T11:23:46.485Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d7534dbe-c7cb-4546-a392-a8ad2cd7db73", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-28T11:23:46.485Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7c159f66-cf46-4a89-89d4-337a97f317ff", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-28T11:23:46.486Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2413b92b-b2b0-4a0f-be50-75e5f8eb4eb2", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-28T11:23:46.486Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3afb811b-a481-4f2a-bc31-a2c072869aa1", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-28T11:23:46.486Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3ed205ae-280f-4a81-81bf-aa4cbcedbd0b", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-28T11:23:46.486Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6c57763a-98e3-456a-9a4e-210cec24e480", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-28T11:23:46.486Z	INFO	handlers/utils.go:48	getting operation status	{"id": "302dec3a-a8a6-4c75-a0e6-f65eea82d989", "type": "TB", "ydb_operation_id": "1"}
2024-08-28T11:23:46.486Z	INFO	handlers/utils.go:71	received retriable error	{"id": "302dec3a-a8a6-4c75-a0e6-f65eea82d989", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2001022ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-28T11:23:47.510Z	DEBUG	processor/processor.go:75	Operation Processor started	{"period": "10s"}
2024-08-28T11:23:47.511Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 641aceaa-9d8a-4df9-8fba-4a804c055851, type TB, state PENDING"}
2024-08-28T11:23:47.511Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 641aceaa-9d8a-4df9-8fba-4a804c055851, type TB, state PENDING"}
2024-08-28T11:23:47.511Z	DEBUG	processor/processor.go:139	start operation handler	{"operation": "Operation, id 641aceaa-9d8a-4df9-8fba-4a804c055851, type TB, state PENDING"}
2024-08-28T11:23:47.511Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id 641aceaa-9d8a-4df9-8fba-4a804c055851, type TB, state PENDING"}
2024-08-28T11:23:47.511Z	DEBUG	processor/processor.go:156	operation handler is finished	{"operationID": "641aceaa-9d8a-4df9-8fba-4a804c055851"}
2024-08-28T11:23:47.511Z	DEBUG	processor/processor.go:82	Operation Processor stopping. Waiting for running operations...
2024-08-28T11:23:47.511Z	DEBUG	processor/processor.go:85	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001029ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

Copy link

📝 Test results

ydbcp

28 tests (28 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 28

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4001018ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-28T11:25:44.539Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-28T11:25:44.539Z	DEBUG	queries/write.go:304	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-28T11:25:44.539Z	DEBUG	queries/write.go:304	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-28T11:25:44.540Z	DEBUG	queries/write.go:304	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers20001029ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-28T11:25:45.266Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "d34965c3-9e95-4a81-a8f4-cdb18f3dc1b0", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:25:45.266Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d34965c3-9e95-4a81-a8f4-cdb18f3dc1b0", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-28T11:25:45.267Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "8883cab7-2d32-4a8e-863c-7ffd53a84d25", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:25:45.267Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8883cab7-2d32-4a8e-863c-7ffd53a84d25", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-28T11:25:45.267Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "612378d7-7178-4efc-a483-ab8ed75b91e4", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:25:45.267Z	INFO	handlers/utils.go:48	getting operation status	{"id": "612378d7-7178-4efc-a483-ab8ed75b91e4", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-28T11:25:45.268Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "dfa8d032-4a9c-4eff-9515-1416d3129ee8", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:25:45.268Z	INFO	handlers/utils.go:48	getting operation status	{"id": "dfa8d032-4a9c-4eff-9515-1416d3129ee8", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:25:45.268Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "dfa8d032-4a9c-4eff-9515-1416d3129ee8", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-28T11:25:45.268Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "4e56ad22-245f-4f4c-a543-3db020acc943", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:25:45.268Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4e56ad22-245f-4f4c-a543-3db020acc943", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:25:45.268Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "4e56ad22-245f-4f4c-a543-3db020acc943", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-28T11:25:45.268Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "0bf3a745-e3f5-4f79-843f-5738b39cb797", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-28T11:25:45.268Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0bf3a745-e3f5-4f79-843f-5738b39cb797", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-28T11:25:45.268Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "dc295b04-b98e-4379-9fb5-6c07165a9249", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-28T11:25:45.269Z	INFO	handlers/utils.go:48	getting operation status	{"id": "dc295b04-b98e-4379-9fb5-6c07165a9249", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-28T11:25:45.269Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "a7748b0b-424b-4679-9464-d2a94b6ef32c", "type": "RB", "state": "CANCELLING", "message": "operation was cancelled by user"}
2024-08-28T11:25:45.269Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a7748b0b-424b-4679-9464-d2a94b6ef32c", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:25:45.269Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "a7748b0b-424b-4679-9464-d2a94b6ef32c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-28T11:25:45.269Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "05c2dec6-af78-44e4-96e1-73a687e2669e", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-28T11:25:45.269Z	INFO	handlers/utils.go:48	getting operation status	{"id": "05c2dec6-af78-44e4-96e1-73a687e2669e", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:25:45.269Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "05c2dec6-af78-44e4-96e1-73a687e2669e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-28T11:25:45.269Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "9935d879-80b3-4302-b7c0-a012a98ed346", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:25:45.269Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9935d879-80b3-4302-b7c0-a012a98ed346", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:25:45.269Z	INFO	handlers/utils.go:71	received retriable error	{"id": "9935d879-80b3-4302-b7c0-a012a98ed346", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-28T11:25:45.270Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2956e20e-db0e-4f73-b041-4a31d10861f7", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-28T11:25:45.270Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8efa3ee5-30c7-45ad-a09b-34e183450fc4", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-28T11:25:45.270Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d4ee393f-2034-40f5-a265-d176fb42dd55", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-28T11:25:45.270Z	INFO	handlers/utils.go:48	getting operation status	{"id": "203b9d8d-b613-494c-a65c-5cf7d91ee2b7", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-28T11:25:45.271Z	INFO	handlers/utils.go:48	getting operation status	{"id": "f0d458ee-5001-4e6b-9676-a6e3664f7bf6", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-28T11:25:45.271Z	INFO	handlers/utils.go:48	getting operation status	{"id": "f6853eb2-5f94-4f7c-8579-e0524ddb78a0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-28T11:25:45.271Z	INFO	handlers/utils.go:48	getting operation status	{"id": "184ca21d-0472-4401-9837-c6605644a976", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-28T11:25:45.271Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7bfed7aa-f883-4532-88ee-312b044b84f0", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-28T11:25:45.271Z	INFO	handlers/utils.go:48	getting operation status	{"id": "52d287ff-7b98-4b45-b781-363eb46dd138", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-28T11:25:45.272Z	INFO	handlers/utils.go:48	getting operation status	{"id": "bd1c4e86-ad93-4fd2-9776-3958cb7762bd", "type": "TB", "ydb_operation_id": "1"}
2024-08-28T11:25:45.272Z	INFO	handlers/utils.go:71	received retriable error	{"id": "bd1c4e86-ad93-4fd2-9776-3958cb7762bd", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2001020ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-28T11:25:46.339Z	DEBUG	processor/processor.go:75	Operation Processor started	{"period": "10s"}
2024-08-28T11:25:46.339Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 77f2cfd4-b335-436b-b77b-90f11835ecdb, type TB, state PENDING"}
2024-08-28T11:25:46.339Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 77f2cfd4-b335-436b-b77b-90f11835ecdb, type TB, state PENDING"}
2024-08-28T11:25:46.339Z	DEBUG	processor/processor.go:139	start operation handler	{"operation": "Operation, id 77f2cfd4-b335-436b-b77b-90f11835ecdb, type TB, state PENDING"}
2024-08-28T11:25:46.339Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id 77f2cfd4-b335-436b-b77b-90f11835ecdb, type TB, state PENDING"}
2024-08-28T11:25:46.339Z	DEBUG	processor/processor.go:156	operation handler is finished	{"operationID": "77f2cfd4-b335-436b-b77b-90f11835ecdb"}
2024-08-28T11:25:46.340Z	DEBUG	processor/processor.go:82	Operation Processor stopping. Waiting for running operations...
2024-08-28T11:25:46.340Z	DEBUG	processor/processor.go:85	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001029ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

Copy link

📝 Test results

ydbcp

28 tests (28 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 28

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4001018ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-28T11:39:30.732Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-28T11:39:30.733Z	DEBUG	queries/write.go:304	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-28T11:39:30.734Z	DEBUG	queries/write.go:304	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-28T11:39:30.734Z	DEBUG	queries/write.go:304	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers20001033ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-28T11:39:31.481Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "ae31440f-f4ae-4c69-914f-a45f69041e2c", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:39:31.481Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ae31440f-f4ae-4c69-914f-a45f69041e2c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-28T11:39:31.481Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "16b5f295-2aad-4fe1-b43a-c6fd477849d9", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:39:31.481Z	INFO	handlers/utils.go:48	getting operation status	{"id": "16b5f295-2aad-4fe1-b43a-c6fd477849d9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-28T11:39:31.482Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7b0639ff-2e1c-49f1-9616-9d7b345b2d0a", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:39:31.482Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7b0639ff-2e1c-49f1-9616-9d7b345b2d0a", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-28T11:39:31.482Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "1d526e8e-c559-4399-86f0-5dea37fa135c", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:39:31.482Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1d526e8e-c559-4399-86f0-5dea37fa135c", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:39:31.482Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "1d526e8e-c559-4399-86f0-5dea37fa135c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-28T11:39:31.482Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "8684d9f0-33a7-4176-9eeb-7d9ec5932e3b", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:39:31.482Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8684d9f0-33a7-4176-9eeb-7d9ec5932e3b", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:39:31.483Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "8684d9f0-33a7-4176-9eeb-7d9ec5932e3b", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-28T11:39:31.483Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "441b95dc-d4ff-48f5-aeff-eaaa90761e5c", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-28T11:39:31.483Z	INFO	handlers/utils.go:48	getting operation status	{"id": "441b95dc-d4ff-48f5-aeff-eaaa90761e5c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-28T11:39:31.484Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "3a017df3-2a95-4e8e-8738-b9b1abb56af0", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-28T11:39:31.484Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3a017df3-2a95-4e8e-8738-b9b1abb56af0", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-28T11:39:31.485Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "8e0e83d2-522c-4f72-bf60-da930b7a3f23", "type": "RB", "state": "CANCELLING", "message": "operation was cancelled by user"}
2024-08-28T11:39:31.485Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8e0e83d2-522c-4f72-bf60-da930b7a3f23", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:39:31.485Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "8e0e83d2-522c-4f72-bf60-da930b7a3f23", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-28T11:39:31.486Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "083e6126-23fd-47a7-a880-382a64962f9f", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-28T11:39:31.486Z	INFO	handlers/utils.go:48	getting operation status	{"id": "083e6126-23fd-47a7-a880-382a64962f9f", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:39:31.486Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "083e6126-23fd-47a7-a880-382a64962f9f", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-28T11:39:31.486Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "ca909546-218b-41b6-b50a-2cab1f34c45a", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:39:31.486Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ca909546-218b-41b6-b50a-2cab1f34c45a", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:39:31.486Z	INFO	handlers/utils.go:71	received retriable error	{"id": "ca909546-218b-41b6-b50a-2cab1f34c45a", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-28T11:39:31.486Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c0a148cc-f0eb-4462-ac9d-cd550b6d7876", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-28T11:39:31.487Z	INFO	handlers/utils.go:48	getting operation status	{"id": "35cd394f-0a96-48f7-92ad-689575641dab", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-28T11:39:31.487Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8843a473-0a77-403d-a773-afebd6a64d00", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-28T11:39:31.487Z	INFO	handlers/utils.go:48	getting operation status	{"id": "765456f5-d6e5-422f-9c1e-52dbf17afc17", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-28T11:39:31.487Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0012c5fc-64bf-4f18-a5fb-8b47addb2fda", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-28T11:39:31.488Z	INFO	handlers/utils.go:48	getting operation status	{"id": "46c31321-330a-4264-88e4-7fa3c9811f0d", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-28T11:39:31.488Z	INFO	handlers/utils.go:48	getting operation status	{"id": "da321d4c-d278-4638-b6d4-0e53d922cdd7", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-28T11:39:31.488Z	INFO	handlers/utils.go:48	getting operation status	{"id": "bb0a8b71-cad8-4074-83f5-9f9b0599df2b", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-28T11:39:31.488Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0a90dd8f-0665-44f5-8c3d-594ff355b822", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-28T11:39:31.488Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2ce0b31a-03fb-4ea2-b7c8-a8c0a0c0608c", "type": "TB", "ydb_operation_id": "1"}
2024-08-28T11:39:31.488Z	INFO	handlers/utils.go:71	received retriable error	{"id": "2ce0b31a-03fb-4ea2-b7c8-a8c0a0c0608c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2001018.9999999999999ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-28T11:39:32.525Z	DEBUG	processor/processor.go:75	Operation Processor started	{"period": "10s"}
2024-08-28T11:39:32.526Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 3bc0e7bf-23a1-407b-b08c-a5d4031ceea7, type TB, state PENDING"}
2024-08-28T11:39:32.526Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 3bc0e7bf-23a1-407b-b08c-a5d4031ceea7, type TB, state PENDING"}
2024-08-28T11:39:32.526Z	DEBUG	processor/processor.go:139	start operation handler	{"operation": "Operation, id 3bc0e7bf-23a1-407b-b08c-a5d4031ceea7, type TB, state PENDING"}
2024-08-28T11:39:32.526Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id 3bc0e7bf-23a1-407b-b08c-a5d4031ceea7, type TB, state PENDING"}
2024-08-28T11:39:32.526Z	DEBUG	processor/processor.go:156	operation handler is finished	{"operationID": "3bc0e7bf-23a1-407b-b08c-a5d4031ceea7"}
2024-08-28T11:39:32.526Z	DEBUG	processor/processor.go:82	Operation Processor stopping. Waiting for running operations...
2024-08-28T11:39:32.526Z	DEBUG	processor/processor.go:85	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001029ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

@ulya-sidorina ulya-sidorina marked this pull request as ready for review August 28, 2024 11:41
Copy link

📝 Test results

ydbcp

28 tests (28 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 28

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4001020.9999999999999ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-28T11:51:09.065Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-28T11:51:09.065Z	DEBUG	queries/write.go:304	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-28T11:51:09.066Z	DEBUG	queries/write.go:304	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-28T11:51:09.067Z	DEBUG	queries/write.go:304	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers20001030ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-28T11:51:09.882Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "1db5b975-cd54-4e12-878f-98954f9b0bf6", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:51:09.882Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1db5b975-cd54-4e12-878f-98954f9b0bf6", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-28T11:51:09.883Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "c383eb48-e575-4212-a30e-5c8142bd88f8", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:51:09.883Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c383eb48-e575-4212-a30e-5c8142bd88f8", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-28T11:51:09.883Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "46107159-734d-4e17-8ccf-f0fff2bc4adc", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:51:09.883Z	INFO	handlers/utils.go:48	getting operation status	{"id": "46107159-734d-4e17-8ccf-f0fff2bc4adc", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-28T11:51:09.883Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "23b32b17-f51d-4fb3-a769-1ec48981b834", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:51:09.883Z	INFO	handlers/utils.go:48	getting operation status	{"id": "23b32b17-f51d-4fb3-a769-1ec48981b834", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:51:09.883Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "23b32b17-f51d-4fb3-a769-1ec48981b834", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-28T11:51:09.884Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "5132fed8-0f17-4cf8-b55e-74204c916adf", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:51:09.884Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5132fed8-0f17-4cf8-b55e-74204c916adf", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:51:09.884Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "5132fed8-0f17-4cf8-b55e-74204c916adf", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-28T11:51:09.884Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "d0fc90a8-c923-4248-9934-ccb6b22446a7", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-28T11:51:09.884Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d0fc90a8-c923-4248-9934-ccb6b22446a7", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-28T11:51:09.884Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "d2938f60-e6e4-4bd2-9446-0e9241d78181", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-28T11:51:09.884Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d2938f60-e6e4-4bd2-9446-0e9241d78181", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-28T11:51:09.884Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "950815b5-c8e4-4d8d-995d-3f85af54b2bb", "type": "RB", "state": "CANCELLING", "message": "operation was cancelled by user"}
2024-08-28T11:51:09.884Z	INFO	handlers/utils.go:48	getting operation status	{"id": "950815b5-c8e4-4d8d-995d-3f85af54b2bb", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:51:09.884Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "950815b5-c8e4-4d8d-995d-3f85af54b2bb", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-28T11:51:09.885Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "5703657c-8921-4761-8aa1-af1250b8fafc", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-28T11:51:09.885Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5703657c-8921-4761-8aa1-af1250b8fafc", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:51:09.885Z	INFO	handlers/restore_backup.go:137	forgetting operation	{"id": "5703657c-8921-4761-8aa1-af1250b8fafc", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-28T11:51:09.885Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "0f309f31-c82c-402e-bb4c-ccef3d0c8da1", "type": "RB", "state": "PENDING", "message": ""}
2024-08-28T11:51:09.885Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0f309f31-c82c-402e-bb4c-ccef3d0c8da1", "type": "RB", "ydb_operation_id": "1"}
2024-08-28T11:51:09.885Z	INFO	handlers/utils.go:71	received retriable error	{"id": "0f309f31-c82c-402e-bb4c-ccef3d0c8da1", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-28T11:51:09.885Z	INFO	handlers/utils.go:48	getting operation status	{"id": "92c34b92-cc99-4c2a-8f4e-0f22d6587e37", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-28T11:51:09.885Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a97d3901-112b-44f3-9de3-8bf414e74bfc", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-28T11:51:09.885Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7fc975f0-e2ca-4d25-9e32-c1da3a759396", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-28T11:51:09.885Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5d02d040-5f78-4261-a186-72a929dedfdb", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-28T11:51:09.886Z	INFO	handlers/utils.go:48	getting operation status	{"id": "167868b3-f4c8-4f7a-b427-b1095f327173", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-28T11:51:09.886Z	INFO	handlers/utils.go:48	getting operation status	{"id": "71439cfb-f6b0-425b-b9cb-86a02e867563", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-28T11:51:09.886Z	INFO	handlers/utils.go:48	getting operation status	{"id": "93781bc0-8bf1-4f4d-ae14-b96c61e071b2", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-28T11:51:09.886Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4a65fe14-426e-4d55-aa7d-5df4d384c7bd", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-28T11:51:09.886Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2def6fd4-e248-48b9-a0be-5bde346d7105", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-28T11:51:09.887Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3e82ba1d-e9fb-4af3-8d95-d89d644d0ae8", "type": "TB", "ydb_operation_id": "1"}
2024-08-28T11:51:09.887Z	INFO	handlers/utils.go:71	received retriable error	{"id": "3e82ba1d-e9fb-4af3-8d95-d89d644d0ae8", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2001028ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-28T11:51:10.901Z	DEBUG	processor/processor.go:75	Operation Processor started	{"period": "10s"}
2024-08-28T11:51:10.902Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 8cc9356c-7fb1-40fe-950c-b907a7e03779, type TB, state PENDING"}
2024-08-28T11:51:10.902Z	DEBUG	processor/processor.go:139	start operation handler	{"operation": "Operation, id 8cc9356c-7fb1-40fe-950c-b907a7e03779, type TB, state PENDING"}
2024-08-28T11:51:10.903Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id 8cc9356c-7fb1-40fe-950c-b907a7e03779, type TB, state PENDING"}
2024-08-28T11:51:10.903Z	DEBUG	processor/processor.go:156	operation handler is finished	{"operationID": "8cc9356c-7fb1-40fe-950c-b907a7e03779"}
2024-08-28T11:51:10.903Z	DEBUG	processor/processor.go:82	Operation Processor stopping. Waiting for running operations...
2024-08-28T11:51:10.903Z	DEBUG	processor/processor.go:85	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001032ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

@ulya-sidorina ulya-sidorina merged commit 6219c2b into main Aug 28, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants