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

feat(ydbcp): support ttl for backups #65

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ulya-sidorina
Copy link
Collaborator

No description provided.

Copy link

📝 Test results

ydbcp

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/integration0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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/queries5001020.9999999999999ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateBackupSchedule
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-09-16T12:52:32.837Z	DEBUG	queries/read.go:144	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-09-16T12:52:32.838Z	DEBUG	queries/write.go:468	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_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-09-16T12:52:32.839Z	DEBUG	queries/write.go:468	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-16T12:52:32.839Z	DEBUG	queries/write.go:468	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
=== RUN   TestQueryBuilder_CreateBackupSchedule
2024-09-16T12:52:32.840Z	DEBUG	queries/write.go:468	write query	{"yql": "UPSERT INTO BackupSchedules (id, container_id, database, endpoint, name, active, crontab, ttl, paths, initiated, created_at, recovery_point_objective, last_backup_id, next_launch) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $name_0, $active_0, $crontab_0, $ttl_0, $paths_0, $initiated_0, $created_at_0, $recovery_point_objective_0, $last_backup_id_0, $next_launch_0)"}
--- PASS: TestQueryBuilder_CreateBackupSchedule (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers23001037ms
🧪 Tests
  • 🟢TestDBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestDBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestDBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestDBOperationHandlerDeadlineExceededForRunningOperation
2024-09-16T12:52:33.449Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestDBOperationHandlerPendingOperationCompletedSuccessfully
2024-09-16T12:52:33.449Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestDBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-16T12:52:33.450Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-16T12:52:33.450Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.450Z	INFO	handlers/utils.go:48	getting operation status	{"id": "91ce8f1f-a370-470e-bb87-460deb7feaf9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-16T12:52:33.451Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.451Z	INFO	handlers/utils.go:48	getting operation status	{"id": "eaa6bc4e-b274-4c03-ba21-b3f18b53457f", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-16T12:52:33.451Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.451Z	INFO	handlers/utils.go:48	getting operation status	{"id": "030792dd-90e3-4724-8bb0-f4c475c017a7", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-16T12:52:33.451Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.452Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ac8c3fc1-8d6b-4640-86aa-a64225cbd0a9", "type": "RB", "ydb_operation_id": "1"}
2024-09-16T12:52:33.452Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "ac8c3fc1-8d6b-4640-86aa-a64225cbd0a9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-16T12:52:33.452Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.452Z	INFO	handlers/utils.go:48	getting operation status	{"id": "cf9f1c9f-6376-4355-aaec-38febb2cb883", "type": "RB", "ydb_operation_id": "1"}
2024-09-16T12:52:33.452Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "cf9f1c9f-6376-4355-aaec-38febb2cb883", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-16T12:52:33.452Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.452Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9f86fc32-bd96-421a-8e09-3518c219f93e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-16T12:52:33.452Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.452Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e68a8b31-e56a-41ab-8dc2-b357d689e6ae", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-16T12:52:33.453Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-16T12:52:33.453Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9b0f2c46-39fe-4b55-af74-b531122fe721", "type": "RB", "ydb_operation_id": "1"}
2024-09-16T12:52:33.453Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "9b0f2c46-39fe-4b55-af74-b531122fe721", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-16T12:52:33.453Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.453Z	INFO	handlers/utils.go:48	getting operation status	{"id": "34fb9ee9-a4a7-40f2-b2ea-501c20e463bf", "type": "RB", "ydb_operation_id": "1"}
2024-09-16T12:52:33.453Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "34fb9ee9-a4a7-40f2-b2ea-501c20e463bf", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-16T12:52:33.453Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.454Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1734363f-fe92-43d2-b902-0536387104ee", "type": "RB", "ydb_operation_id": "1"}
2024-09-16T12:52:33.454Z	INFO	handlers/utils.go:71	received retriable error	{"id": "1734363f-fe92-43d2-b902-0536387104ee", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-16T12:52:33.454Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.454Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7ce9f4ad-9444-495b-9014-e23eeb3cc45e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-16T12:52:33.454Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.454Z	INFO	handlers/utils.go:48	getting operation status	{"id": "bf39a119-d24e-4575-b6b9-6020013de217", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-16T12:52:33.454Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.455Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b07a2266-5aef-4e2a-bb94-d6169df00b6d", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-16T12:52:33.455Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.455Z	INFO	handlers/utils.go:48	getting operation status	{"id": "764faf5f-2431-4f20-a579-1da0ac136997", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-16T12:52:33.455Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.455Z	INFO	handlers/utils.go:48	getting operation status	{"id": "443dc146-569c-4b16-9f5e-6c523cd11f3a", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-16T12:52:33.456Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.456Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d7e41838-1732-4e21-b463-c981e9d8fc22", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-16T12:52:33.456Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.456Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6c8244b5-f94d-4b25-a599-aa0d38cd9ac4", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-16T12:52:33.456Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-16T12:52:33.456Z	INFO	handlers/utils.go:48	getting operation status	{"id": "12b08899-6f3c-4375-9673-d7ea24b6ce15", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-16T12:52:33.457Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.457Z	INFO	handlers/utils.go:48	getting operation status	{"id": "af46155c-78e6-4f9b-8125-253cfff0a680", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-16T12:52:33.457Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.457Z	INFO	handlers/utils.go:48	getting operation status	{"id": "41476cbd-1221-40fa-83c8-bd494fd18fd0", "type": "TB", "ydb_operation_id": "1"}
2024-09-16T12:52:33.457Z	INFO	handlers/utils.go:71	received retriable error	{"id": "41476cbd-1221-40fa-83c8-bd494fd18fd0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2001024ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-16T12:52:33.740Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-09-16T12:52:33.741Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "3124b2d2-391a-4995-8d6e-d12ca01eac65", "OperationID": "8300f150-4b17-41e7-a61d-9a9a7d885f85", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 8300f150-4b17-41e7-a61d-9a9a7d885f85, type TB, state PENDING"}
2024-09-16T12:52:33.741Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "e4793aa9-e0a8-4c48-bc95-6d18e9104b96", "OperationID": "8300f150-4b17-41e7-a61d-9a9a7d885f85", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 8300f150-4b17-41e7-a61d-9a9a7d885f85, type TB, state PENDING"}
2024-09-16T12:52:33.741Z	DEBUG	processor/processor.go:147	start operation handler	{"RunID": "ba4d567c-ed8b-4107-9dfe-70887488af0d", "OperationID": "8300f150-4b17-41e7-a61d-9a9a7d885f85", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 8300f150-4b17-41e7-a61d-9a9a7d885f85, type TB, state PENDING"}
2024-09-16T12:52:33.742Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"RunID": "ba4d567c-ed8b-4107-9dfe-70887488af0d", "OperationID": "8300f150-4b17-41e7-a61d-9a9a7d885f85", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 8300f150-4b17-41e7-a61d-9a9a7d885f85, type TB, state PENDING"}
2024-09-16T12:52:33.742Z	DEBUG	processor/processor.go:159	operation handler finished successfully	{"RunID": "ba4d567c-ed8b-4107-9dfe-70887488af0d", "OperationID": "8300f150-4b17-41e7-a61d-9a9a7d885f85", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 8300f150-4b17-41e7-a61d-9a9a7d885f85, type TB, state DONE"}
2024-09-16T12:52:33.742Z	DEBUG	processor/processor.go:81	Operation Processor stopping. Waiting for running operations...
2024-09-16T12:52:33.742Z	DEBUG	processor/processor.go:175	operation handler is marked as finished	{"OperationID": "8300f150-4b17-41e7-a61d-9a9a7d885f85"}
2024-09-16T12:52:33.742Z	DEBUG	processor/processor.go:84	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/grpcinfo0000ms
🧪 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/backup_schedule0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/integration0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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/queries5000ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateBackupSchedule
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-09-16T12:52:32.837Z	DEBUG	queries/read.go:144	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-09-16T12:52:32.838Z	DEBUG	queries/write.go:468	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_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-09-16T12:52:32.839Z	DEBUG	queries/write.go:468	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-16T12:52:32.839Z	DEBUG	queries/write.go:468	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
=== RUN   TestQueryBuilder_CreateBackupSchedule
2024-09-16T12:52:32.840Z	DEBUG	queries/write.go:468	write query	{"yql": "UPSERT INTO BackupSchedules (id, container_id, database, endpoint, name, active, crontab, ttl, paths, initiated, created_at, recovery_point_objective, last_backup_id, next_launch) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $name_0, $active_0, $crontab_0, $ttl_0, $paths_0, $initiated_0, $created_at_0, $recovery_point_objective_0, $last_backup_id_0, $next_launch_0)"}
--- PASS: TestQueryBuilder_CreateBackupSchedule (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers23002ms
🧪 Tests
  • 🟢TestDBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestDBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestDBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestDBOperationHandlerDeadlineExceededForRunningOperation
2024-09-16T12:52:33.449Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestDBOperationHandlerPendingOperationCompletedSuccessfully
2024-09-16T12:52:33.449Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestDBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-16T12:52:33.450Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-16T12:52:33.450Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.450Z	INFO	handlers/utils.go:48	getting operation status	{"id": "91ce8f1f-a370-470e-bb87-460deb7feaf9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-16T12:52:33.451Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.451Z	INFO	handlers/utils.go:48	getting operation status	{"id": "eaa6bc4e-b274-4c03-ba21-b3f18b53457f", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-16T12:52:33.451Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.451Z	INFO	handlers/utils.go:48	getting operation status	{"id": "030792dd-90e3-4724-8bb0-f4c475c017a7", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-16T12:52:33.451Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.452Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ac8c3fc1-8d6b-4640-86aa-a64225cbd0a9", "type": "RB", "ydb_operation_id": "1"}
2024-09-16T12:52:33.452Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "ac8c3fc1-8d6b-4640-86aa-a64225cbd0a9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-16T12:52:33.452Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.452Z	INFO	handlers/utils.go:48	getting operation status	{"id": "cf9f1c9f-6376-4355-aaec-38febb2cb883", "type": "RB", "ydb_operation_id": "1"}
2024-09-16T12:52:33.452Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "cf9f1c9f-6376-4355-aaec-38febb2cb883", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-16T12:52:33.452Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.452Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9f86fc32-bd96-421a-8e09-3518c219f93e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-16T12:52:33.452Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.452Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e68a8b31-e56a-41ab-8dc2-b357d689e6ae", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-16T12:52:33.453Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-16T12:52:33.453Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9b0f2c46-39fe-4b55-af74-b531122fe721", "type": "RB", "ydb_operation_id": "1"}
2024-09-16T12:52:33.453Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "9b0f2c46-39fe-4b55-af74-b531122fe721", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-16T12:52:33.453Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.453Z	INFO	handlers/utils.go:48	getting operation status	{"id": "34fb9ee9-a4a7-40f2-b2ea-501c20e463bf", "type": "RB", "ydb_operation_id": "1"}
2024-09-16T12:52:33.453Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "34fb9ee9-a4a7-40f2-b2ea-501c20e463bf", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-16T12:52:33.453Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.454Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1734363f-fe92-43d2-b902-0536387104ee", "type": "RB", "ydb_operation_id": "1"}
2024-09-16T12:52:33.454Z	INFO	handlers/utils.go:71	received retriable error	{"id": "1734363f-fe92-43d2-b902-0536387104ee", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-16T12:52:33.454Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.454Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7ce9f4ad-9444-495b-9014-e23eeb3cc45e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-16T12:52:33.454Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.454Z	INFO	handlers/utils.go:48	getting operation status	{"id": "bf39a119-d24e-4575-b6b9-6020013de217", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-16T12:52:33.454Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.455Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b07a2266-5aef-4e2a-bb94-d6169df00b6d", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-16T12:52:33.455Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.455Z	INFO	handlers/utils.go:48	getting operation status	{"id": "764faf5f-2431-4f20-a579-1da0ac136997", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-16T12:52:33.455Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.455Z	INFO	handlers/utils.go:48	getting operation status	{"id": "443dc146-569c-4b16-9f5e-6c523cd11f3a", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-16T12:52:33.456Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.456Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d7e41838-1732-4e21-b463-c981e9d8fc22", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-16T12:52:33.456Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.456Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6c8244b5-f94d-4b25-a599-aa0d38cd9ac4", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-16T12:52:33.456Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-16T12:52:33.456Z	INFO	handlers/utils.go:48	getting operation status	{"id": "12b08899-6f3c-4375-9673-d7ea24b6ce15", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-16T12:52:33.457Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.457Z	INFO	handlers/utils.go:48	getting operation status	{"id": "af46155c-78e6-4f9b-8125-253cfff0a680", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-16T12:52:33.457Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-16T12:52:33.457Z	INFO	handlers/utils.go:48	getting operation status	{"id": "41476cbd-1221-40fa-83c8-bd494fd18fd0", "type": "TB", "ydb_operation_id": "1"}
2024-09-16T12:52:33.457Z	INFO	handlers/utils.go:71	received retriable error	{"id": "41476cbd-1221-40fa-83c8-bd494fd18fd0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2001ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-16T12:52:33.740Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-09-16T12:52:33.741Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "3124b2d2-391a-4995-8d6e-d12ca01eac65", "OperationID": "8300f150-4b17-41e7-a61d-9a9a7d885f85", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 8300f150-4b17-41e7-a61d-9a9a7d885f85, type TB, state PENDING"}
2024-09-16T12:52:33.741Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "e4793aa9-e0a8-4c48-bc95-6d18e9104b96", "OperationID": "8300f150-4b17-41e7-a61d-9a9a7d885f85", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 8300f150-4b17-41e7-a61d-9a9a7d885f85, type TB, state PENDING"}
2024-09-16T12:52:33.741Z	DEBUG	processor/processor.go:147	start operation handler	{"RunID": "ba4d567c-ed8b-4107-9dfe-70887488af0d", "OperationID": "8300f150-4b17-41e7-a61d-9a9a7d885f85", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 8300f150-4b17-41e7-a61d-9a9a7d885f85, type TB, state PENDING"}
2024-09-16T12:52:33.742Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"RunID": "ba4d567c-ed8b-4107-9dfe-70887488af0d", "OperationID": "8300f150-4b17-41e7-a61d-9a9a7d885f85", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 8300f150-4b17-41e7-a61d-9a9a7d885f85, type TB, state PENDING"}
2024-09-16T12:52:33.742Z	DEBUG	processor/processor.go:159	operation handler finished successfully	{"RunID": "ba4d567c-ed8b-4107-9dfe-70887488af0d", "OperationID": "8300f150-4b17-41e7-a61d-9a9a7d885f85", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 8300f150-4b17-41e7-a61d-9a9a7d885f85, type TB, state DONE"}
2024-09-16T12:52:33.742Z	DEBUG	processor/processor.go:81	Operation Processor stopping. Waiting for running operations...
2024-09-16T12:52:33.742Z	DEBUG	processor/processor.go:175	operation handler is marked as finished	{"OperationID": "8300f150-4b17-41e7-a61d-9a9a7d885f85"}
2024-09-16T12:52:33.742Z	DEBUG	processor/processor.go:84	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/grpcinfo0000ms
🧪 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/backup_schedule0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/integration0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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/queries5001031ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateBackupSchedule
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-09-17T11:39:47.303Z	DEBUG	queries/read.go:144	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-09-17T11:39:47.303Z	DEBUG	queries/write.go:468	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_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-09-17T11:39:47.304Z	DEBUG	queries/write.go:468	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.01s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-17T11:39:47.311Z	DEBUG	queries/write.go:468	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
=== RUN   TestQueryBuilder_CreateBackupSchedule
2024-09-17T11:39:47.312Z	DEBUG	queries/write.go:468	write query	{"yql": "UPSERT INTO BackupSchedules (id, container_id, database, endpoint, name, active, crontab, ttl, paths, initiated, created_at, recovery_point_objective, last_backup_id, next_launch) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $name_0, $active_0, $crontab_0, $ttl_0, $paths_0, $initiated_0, $created_at_0, $recovery_point_objective_0, $last_backup_id_0, $next_launch_0)"}
--- PASS: TestQueryBuilder_CreateBackupSchedule (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers23001043ms
🧪 Tests
  • 🟢TestDBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestDBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestDBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestDBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T11:39:47.869Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestDBOperationHandlerPendingOperationCompletedSuccessfully
2024-09-17T11:39:47.869Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestDBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T11:39:47.870Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-17T11:39:47.870Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:39:47.870Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4df2da82-892e-4780-88fe-c24e3cd9b895", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T11:39:47.870Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:39:47.871Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ebe977ac-d75d-477c-9cc3-c6d173edae01", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-17T11:39:47.871Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:39:47.871Z	INFO	handlers/utils.go:48	getting operation status	{"id": "566ab984-06c2-421c-9b35-5bd9ddecf1c5", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T11:39:47.871Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:39:47.871Z	INFO	handlers/utils.go:48	getting operation status	{"id": "17afa086-4fee-4a30-9abb-714938f46662", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T11:39:47.871Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "17afa086-4fee-4a30-9abb-714938f46662", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-17T11:39:47.871Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:39:47.871Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ac7c6df1-2e8b-4db0-a584-20acbc151a77", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T11:39:47.872Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "ac7c6df1-2e8b-4db0-a584-20acbc151a77", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-17T11:39:47.872Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:39:47.872Z	INFO	handlers/utils.go:48	getting operation status	{"id": "421b2ade-82c2-48ed-affd-ecbcf858d35f", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-17T11:39:47.872Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:39:47.872Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b115f079-fa97-4244-829c-a9b1c334c76a", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-17T11:39:47.872Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-17T11:39:47.872Z	INFO	handlers/utils.go:48	getting operation status	{"id": "cdd1f012-c341-456e-84bd-4d2a607f7e1d", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T11:39:47.872Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "cdd1f012-c341-456e-84bd-4d2a607f7e1d", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-17T11:39:47.873Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:39:47.873Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9fd6b961-6b4f-4236-8a9d-6c06d330bb07", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T11:39:47.873Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "9fd6b961-6b4f-4236-8a9d-6c06d330bb07", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-17T11:39:47.873Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:39:47.873Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5e378784-e738-4c8a-8f31-aa7af10743f9", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T11:39:47.873Z	INFO	handlers/utils.go:71	received retriable error	{"id": "5e378784-e738-4c8a-8f31-aa7af10743f9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-17T11:39:47.873Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:39:47.873Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5b9fac93-ca7d-4723-8b1d-d64b4a2d12ee", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T11:39:47.874Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:39:47.874Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3dbb823c-8c7a-4e35-8b57-672c5da2710e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-17T11:39:47.874Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:39:47.874Z	INFO	handlers/utils.go:48	getting operation status	{"id": "761d8e4b-5300-4b36-90db-4901781e746e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T11:39:47.874Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:39:47.874Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d272d666-4690-4710-8e5a-1343547bad44", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-17T11:39:47.874Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:39:47.875Z	INFO	handlers/utils.go:48	getting operation status	{"id": "67fb074b-ee8c-4d15-822b-7941cb6f00bd", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-17T11:39:47.875Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:39:47.875Z	INFO	handlers/utils.go:48	getting operation status	{"id": "f866ad0e-8197-47b6-bf84-53e3049c263b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-17T11:39:47.875Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:39:47.875Z	INFO	handlers/utils.go:48	getting operation status	{"id": "da7c7249-6e70-4a9c-a19f-aac3519aa153", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-17T11:39:47.875Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-17T11:39:47.875Z	INFO	handlers/utils.go:48	getting operation status	{"id": "13a46b17-749a-483e-a7f2-84162110947e", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-17T11:39:47.876Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:39:47.876Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9df8f078-7983-429f-81dc-57ac237d0998", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-17T11:39:47.876Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:39:47.876Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9cbfd177-abcb-4d76-aa77-128b0bf7fdd0", "type": "TB", "ydb_operation_id": "1"}
2024-09-17T11:39:47.876Z	INFO	handlers/utils.go:71	received retriable error	{"id": "9cbfd177-abcb-4d76-aa77-128b0bf7fdd0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2001020.9999999999999ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-17T11:39:47.855Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-09-17T11:39:47.856Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "f7fb66e1-5890-4bd3-94fd-c2c2437ed929", "OperationID": "6576ead3-6d0a-49e9-a4a3-1e7e20dc4871", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 6576ead3-6d0a-49e9-a4a3-1e7e20dc4871, type TB, state PENDING"}
2024-09-17T11:39:47.856Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "39a3ac51-1ccb-440b-9054-59d6dea73a4b", "OperationID": "6576ead3-6d0a-49e9-a4a3-1e7e20dc4871", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 6576ead3-6d0a-49e9-a4a3-1e7e20dc4871, type TB, state PENDING"}
2024-09-17T11:39:47.856Z	DEBUG	processor/processor.go:147	start operation handler	{"RunID": "22c0deae-81a5-4910-8957-b9692d6de486", "OperationID": "6576ead3-6d0a-49e9-a4a3-1e7e20dc4871", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 6576ead3-6d0a-49e9-a4a3-1e7e20dc4871, type TB, state PENDING"}
2024-09-17T11:39:47.856Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"RunID": "22c0deae-81a5-4910-8957-b9692d6de486", "OperationID": "6576ead3-6d0a-49e9-a4a3-1e7e20dc4871", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 6576ead3-6d0a-49e9-a4a3-1e7e20dc4871, type TB, state PENDING"}
2024-09-17T11:39:47.856Z	DEBUG	processor/processor.go:159	operation handler finished successfully	{"RunID": "22c0deae-81a5-4910-8957-b9692d6de486", "OperationID": "6576ead3-6d0a-49e9-a4a3-1e7e20dc4871", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 6576ead3-6d0a-49e9-a4a3-1e7e20dc4871, type TB, state DONE"}
2024-09-17T11:39:47.856Z	DEBUG	processor/processor.go:175	operation handler is marked as finished	{"OperationID": "6576ead3-6d0a-49e9-a4a3-1e7e20dc4871"}
2024-09-17T11:39:47.856Z	DEBUG	processor/processor.go:81	Operation Processor stopping. Waiting for running operations...
2024-09-17T11:39:47.856Z	DEBUG	processor/processor.go:84	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/grpcinfo0000ms
🧪 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/backup_schedule0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/integration0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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/queries5001031ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateBackupSchedule
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-09-17T11:43:15.508Z	DEBUG	queries/read.go:144	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-09-17T11:43:15.510Z	DEBUG	queries/write.go:468	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_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-09-17T11:43:15.512Z	DEBUG	queries/write.go:468	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-17T11:43:15.514Z	DEBUG	queries/write.go:468	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
=== RUN   TestQueryBuilder_CreateBackupSchedule
2024-09-17T11:43:15.515Z	DEBUG	queries/write.go:468	write query	{"yql": "UPSERT INTO BackupSchedules (id, container_id, database, endpoint, name, active, crontab, ttl, paths, initiated, created_at, recovery_point_objective, last_backup_id, next_launch) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $name_0, $active_0, $crontab_0, $ttl_0, $paths_0, $initiated_0, $created_at_0, $recovery_point_objective_0, $last_backup_id_0, $next_launch_0)"}
--- PASS: TestQueryBuilder_CreateBackupSchedule (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers23001043ms
🧪 Tests
  • 🟢TestDBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestDBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestDBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestDBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T11:43:16.212Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestDBOperationHandlerPendingOperationCompletedSuccessfully
2024-09-17T11:43:16.213Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestDBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T11:43:16.213Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-17T11:43:16.213Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:43:16.213Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a9ebea3d-bfda-4f39-acd5-71637d7555b1", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T11:43:16.214Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:43:16.214Z	INFO	handlers/utils.go:48	getting operation status	{"id": "bfec6073-e310-4ab8-8c1a-359125effe85", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-17T11:43:16.214Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:43:16.214Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ece9845a-6847-4a39-b2a1-5170cf823923", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T11:43:16.215Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:43:16.215Z	INFO	handlers/utils.go:48	getting operation status	{"id": "186e98fb-06f5-45c4-a472-5af020956307", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T11:43:16.215Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "186e98fb-06f5-45c4-a472-5af020956307", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-17T11:43:16.215Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:43:16.215Z	INFO	handlers/utils.go:48	getting operation status	{"id": "422f1ab4-15e0-4069-ab3c-16a2f33a9c15", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T11:43:16.215Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "422f1ab4-15e0-4069-ab3c-16a2f33a9c15", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-17T11:43:16.215Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:43:16.215Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c03ad50b-febd-4fca-9137-7983115d1ea3", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-17T11:43:16.215Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:43:16.216Z	INFO	handlers/utils.go:48	getting operation status	{"id": "95bc9509-69ea-4e2e-8b53-9c5949e8622a", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-17T11:43:16.216Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-17T11:43:16.216Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9d6add5d-dc4a-4b24-88b1-0d98861b1519", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T11:43:16.216Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "9d6add5d-dc4a-4b24-88b1-0d98861b1519", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-17T11:43:16.216Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:43:16.216Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a3fd63d6-862a-4e32-8d63-eac2806de2ec", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T11:43:16.216Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "a3fd63d6-862a-4e32-8d63-eac2806de2ec", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-17T11:43:16.217Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:43:16.217Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1f04f05b-4289-4dca-95ed-00e0e4f2eeb8", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T11:43:16.217Z	INFO	handlers/utils.go:71	received retriable error	{"id": "1f04f05b-4289-4dca-95ed-00e0e4f2eeb8", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-17T11:43:16.217Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:43:16.217Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e82e54ec-699b-41f0-8fdd-52c2d2b9955c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T11:43:16.218Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:43:16.218Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a0c07cf4-1f6a-4257-bc96-f9394d4f3644", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-17T11:43:16.218Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:43:16.218Z	INFO	handlers/utils.go:48	getting operation status	{"id": "44154517-6e9b-456b-8cb2-0666cc9cf838", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T11:43:16.219Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:43:16.219Z	INFO	handlers/utils.go:48	getting operation status	{"id": "673f4de5-d556-450f-b243-91f4a76fc3ea", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-17T11:43:16.219Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:43:16.219Z	INFO	handlers/utils.go:48	getting operation status	{"id": "fb61f975-9738-4a47-a392-c24d932c767c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-17T11:43:16.220Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:43:16.220Z	INFO	handlers/utils.go:48	getting operation status	{"id": "aad867e9-596d-4dfd-bbbc-e132577fbdfc", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-17T11:43:16.220Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:43:16.220Z	INFO	handlers/utils.go:48	getting operation status	{"id": "55292691-1d11-43a9-b9c5-3df9f115623e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-17T11:43:16.220Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-17T11:43:16.221Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8d13ae9a-af65-44c7-8b48-35dc2ab6d45d", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-17T11:43:16.221Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:43:16.221Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0b779e28-0039-4e7a-b870-5dea7028e324", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-17T11:43:16.221Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:43:16.222Z	INFO	handlers/utils.go:48	getting operation status	{"id": "68f4e039-6816-4e60-a908-f269ec7253b4", "type": "TB", "ydb_operation_id": "1"}
2024-09-17T11:43:16.222Z	INFO	handlers/utils.go:71	received retriable error	{"id": "68f4e039-6816-4e60-a908-f269ec7253b4", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2001020.9999999999999ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-17T11:43:16.199Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-09-17T11:43:16.199Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "96d4332e-7426-488e-aaf6-169aa8f5b3de", "OperationID": "212a4f27-4289-4f24-9507-d4f71693981b", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 212a4f27-4289-4f24-9507-d4f71693981b, type TB, state PENDING"}
2024-09-17T11:43:16.199Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "1e4b0005-14c4-447c-80e7-c9cbcbbe5b00", "OperationID": "212a4f27-4289-4f24-9507-d4f71693981b", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 212a4f27-4289-4f24-9507-d4f71693981b, type TB, state PENDING"}
2024-09-17T11:43:16.200Z	DEBUG	processor/processor.go:147	start operation handler	{"RunID": "d209929b-5857-49e9-82d5-f04c2b7f3682", "OperationID": "212a4f27-4289-4f24-9507-d4f71693981b", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 212a4f27-4289-4f24-9507-d4f71693981b, type TB, state PENDING"}
2024-09-17T11:43:16.200Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"RunID": "d209929b-5857-49e9-82d5-f04c2b7f3682", "OperationID": "212a4f27-4289-4f24-9507-d4f71693981b", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 212a4f27-4289-4f24-9507-d4f71693981b, type TB, state PENDING"}
2024-09-17T11:43:16.200Z	DEBUG	processor/processor.go:159	operation handler finished successfully	{"RunID": "d209929b-5857-49e9-82d5-f04c2b7f3682", "OperationID": "212a4f27-4289-4f24-9507-d4f71693981b", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 212a4f27-4289-4f24-9507-d4f71693981b, type TB, state DONE"}
2024-09-17T11:43:16.200Z	DEBUG	processor/processor.go:175	operation handler is marked as finished	{"OperationID": "212a4f27-4289-4f24-9507-d4f71693981b"}
2024-09-17T11:43:16.200Z	DEBUG	processor/processor.go:81	Operation Processor stopping. Waiting for running operations...
2024-09-17T11:43:16.200Z	DEBUG	processor/processor.go:84	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/grpcinfo0000ms
🧪 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/backup_schedule0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/integration0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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/queries5001018.9999999999999ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateBackupSchedule
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-09-17T11:47:13.876Z	DEBUG	queries/read.go:144	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-09-17T11:47:13.877Z	DEBUG	queries/write.go:472	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_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-09-17T11:47:13.877Z	DEBUG	queries/write.go:472	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-17T11:47:13.878Z	DEBUG	queries/write.go:472	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
=== RUN   TestQueryBuilder_CreateBackupSchedule
2024-09-17T11:47:13.878Z	DEBUG	queries/write.go:472	write query	{"yql": "UPSERT INTO BackupSchedules (id, container_id, database, endpoint, name, active, crontab, ttl, paths, initiated, created_at, recovery_point_objective, last_backup_id, next_launch) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $name_0, $active_0, $crontab_0, $ttl_0, $paths_0, $initiated_0, $created_at_0, $recovery_point_objective_0, $last_backup_id_0, $next_launch_0)"}
--- PASS: TestQueryBuilder_CreateBackupSchedule (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers23001042ms
🧪 Tests
  • 🟢TestDBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestDBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestDBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestDBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T11:47:15.015Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestDBOperationHandlerPendingOperationCompletedSuccessfully
2024-09-17T11:47:15.016Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestDBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T11:47:15.016Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-17T11:47:15.016Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:47:15.016Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ad882a4a-84f0-49f7-9a64-24272a281043", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T11:47:15.017Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:47:15.017Z	INFO	handlers/utils.go:48	getting operation status	{"id": "521e229d-4e4f-45a4-a27d-c1e205f82e5b", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-17T11:47:15.017Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:47:15.017Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b238917e-c37a-41b1-9a5f-16caecc1863e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T11:47:15.018Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:47:15.018Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1e76f471-c25a-4481-ae16-a7c0b17f6aa0", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T11:47:15.018Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "1e76f471-c25a-4481-ae16-a7c0b17f6aa0", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-17T11:47:15.018Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:47:15.018Z	INFO	handlers/utils.go:48	getting operation status	{"id": "338be826-6868-4ab6-a55f-d3b669324382", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T11:47:15.019Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "338be826-6868-4ab6-a55f-d3b669324382", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-17T11:47:15.019Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:47:15.019Z	INFO	handlers/utils.go:48	getting operation status	{"id": "fff51abe-5a3f-400a-8809-a12f5e7d081a", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-17T11:47:15.020Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:47:15.020Z	INFO	handlers/utils.go:48	getting operation status	{"id": "cac864e4-bde9-4004-ac30-23b0e89c4b35", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-17T11:47:15.020Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-17T11:47:15.020Z	INFO	handlers/utils.go:48	getting operation status	{"id": "23b6c969-a285-47e0-8ed7-d5ea1679e858", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T11:47:15.020Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "23b6c969-a285-47e0-8ed7-d5ea1679e858", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-17T11:47:15.020Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:47:15.020Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d622ed89-c1aa-4f6b-980d-38590ad0c289", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T11:47:15.020Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "d622ed89-c1aa-4f6b-980d-38590ad0c289", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-17T11:47:15.021Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:47:15.021Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5dafb61d-3638-449f-9149-4b2923af1817", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T11:47:15.021Z	INFO	handlers/utils.go:71	received retriable error	{"id": "5dafb61d-3638-449f-9149-4b2923af1817", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-17T11:47:15.021Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:47:15.021Z	INFO	handlers/utils.go:48	getting operation status	{"id": "befd897c-e379-40da-ba5a-757eaa680492", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T11:47:15.021Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:47:15.021Z	INFO	handlers/utils.go:48	getting operation status	{"id": "668ed61d-a752-4ccd-8cb9-fed15d51f82f", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-17T11:47:15.022Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:47:15.022Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4210e4d2-99f5-4051-8db0-f4a95dc716c3", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T11:47:15.022Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:47:15.022Z	INFO	handlers/utils.go:48	getting operation status	{"id": "cac0485f-d8cb-4a5a-affb-d02874c6613f", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-17T11:47:15.022Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:47:15.022Z	INFO	handlers/utils.go:48	getting operation status	{"id": "dd261b46-dc6c-464b-91d3-300029877647", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-17T11:47:15.023Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:47:15.023Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8eb8241c-5641-473f-bd48-b538210df185", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-17T11:47:15.023Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:47:15.023Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8b0024fd-727d-42b8-99eb-26865e08971d", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-17T11:47:15.023Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-17T11:47:15.023Z	INFO	handlers/utils.go:48	getting operation status	{"id": "be47ed8a-dd00-45e1-878c-ff58b8a87eac", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-17T11:47:15.024Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:47:15.024Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6e02792c-5d4d-4fbe-b3bf-31cbdff5c97b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-17T11:47:15.024Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T11:47:15.024Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5f5dfbac-ad75-4893-80c0-a5ddcc788516", "type": "TB", "ydb_operation_id": "1"}
2024-09-17T11:47:15.025Z	INFO	handlers/utils.go:71	received retriable error	{"id": "5f5dfbac-ad75-4893-80c0-a5ddcc788516", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2001018.9999999999999ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-17T11:47:15.721Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-09-17T11:47:15.721Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "0f2a6533-84c9-4fc8-924d-e8d4a3675c15", "OperationID": "4b8ad4fc-454c-453c-b43e-1f7a524ec240", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 4b8ad4fc-454c-453c-b43e-1f7a524ec240, type TB, state PENDING"}
2024-09-17T11:47:15.721Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "cfe03bf4-9445-4d72-a8d2-ba1bd0067746", "OperationID": "4b8ad4fc-454c-453c-b43e-1f7a524ec240", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 4b8ad4fc-454c-453c-b43e-1f7a524ec240, type TB, state PENDING"}
2024-09-17T11:47:15.721Z	DEBUG	processor/processor.go:147	start operation handler	{"RunID": "945ec16e-d7f6-438d-bf71-767194d53cea", "OperationID": "4b8ad4fc-454c-453c-b43e-1f7a524ec240", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 4b8ad4fc-454c-453c-b43e-1f7a524ec240, type TB, state PENDING"}
2024-09-17T11:47:15.722Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"RunID": "945ec16e-d7f6-438d-bf71-767194d53cea", "OperationID": "4b8ad4fc-454c-453c-b43e-1f7a524ec240", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 4b8ad4fc-454c-453c-b43e-1f7a524ec240, type TB, state PENDING"}
2024-09-17T11:47:15.722Z	DEBUG	processor/processor.go:81	Operation Processor stopping. Waiting for running operations...
2024-09-17T11:47:15.722Z	DEBUG	processor/processor.go:159	operation handler finished successfully	{"RunID": "945ec16e-d7f6-438d-bf71-767194d53cea", "OperationID": "4b8ad4fc-454c-453c-b43e-1f7a524ec240", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 4b8ad4fc-454c-453c-b43e-1f7a524ec240, type TB, state DONE"}
2024-09-17T11:47:15.722Z	DEBUG	processor/processor.go:175	operation handler is marked as finished	{"OperationID": "4b8ad4fc-454c-453c-b43e-1f7a524ec240"}
2024-09-17T11:47:15.722Z	DEBUG	processor/processor.go:84	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/grpcinfo0000ms
🧪 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/backup_schedule0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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-281 branch 2 times, most recently from 4197830 to d663132 Compare September 17, 2024 13:12
Copy link

📝 Test results

ydbcp

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/integration0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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/queries5001020ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateBackupSchedule
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-09-17T13:13:23.832Z	DEBUG	queries/read.go:144	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-09-17T13:13:23.833Z	DEBUG	queries/write.go:472	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_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-09-17T13:13:23.834Z	DEBUG	queries/write.go:472	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-17T13:13:23.834Z	DEBUG	queries/write.go:472	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
=== RUN   TestQueryBuilder_CreateBackupSchedule
2024-09-17T13:13:23.835Z	DEBUG	queries/write.go:472	write query	{"yql": "UPSERT INTO BackupSchedules (id, container_id, database, endpoint, name, active, crontab, ttl, paths, initiated, created_at, recovery_point_objective, last_backup_id, next_launch) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $name_0, $active_0, $crontab_0, $ttl_0, $paths_0, $initiated_0, $created_at_0, $recovery_point_objective_0, $last_backup_id_0, $next_launch_0)"}
--- PASS: TestQueryBuilder_CreateBackupSchedule (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers23001033ms
🧪 Tests
  • 🟢TestDBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestDBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestDBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestDBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T13:13:24.470Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestDBOperationHandlerPendingOperationCompletedSuccessfully
2024-09-17T13:13:24.470Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestDBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T13:13:24.471Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-17T13:13:24.471Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:13:24.471Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e24e6baa-86d6-4dfb-bc2e-5883ba3613f5", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T13:13:24.472Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:13:24.472Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b1e9887f-063d-4f92-8023-a5fd8d008d10", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-17T13:13:24.472Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:13:24.472Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1d309e1b-4a6f-4040-8689-fb4e7b0669b4", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T13:13:24.472Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:13:24.472Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7b350e6f-4da1-4b42-a7df-33cc36c34d67", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T13:13:24.472Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "7b350e6f-4da1-4b42-a7df-33cc36c34d67", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-17T13:13:24.473Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:13:24.473Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b0756d0f-ce2e-4d49-a1b4-21ab98185fe6", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T13:13:24.473Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "b0756d0f-ce2e-4d49-a1b4-21ab98185fe6", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-17T13:13:24.473Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:13:24.473Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b2e6da6a-0f40-4259-915c-e79ff3b76408", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-17T13:13:24.473Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:13:24.473Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1c0f2809-8a82-4462-a0ab-94d86d3cf4b6", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-17T13:13:24.473Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-17T13:13:24.474Z	INFO	handlers/utils.go:48	getting operation status	{"id": "27e5f826-040e-4f15-a944-240f3c633293", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T13:13:24.474Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "27e5f826-040e-4f15-a944-240f3c633293", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-17T13:13:24.474Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:13:24.474Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6d9eef8b-30f9-464b-a45e-cad90adcc338", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T13:13:24.474Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "6d9eef8b-30f9-464b-a45e-cad90adcc338", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-17T13:13:24.474Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:13:24.474Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3bd2ece9-988c-44ad-8d9c-dac16e32c711", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T13:13:24.474Z	INFO	handlers/utils.go:71	received retriable error	{"id": "3bd2ece9-988c-44ad-8d9c-dac16e32c711", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-17T13:13:24.474Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:13:24.474Z	INFO	handlers/utils.go:48	getting operation status	{"id": "db245b1b-9345-4f71-a8dd-a3ba98dd25ad", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T13:13:24.475Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:13:24.475Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c77cf86e-5b68-42bf-a667-cceb7100b91c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-17T13:13:24.475Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:13:24.475Z	INFO	handlers/utils.go:48	getting operation status	{"id": "95bfbbcd-c85a-4bac-9e5c-ca483c4e0697", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T13:13:24.475Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:13:24.475Z	INFO	handlers/utils.go:48	getting operation status	{"id": "03bb2b81-f04d-4ca3-9b85-1ed894d2fe12", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-17T13:13:24.475Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:13:24.476Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3feae2e2-3838-4953-8123-86ad00947100", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-17T13:13:24.476Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:13:24.476Z	INFO	handlers/utils.go:48	getting operation status	{"id": "131eb3ce-8013-4795-86cb-0093e1038c76", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-17T13:13:24.476Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:13:24.476Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e2947d4b-c54c-4f3e-a7ea-95e5cbff35e5", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-17T13:13:24.476Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-17T13:13:24.476Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c967ccc7-1324-4bd7-9c16-45c4abf35ae5", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-17T13:13:24.477Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:13:24.477Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9a46e3c2-1e1b-431b-a53c-32a2d1ad3548", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-17T13:13:24.477Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:13:24.477Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5903d951-1246-41dc-b43b-3b77d10dab0e", "type": "TB", "ydb_operation_id": "1"}
2024-09-17T13:13:24.477Z	INFO	handlers/utils.go:71	received retriable error	{"id": "5903d951-1246-41dc-b43b-3b77d10dab0e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2001020ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-17T13:13:24.800Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-09-17T13:13:24.800Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "34e78724-c0c3-4225-b568-f1e988d789d3", "OperationID": "400c75c8-345d-4a4d-9db8-e7fc28af757d", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 400c75c8-345d-4a4d-9db8-e7fc28af757d, type TB, state PENDING"}
2024-09-17T13:13:24.800Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "87a38737-152c-4b10-8e1b-2f76e8c94873", "OperationID": "400c75c8-345d-4a4d-9db8-e7fc28af757d", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 400c75c8-345d-4a4d-9db8-e7fc28af757d, type TB, state PENDING"}
2024-09-17T13:13:24.800Z	DEBUG	processor/processor.go:147	start operation handler	{"RunID": "4e4dcfef-4269-4e52-ad91-2c5f406f2f65", "OperationID": "400c75c8-345d-4a4d-9db8-e7fc28af757d", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 400c75c8-345d-4a4d-9db8-e7fc28af757d, type TB, state PENDING"}
2024-09-17T13:13:24.801Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"RunID": "4e4dcfef-4269-4e52-ad91-2c5f406f2f65", "OperationID": "400c75c8-345d-4a4d-9db8-e7fc28af757d", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 400c75c8-345d-4a4d-9db8-e7fc28af757d, type TB, state PENDING"}
2024-09-17T13:13:24.801Z	DEBUG	processor/processor.go:159	operation handler finished successfully	{"RunID": "4e4dcfef-4269-4e52-ad91-2c5f406f2f65", "OperationID": "400c75c8-345d-4a4d-9db8-e7fc28af757d", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 400c75c8-345d-4a4d-9db8-e7fc28af757d, type TB, state DONE"}
2024-09-17T13:13:24.801Z	DEBUG	processor/processor.go:175	operation handler is marked as finished	{"OperationID": "400c75c8-345d-4a4d-9db8-e7fc28af757d"}
2024-09-17T13:13:24.801Z	DEBUG	processor/processor.go:81	Operation Processor stopping. Waiting for running operations...
2024-09-17T13:13:24.801Z	DEBUG	processor/processor.go:84	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/grpcinfo0000ms
🧪 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/backup_schedule0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/integration0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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/queries5001037ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateBackupSchedule
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-09-17T13:54:08.309Z	DEBUG	queries/read.go:144	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-09-17T13:54:08.314Z	DEBUG	queries/write.go:472	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_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-09-17T13:54:08.316Z	DEBUG	queries/write.go:472	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-17T13:54:08.317Z	DEBUG	queries/write.go:472	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
=== RUN   TestQueryBuilder_CreateBackupSchedule
2024-09-17T13:54:08.317Z	DEBUG	queries/write.go:472	write query	{"yql": "UPSERT INTO BackupSchedules (id, container_id, database, endpoint, name, active, crontab, ttl, paths, initiated, created_at, recovery_point_objective, last_backup_id, next_launch) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $name_0, $active_0, $crontab_0, $ttl_0, $paths_0, $initiated_0, $created_at_0, $recovery_point_objective_0, $last_backup_id_0, $next_launch_0)"}
--- PASS: TestQueryBuilder_CreateBackupSchedule (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers23001045ms
🧪 Tests
  • 🟢TestDBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestDBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestDBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestDBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T13:54:08.852Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestDBOperationHandlerPendingOperationCompletedSuccessfully
2024-09-17T13:54:08.853Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestDBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T13:54:08.853Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-17T13:54:08.854Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:54:08.854Z	INFO	handlers/utils.go:48	getting operation status	{"id": "463b5eff-626f-470d-ade6-034e4578e28a", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T13:54:08.855Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:54:08.855Z	INFO	handlers/utils.go:48	getting operation status	{"id": "47c917c9-3d9f-4790-89de-fb84e164eb83", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-17T13:54:08.855Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:54:08.855Z	INFO	handlers/utils.go:48	getting operation status	{"id": "05e31e37-8eea-4a2f-b7a1-c2c68a92f5f8", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T13:54:08.855Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:54:08.855Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a6a4c374-66c9-41a5-9a8e-d64f39793518", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T13:54:08.855Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "a6a4c374-66c9-41a5-9a8e-d64f39793518", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-17T13:54:08.855Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:54:08.855Z	INFO	handlers/utils.go:48	getting operation status	{"id": "250964ff-a0ec-474e-b02b-8e059b1688f0", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T13:54:08.856Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "250964ff-a0ec-474e-b02b-8e059b1688f0", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-17T13:54:08.856Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:54:08.856Z	INFO	handlers/utils.go:48	getting operation status	{"id": "64b29b53-00e9-494b-b9a2-dfb29aa5204d", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-17T13:54:08.856Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:54:08.856Z	INFO	handlers/utils.go:48	getting operation status	{"id": "df167832-f754-4002-9316-931ef0783803", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-17T13:54:08.856Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-17T13:54:08.856Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e5d68019-e089-49c1-9e82-9b180c0a8e75", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T13:54:08.856Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "e5d68019-e089-49c1-9e82-9b180c0a8e75", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-17T13:54:08.857Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:54:08.857Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c6cd59fd-5653-40b8-8b59-1f54a431ebe7", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T13:54:08.857Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "c6cd59fd-5653-40b8-8b59-1f54a431ebe7", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-17T13:54:08.857Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:54:08.857Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a5d83760-b372-4f6b-9120-d5735c4e980f", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T13:54:08.857Z	INFO	handlers/utils.go:71	received retriable error	{"id": "a5d83760-b372-4f6b-9120-d5735c4e980f", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-17T13:54:08.857Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:54:08.858Z	INFO	handlers/utils.go:48	getting operation status	{"id": "afe9891f-d1fe-495c-9bf8-d6136750f401", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T13:54:08.858Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:54:08.858Z	INFO	handlers/utils.go:48	getting operation status	{"id": "eeaab1a9-122e-47d5-ab53-ba741fce6fe0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-17T13:54:08.858Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:54:08.859Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0408d08e-3e6e-458d-be0b-0a0989b32a97", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T13:54:08.859Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:54:08.860Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c908cda8-ed42-40e3-b873-8690873d03af", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-17T13:54:08.860Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:54:08.861Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c52e8aa6-c659-489e-94e6-1e13c27f0c98", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-17T13:54:08.861Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:54:08.861Z	INFO	handlers/utils.go:48	getting operation status	{"id": "dadf65d7-76c2-4627-9fe3-bd5b82fea7fd", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-17T13:54:08.862Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:54:08.862Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c6ce7173-0eae-4604-9624-3653285f7af0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-17T13:54:08.863Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-17T13:54:08.863Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d1192050-a45a-4085-ba54-1adcc39d1223", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-17T13:54:08.864Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:54:08.864Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ad546592-88c0-4720-8654-de5f7967062b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-17T13:54:08.865Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T13:54:08.865Z	INFO	handlers/utils.go:48	getting operation status	{"id": "432abfb6-dfc2-4ab0-899a-309130dae22a", "type": "TB", "ydb_operation_id": "1"}
2024-09-17T13:54:08.865Z	INFO	handlers/utils.go:71	received retriable error	{"id": "432abfb6-dfc2-4ab0-899a-309130dae22a", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2001020.9999999999999ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-17T13:54:08.841Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-09-17T13:54:08.842Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "3df9ff97-68e2-4174-8706-7088830229ac", "OperationID": "07c189fc-63b9-4b68-a778-bfe863ae98c1", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 07c189fc-63b9-4b68-a778-bfe863ae98c1, type TB, state PENDING"}
2024-09-17T13:54:08.842Z	DEBUG	processor/processor.go:147	start operation handler	{"RunID": "4025f4eb-2055-4324-aa5f-5cdfdff07cfc", "OperationID": "07c189fc-63b9-4b68-a778-bfe863ae98c1", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 07c189fc-63b9-4b68-a778-bfe863ae98c1, type TB, state PENDING"}
2024-09-17T13:54:08.842Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "511ae085-9bfa-47ca-8240-b72e99ad42a0", "OperationID": "07c189fc-63b9-4b68-a778-bfe863ae98c1", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 07c189fc-63b9-4b68-a778-bfe863ae98c1, type TB, state PENDING"}
2024-09-17T13:54:08.842Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"RunID": "4025f4eb-2055-4324-aa5f-5cdfdff07cfc", "OperationID": "07c189fc-63b9-4b68-a778-bfe863ae98c1", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 07c189fc-63b9-4b68-a778-bfe863ae98c1, type TB, state PENDING"}
2024-09-17T13:54:08.842Z	DEBUG	processor/processor.go:159	operation handler finished successfully	{"RunID": "4025f4eb-2055-4324-aa5f-5cdfdff07cfc", "OperationID": "07c189fc-63b9-4b68-a778-bfe863ae98c1", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 07c189fc-63b9-4b68-a778-bfe863ae98c1, type TB, state DONE"}
2024-09-17T13:54:08.842Z	DEBUG	processor/processor.go:175	operation handler is marked as finished	{"OperationID": "07c189fc-63b9-4b68-a778-bfe863ae98c1"}
2024-09-17T13:54:08.842Z	DEBUG	processor/processor.go:81	Operation Processor stopping. Waiting for running operations...
2024-09-17T13:54:08.842Z	DEBUG	processor/processor.go:84	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/grpcinfo0000ms
🧪 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/backup_schedule0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/integration0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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/queries5001024ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateBackupSchedule
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-09-17T14:30:05.102Z	DEBUG	queries/read.go:144	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-09-17T14:30:05.104Z	DEBUG	queries/write.go:487	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_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-09-17T14:30:05.105Z	DEBUG	queries/write.go:487	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-17T14:30:05.105Z	DEBUG	queries/write.go:487	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
=== RUN   TestQueryBuilder_CreateBackupSchedule
2024-09-17T14:30:05.106Z	DEBUG	queries/write.go:487	write query	{"yql": "UPSERT INTO BackupSchedules (id, container_id, database, endpoint, name, active, crontab, ttl, paths, initiated, created_at, recovery_point_objective, last_backup_id, next_launch) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $name_0, $active_0, $crontab_0, $ttl_0, $paths_0, $initiated_0, $created_at_0, $recovery_point_objective_0, $last_backup_id_0, $next_launch_0)"}
--- PASS: TestQueryBuilder_CreateBackupSchedule (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers23001043ms
🧪 Tests
  • 🟢TestDBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestDBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestDBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestDBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T14:30:05.695Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestDBOperationHandlerPendingOperationCompletedSuccessfully
2024-09-17T14:30:05.695Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestDBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T14:30:05.696Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-17T14:30:05.696Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T14:30:05.696Z	INFO	handlers/utils.go:48	getting operation status	{"id": "472b2da9-1fbc-4e72-a0d4-f0f0dbc0862e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T14:30:05.697Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T14:30:05.697Z	INFO	handlers/utils.go:48	getting operation status	{"id": "83ec9ed0-b8e7-4d33-90ae-e715c9db57d9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-17T14:30:05.697Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T14:30:05.697Z	INFO	handlers/utils.go:48	getting operation status	{"id": "cac69688-0087-4d6a-b7b5-870313c51404", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T14:30:05.697Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T14:30:05.697Z	INFO	handlers/utils.go:48	getting operation status	{"id": "15f68f3c-c8b6-40cf-b19b-57a819263dfc", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T14:30:05.698Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "15f68f3c-c8b6-40cf-b19b-57a819263dfc", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-17T14:30:05.698Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T14:30:05.698Z	INFO	handlers/utils.go:48	getting operation status	{"id": "718208f6-24cd-4ee5-8d17-edcda952a4bc", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T14:30:05.698Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "718208f6-24cd-4ee5-8d17-edcda952a4bc", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-17T14:30:05.698Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T14:30:05.698Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a715585d-4a58-41bf-8f2f-d3b89f9fc3e9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-17T14:30:05.698Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T14:30:05.698Z	INFO	handlers/utils.go:48	getting operation status	{"id": "af40423c-992c-4850-9a23-1c4189b5e0da", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-17T14:30:05.699Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-17T14:30:05.699Z	INFO	handlers/utils.go:48	getting operation status	{"id": "93fd9983-ebe0-467d-bc9f-b405ca121d7e", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T14:30:05.699Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "93fd9983-ebe0-467d-bc9f-b405ca121d7e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-17T14:30:05.699Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T14:30:05.699Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8a6f982d-89d7-471a-841d-6dbd9c0fcd33", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T14:30:05.699Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "8a6f982d-89d7-471a-841d-6dbd9c0fcd33", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-17T14:30:05.699Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T14:30:05.699Z	INFO	handlers/utils.go:48	getting operation status	{"id": "04a85ac6-d774-496b-88b6-598fb7587a4c", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T14:30:05.699Z	INFO	handlers/utils.go:71	received retriable error	{"id": "04a85ac6-d774-496b-88b6-598fb7587a4c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-17T14:30:05.699Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T14:30:05.699Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ef734dd2-3eb1-4cca-840f-49aa238646f7", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T14:30:05.700Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T14:30:05.700Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e20e66df-afac-41c9-8e00-a46c0fcbbfba", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-17T14:30:05.700Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T14:30:05.700Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c2092170-84a6-4296-a6f4-c79fadd4c78c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T14:30:05.700Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T14:30:05.700Z	INFO	handlers/utils.go:48	getting operation status	{"id": "36692a44-53d0-4a1b-bc1c-292f27f84f6f", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-17T14:30:05.700Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T14:30:05.701Z	INFO	handlers/utils.go:48	getting operation status	{"id": "678a03d3-9411-4b6b-abb3-9259bfd62269", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-17T14:30:05.701Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T14:30:05.701Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8c7f4882-78e6-4163-b49e-6a9da6064bc0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-17T14:30:05.701Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T14:30:05.701Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c638a6dc-ffd9-430a-a031-0b9ea118be76", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-17T14:30:05.701Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-17T14:30:05.702Z	INFO	handlers/utils.go:48	getting operation status	{"id": "fbb532b3-40e7-477b-868b-e27c31700352", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-17T14:30:05.702Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T14:30:05.702Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c4b53084-181c-44d0-97b8-7f60dd8b49f6", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-17T14:30:05.702Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T14:30:05.703Z	INFO	handlers/utils.go:48	getting operation status	{"id": "59a1c563-ca1b-450a-a300-d6cdf2af510b", "type": "TB", "ydb_operation_id": "1"}
2024-09-17T14:30:05.703Z	INFO	handlers/utils.go:71	received retriable error	{"id": "59a1c563-ca1b-450a-a300-d6cdf2af510b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2001025ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-17T14:30:05.683Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-09-17T14:30:05.684Z	DEBUG	processor/processor.go:147	start operation handler	{"RunID": "28981956-9941-40e9-aa5d-cb5c1bcbceb7", "OperationID": "1a0cbc0c-1108-46b9-881f-9dc7289de3f0", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 1a0cbc0c-1108-46b9-881f-9dc7289de3f0, type TB, state PENDING"}
2024-09-17T14:30:05.684Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"RunID": "28981956-9941-40e9-aa5d-cb5c1bcbceb7", "OperationID": "1a0cbc0c-1108-46b9-881f-9dc7289de3f0", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 1a0cbc0c-1108-46b9-881f-9dc7289de3f0, type TB, state PENDING"}
2024-09-17T14:30:05.684Z	DEBUG	processor/processor.go:159	operation handler finished successfully	{"RunID": "28981956-9941-40e9-aa5d-cb5c1bcbceb7", "OperationID": "1a0cbc0c-1108-46b9-881f-9dc7289de3f0", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 1a0cbc0c-1108-46b9-881f-9dc7289de3f0, type TB, state DONE"}
2024-09-17T14:30:05.684Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "756fa981-d90b-4318-a058-65306883aa0a", "OperationID": "1a0cbc0c-1108-46b9-881f-9dc7289de3f0", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 1a0cbc0c-1108-46b9-881f-9dc7289de3f0, type TB, state PENDING"}
2024-09-17T14:30:05.685Z	DEBUG	processor/processor.go:175	operation handler is marked as finished	{"OperationID": "1a0cbc0c-1108-46b9-881f-9dc7289de3f0"}
2024-09-17T14:30:05.685Z	DEBUG	processor/processor.go:81	Operation Processor stopping. Waiting for running operations...
2024-09-17T14:30:05.685Z	DEBUG	processor/processor.go:84	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/grpcinfo0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001036ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/backup_schedule0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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-281 branch 2 times, most recently from c1c5054 to f972b64 Compare September 17, 2024 16:11
Copy link

📝 Test results

ydbcp

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/integration0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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/queries5001018.9999999999999ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateBackupSchedule
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-09-17T16:12:33.804Z	DEBUG	queries/read.go:144	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-09-17T16:12:33.805Z	DEBUG	queries/write.go:472	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_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-09-17T16:12:33.805Z	DEBUG	queries/write.go:472	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-17T16:12:33.806Z	DEBUG	queries/write.go:472	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
=== RUN   TestQueryBuilder_CreateBackupSchedule
2024-09-17T16:12:33.806Z	DEBUG	queries/write.go:472	write query	{"yql": "UPSERT INTO BackupSchedules (id, container_id, database, endpoint, name, active, crontab, ttl, paths, initiated, created_at, recovery_point_objective, last_backup_id, next_launch) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $name_0, $active_0, $crontab_0, $ttl_0, $paths_0, $initiated_0, $created_at_0, $recovery_point_objective_0, $last_backup_id_0, $next_launch_0)"}
--- PASS: TestQueryBuilder_CreateBackupSchedule (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers23001040ms
🧪 Tests
  • 🟢TestDBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestDBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestDBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestDBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T16:12:35.036Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestDBOperationHandlerPendingOperationCompletedSuccessfully
2024-09-17T16:12:35.036Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestDBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T16:12:35.036Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-17T16:12:35.036Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:12:35.036Z	INFO	handlers/utils.go:48	getting operation status	{"id": "f5e27fab-07f5-4ca3-ad55-2be9db194ee1", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T16:12:35.037Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:12:35.037Z	INFO	handlers/utils.go:48	getting operation status	{"id": "200eb7b8-d8a2-4cb1-89ef-985625460710", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-17T16:12:35.037Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:12:35.037Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3c211396-d951-4b85-ae1e-b15df5cab504", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T16:12:35.038Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:12:35.038Z	INFO	handlers/utils.go:48	getting operation status	{"id": "61336532-16af-41d6-9dee-b35b43b9cb67", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T16:12:35.038Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "61336532-16af-41d6-9dee-b35b43b9cb67", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-17T16:12:35.038Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:12:35.038Z	INFO	handlers/utils.go:48	getting operation status	{"id": "28ea82e6-c106-443f-8b13-9a10c4e1a3ff", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T16:12:35.038Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "28ea82e6-c106-443f-8b13-9a10c4e1a3ff", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-17T16:12:35.038Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:12:35.038Z	INFO	handlers/utils.go:48	getting operation status	{"id": "afe9caef-f403-41f5-893c-70fb6bd20a2d", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-17T16:12:35.038Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:12:35.039Z	INFO	handlers/utils.go:48	getting operation status	{"id": "190db9bc-a26d-4e9b-a4c3-0705a056fb3b", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-17T16:12:35.039Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-17T16:12:35.039Z	INFO	handlers/utils.go:48	getting operation status	{"id": "15897288-20df-41b1-9f24-27f42c19c2ea", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T16:12:35.039Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "15897288-20df-41b1-9f24-27f42c19c2ea", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-17T16:12:35.039Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:12:35.039Z	INFO	handlers/utils.go:48	getting operation status	{"id": "68f15278-8a45-4528-a30e-c111a9860fdb", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T16:12:35.039Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "68f15278-8a45-4528-a30e-c111a9860fdb", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-17T16:12:35.039Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:12:35.039Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2e8ac451-3371-4d64-b849-67ec27473dd6", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T16:12:35.039Z	INFO	handlers/utils.go:71	received retriable error	{"id": "2e8ac451-3371-4d64-b849-67ec27473dd6", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-17T16:12:35.040Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:12:35.040Z	INFO	handlers/utils.go:48	getting operation status	{"id": "efe98c1f-8078-4eec-b197-c20a9194d012", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T16:12:35.040Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:12:35.040Z	INFO	handlers/utils.go:48	getting operation status	{"id": "bdcdf9df-a32a-47e2-8f8e-67830c993abc", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-17T16:12:35.040Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:12:35.040Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0dbd8559-e74a-43d7-a530-c6325563b357", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T16:12:35.041Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:12:35.041Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d7b498cc-e86d-499a-b222-8d009ad8aa49", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-17T16:12:35.041Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:12:35.041Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9ee52376-4cc9-4b56-98fd-e5165cc5686a", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-17T16:12:35.041Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:12:35.041Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1e599094-9691-45c0-904c-2b4d2d996f7d", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-17T16:12:35.042Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:12:35.042Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0129d06a-eaff-483b-ad8f-c7b3142963f0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-17T16:12:35.042Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-17T16:12:35.042Z	INFO	handlers/utils.go:48	getting operation status	{"id": "f63f5f8e-c269-49fb-a1aa-7d36147707b6", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-17T16:12:35.042Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:12:35.042Z	INFO	handlers/utils.go:48	getting operation status	{"id": "54d0f344-fbf7-4146-bec2-76858713e81a", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-17T16:12:35.043Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:12:35.043Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3bcee4d0-a5a6-4d4f-95a5-6c729718de32", "type": "TB", "ydb_operation_id": "1"}
2024-09-17T16:12:35.043Z	INFO	handlers/utils.go:71	received retriable error	{"id": "3bcee4d0-a5a6-4d4f-95a5-6c729718de32", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2001018ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-17T16:12:35.765Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-09-17T16:12:35.765Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "84d49f20-0770-4d1c-8804-89c906c63bfa", "OperationID": "b0a49790-0534-41c0-808c-915ef728ff8d", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id b0a49790-0534-41c0-808c-915ef728ff8d, type TB, state PENDING"}
2024-09-17T16:12:35.765Z	DEBUG	processor/processor.go:147	start operation handler	{"RunID": "7e541003-13d5-40f6-b59d-f6127ca5d5d0", "OperationID": "b0a49790-0534-41c0-808c-915ef728ff8d", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id b0a49790-0534-41c0-808c-915ef728ff8d, type TB, state PENDING"}
2024-09-17T16:12:35.765Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "d1c33a1e-4c1f-405a-ad99-552d540d7356", "OperationID": "b0a49790-0534-41c0-808c-915ef728ff8d", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id b0a49790-0534-41c0-808c-915ef728ff8d, type TB, state PENDING"}
2024-09-17T16:12:35.765Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"RunID": "7e541003-13d5-40f6-b59d-f6127ca5d5d0", "OperationID": "b0a49790-0534-41c0-808c-915ef728ff8d", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id b0a49790-0534-41c0-808c-915ef728ff8d, type TB, state PENDING"}
2024-09-17T16:12:35.765Z	DEBUG	processor/processor.go:159	operation handler finished successfully	{"RunID": "7e541003-13d5-40f6-b59d-f6127ca5d5d0", "OperationID": "b0a49790-0534-41c0-808c-915ef728ff8d", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id b0a49790-0534-41c0-808c-915ef728ff8d, type TB, state DONE"}
2024-09-17T16:12:35.766Z	DEBUG	processor/processor.go:175	operation handler is marked as finished	{"OperationID": "b0a49790-0534-41c0-808c-915ef728ff8d"}
2024-09-17T16:12:35.766Z	DEBUG	processor/processor.go:81	Operation Processor stopping. Waiting for running operations...
2024-09-17T16:12:35.766Z	DEBUG	processor/processor.go:84	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/grpcinfo0000ms
🧪 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/backup_schedule0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/integration0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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/queries5001024ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateBackupSchedule
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-09-17T16:27:10.668Z	DEBUG	queries/read.go:144	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-09-17T16:27:10.669Z	DEBUG	queries/write.go:472	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_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-09-17T16:27:10.669Z	DEBUG	queries/write.go:472	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-17T16:27:10.670Z	DEBUG	queries/write.go:472	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
=== RUN   TestQueryBuilder_CreateBackupSchedule
2024-09-17T16:27:10.670Z	DEBUG	queries/write.go:472	write query	{"yql": "UPSERT INTO BackupSchedules (id, container_id, database, endpoint, name, active, crontab, ttl, paths, initiated, created_at, recovery_point_objective, last_backup_id, next_launch) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $name_0, $active_0, $crontab_0, $ttl_0, $paths_0, $initiated_0, $created_at_0, $recovery_point_objective_0, $last_backup_id_0, $next_launch_0)"}
--- PASS: TestQueryBuilder_CreateBackupSchedule (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers23001038ms
🧪 Tests
  • 🟢TestDBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestDBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestDBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestDBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T16:27:11.280Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestDBOperationHandlerPendingOperationCompletedSuccessfully
2024-09-17T16:27:11.280Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestDBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T16:27:11.281Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-17T16:27:11.281Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:27:11.281Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a8ef2af4-8210-4afb-a2e2-a229c38d38b2", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T16:27:11.282Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:27:11.282Z	INFO	handlers/utils.go:48	getting operation status	{"id": "61f23acd-1f3f-4ebd-a89b-b46e5110ec5f", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-17T16:27:11.282Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:27:11.282Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c3e3c916-d02b-4ddd-833b-d731e43f1644", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T16:27:11.282Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:27:11.282Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a8d78f03-3c45-43db-96cf-a842785f3d2a", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T16:27:11.282Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "a8d78f03-3c45-43db-96cf-a842785f3d2a", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-17T16:27:11.283Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:27:11.283Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6f3029ab-80ca-49d0-a5d1-01fba35635c3", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T16:27:11.283Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "6f3029ab-80ca-49d0-a5d1-01fba35635c3", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-17T16:27:11.283Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:27:11.283Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a9a7bf07-1df8-46c0-a415-ab34314b9438", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-17T16:27:11.283Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:27:11.283Z	INFO	handlers/utils.go:48	getting operation status	{"id": "f00f0d2a-5bff-4911-9c10-49196dc9a659", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-17T16:27:11.284Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-17T16:27:11.284Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0687bacd-9ff8-4b96-b619-9cff885c4f98", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T16:27:11.284Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "0687bacd-9ff8-4b96-b619-9cff885c4f98", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-17T16:27:11.284Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:27:11.284Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e4a77185-e9d4-492b-93c1-af3aa95d5c37", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T16:27:11.284Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "e4a77185-e9d4-492b-93c1-af3aa95d5c37", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-17T16:27:11.284Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:27:11.284Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5027b9c6-31f4-42ed-83f6-cf1b800317c8", "type": "RB", "ydb_operation_id": "1"}
2024-09-17T16:27:11.285Z	INFO	handlers/utils.go:71	received retriable error	{"id": "5027b9c6-31f4-42ed-83f6-cf1b800317c8", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-17T16:27:11.285Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:27:11.285Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0f538b53-4ce2-4efe-8760-960901f782bd", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-17T16:27:11.285Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:27:11.285Z	INFO	handlers/utils.go:48	getting operation status	{"id": "bcbbf89f-6869-4e76-994c-1143a9b58db3", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-17T16:27:11.285Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:27:11.285Z	INFO	handlers/utils.go:48	getting operation status	{"id": "67901384-8391-4e83-9814-52fdb21cebaa", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-17T16:27:11.286Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:27:11.286Z	INFO	handlers/utils.go:48	getting operation status	{"id": "f3523e73-e40b-4ea2-8b9e-455f5a0d6d09", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-17T16:27:11.286Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:27:11.286Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2227999c-a976-40de-9dc2-dcaa4d2a753b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-17T16:27:11.286Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:27:11.286Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3948555f-037b-4765-8352-34148f56440e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-17T16:27:11.286Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:27:11.287Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ac5b2da6-00ec-4b0d-8b8f-3836bc143aa2", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-17T16:27:11.287Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-17T16:27:11.287Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2fd8918b-c83d-4f94-8622-8a92de7ba83d", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-17T16:27:11.287Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:27:11.288Z	INFO	handlers/utils.go:48	getting operation status	{"id": "cd8920fd-b7eb-44ce-b09d-8539e85e9d6a", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-17T16:27:11.288Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-17T16:27:11.288Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c9eb66b7-f0f6-49f0-bdb3-0d2570b6bffa", "type": "TB", "ydb_operation_id": "1"}
2024-09-17T16:27:11.288Z	INFO	handlers/utils.go:71	received retriable error	{"id": "c9eb66b7-f0f6-49f0-bdb3-0d2570b6bffa", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2001022ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-17T16:27:11.271Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-09-17T16:27:11.272Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "b0da8c26-bf2a-4480-97ed-4743f01e93b1", "OperationID": "4ea69841-6c02-457b-a874-e74c4d5d9a3e", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 4ea69841-6c02-457b-a874-e74c4d5d9a3e, type TB, state PENDING"}
2024-09-17T16:27:11.272Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "7d2323a3-bd73-4c85-842a-355e5afb8e8a", "OperationID": "4ea69841-6c02-457b-a874-e74c4d5d9a3e", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 4ea69841-6c02-457b-a874-e74c4d5d9a3e, type TB, state PENDING"}
2024-09-17T16:27:11.272Z	DEBUG	processor/processor.go:155	start operation handler	{"RunID": "18204903-d1c2-414b-a0c7-ee01052b19cb", "OperationID": "4ea69841-6c02-457b-a874-e74c4d5d9a3e", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 4ea69841-6c02-457b-a874-e74c4d5d9a3e, type TB, state PENDING"}
2024-09-17T16:27:11.272Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"RunID": "18204903-d1c2-414b-a0c7-ee01052b19cb", "OperationID": "4ea69841-6c02-457b-a874-e74c4d5d9a3e", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 4ea69841-6c02-457b-a874-e74c4d5d9a3e, type TB, state PENDING"}
2024-09-17T16:27:11.272Z	DEBUG	processor/processor.go:167	operation handler finished successfully	{"RunID": "18204903-d1c2-414b-a0c7-ee01052b19cb", "OperationID": "4ea69841-6c02-457b-a874-e74c4d5d9a3e", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 4ea69841-6c02-457b-a874-e74c4d5d9a3e, type TB, state DONE"}
2024-09-17T16:27:11.272Z	DEBUG	processor/processor.go:183	operation handler is marked as finished	{"OperationID": "4ea69841-6c02-457b-a874-e74c4d5d9a3e"}
2024-09-17T16:27:11.272Z	DEBUG	processor/processor.go:81	Operation Processor stopping. Waiting for running operations...
2024-09-17T16:27:11.272Z	DEBUG	processor/processor.go:84	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/grpcinfo0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001030ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/backup_schedule0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 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-281 branch 2 times, most recently from 24872cc to e619e26 Compare September 23, 2024 20:43
Copy link

📝 Test results

ydbcp

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/integration0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0001ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/backup_operations2001038ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 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/queries5001022ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateBackupSchedule
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-09-23T20:45:10.628Z	DEBUG	queries/read.go:144	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-09-23T20:45:10.629Z	DEBUG	queries/write.go:471	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_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-09-23T20:45:10.630Z	DEBUG	queries/write.go:471	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-23T20:45:10.631Z	DEBUG	queries/write.go:471	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
=== RUN   TestQueryBuilder_CreateBackupSchedule
2024-09-23T20:45:10.631Z	DEBUG	queries/write.go:471	write query	{"yql": "UPSERT INTO BackupSchedules (id, container_id, database, endpoint, name, active, crontab, ttl, paths, initiated, created_at, recovery_point_objective, last_backup_id, next_launch) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $name_0, $active_0, $crontab_0, $ttl_0, $paths_0, $initiated_0, $created_at_0, $recovery_point_objective_0, $last_backup_id_0, $next_launch_0)"}
--- PASS: TestQueryBuilder_CreateBackupSchedule (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers24001035ms
🧪 Tests
  • 🟢TestBackupScheduleHandler
  • 🟢TestDBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestDBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestDBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestDBOperationHandlerDeadlineExceededForRunningOperation
2024-09-23T20:45:11.321Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestDBOperationHandlerPendingOperationCompletedSuccessfully
2024-09-23T20:45:11.322Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestDBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-23T20:45:11.322Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-23T20:45:11.322Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-23T20:45:11.322Z	INFO	handlers/utils.go:48	getting operation status	{"id": "45468223-f71f-45b5-a53e-665705c5f876", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-23T20:45:11.323Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-23T20:45:11.323Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b3aac6f5-6833-46fb-96f7-d02f67589755", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-23T20:45:11.323Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-23T20:45:11.323Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1cfe21d8-07bf-4313-ac7a-bb05946c96ef", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-23T20:45:11.323Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-23T20:45:11.323Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2390b95f-1795-411e-adc0-5e6ce209a86d", "type": "RB", "ydb_operation_id": "1"}
2024-09-23T20:45:11.324Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "2390b95f-1795-411e-adc0-5e6ce209a86d", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-23T20:45:11.324Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-23T20:45:11.324Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b46488d3-f855-4f42-9ee9-148cefef8de4", "type": "RB", "ydb_operation_id": "1"}
2024-09-23T20:45:11.324Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "b46488d3-f855-4f42-9ee9-148cefef8de4", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-23T20:45:11.324Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-23T20:45:11.324Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b23a488f-8c2e-4e41-884c-98495d522bda", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-23T20:45:11.324Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-23T20:45:11.324Z	INFO	handlers/utils.go:48	getting operation status	{"id": "242b6a81-d804-474d-87ff-32fd55f5d7fe", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-23T20:45:11.325Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-23T20:45:11.325Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2e61478f-0207-457a-826b-d0e302731a59", "type": "RB", "ydb_operation_id": "1"}
2024-09-23T20:45:11.325Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "2e61478f-0207-457a-826b-d0e302731a59", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-23T20:45:11.325Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-23T20:45:11.325Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ffc8d878-64d4-4616-aeef-479ba8249cbd", "type": "RB", "ydb_operation_id": "1"}
2024-09-23T20:45:11.325Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "ffc8d878-64d4-4616-aeef-479ba8249cbd", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-23T20:45:11.325Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-23T20:45:11.325Z	INFO	handlers/utils.go:48	getting operation status	{"id": "af9f0340-a708-4792-a4e3-d79153ac8531", "type": "RB", "ydb_operation_id": "1"}
2024-09-23T20:45:11.325Z	INFO	handlers/utils.go:71	received retriable error	{"id": "af9f0340-a708-4792-a4e3-d79153ac8531", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestBackupScheduleHandler
2024-09-23T20:45:11.326Z	INFO	backup_operations/make_backup.go:145	Export operation started	{"ClientDSN": "mydb.valid.commydb", "S3DestinationPrefix": "mydb/20240923_204511", "ClientOperationID": "8d26ccf5-9e2d-47e9-b299-761fc0b33931"}
--- PASS: TestBackupScheduleHandler (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-23T20:45:11.327Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-23T20:45:11.328Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9f68c9d8-78d0-460e-b349-68c11d073e24", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-23T20:45:11.329Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-23T20:45:11.329Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a501bfe1-766f-4be2-af1f-09c7824d72d4", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-23T20:45:11.329Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-23T20:45:11.329Z	INFO	handlers/utils.go:48	getting operation status	{"id": "61c0ea80-2f75-423b-a16a-70f858ba6a73", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-23T20:45:11.329Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-23T20:45:11.329Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b9eaed4f-7f3a-4f25-9862-cea73590a27a", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-23T20:45:11.330Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-23T20:45:11.330Z	INFO	handlers/utils.go:48	getting operation status	{"id": "32284cad-5ab8-4fc2-a3b6-16d2be960622", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-23T20:45:11.330Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-23T20:45:11.330Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7e4d9eff-3352-4c5b-94fd-e60ff814f639", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-23T20:45:11.330Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-23T20:45:11.330Z	INFO	handlers/utils.go:48	getting operation status	{"id": "639fea44-8094-4c13-aa83-18893a3c51cd", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-23T20:45:11.330Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-23T20:45:11.330Z	INFO	handlers/utils.go:48	getting operation status	{"id": "66a76845-c508-405f-b36c-26ef4aa4e7dd", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-23T20:45:11.331Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-23T20:45:11.331Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b08bf49a-d015-4453-8046-3f175d0a2c78", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-23T20:45:11.331Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-23T20:45:11.331Z	INFO	handlers/utils.go:48	getting operation status	{"id": "496f836c-973a-4405-b62c-bc9e09a2b2f5", "type": "TB", "ydb_operation_id": "1"}
2024-09-23T20:45:11.331Z	INFO	handlers/utils.go:71	received retriable error	{"id": "496f836c-973a-4405-b62c-bc9e09a2b2f5", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2001018.9999999999999ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-23T20:45:11.557Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-09-23T20:45:11.558Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "4e478ae2-5124-4998-ba74-44cd63ec7d3c", "OperationID": "7ceba6bf-6f24-43ef-b847-d5a649008992", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 7ceba6bf-6f24-43ef-b847-d5a649008992, type TB, state PENDING"}
2024-09-23T20:45:11.558Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "cdac5589-7a9c-4031-9207-f98489b27f8f", "OperationID": "7ceba6bf-6f24-43ef-b847-d5a649008992", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 7ceba6bf-6f24-43ef-b847-d5a649008992, type TB, state PENDING"}
2024-09-23T20:45:11.558Z	DEBUG	processor/processor.go:147	start operation handler	{"RunID": "47328376-8c23-4ff8-880f-01e1a269ff2d", "OperationID": "7ceba6bf-6f24-43ef-b847-d5a649008992", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 7ceba6bf-6f24-43ef-b847-d5a649008992, type TB, state PENDING"}
2024-09-23T20:45:11.558Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"RunID": "47328376-8c23-4ff8-880f-01e1a269ff2d", "OperationID": "7ceba6bf-6f24-43ef-b847-d5a649008992", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 7ceba6bf-6f24-43ef-b847-d5a649008992, type TB, state PENDING"}
2024-09-23T20:45:11.558Z	DEBUG	processor/processor.go:159	operation handler finished successfully	{"RunID": "47328376-8c23-4ff8-880f-01e1a269ff2d", "OperationID": "7ceba6bf-6f24-43ef-b847-d5a649008992", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 7ceba6bf-6f24-43ef-b847-d5a649008992, type TB, state DONE"}
2024-09-23T20:45:11.558Z	DEBUG	processor/processor.go:175	operation handler is marked as finished	{"OperationID": "7ceba6bf-6f24-43ef-b847-d5a649008992"}
2024-09-23T20:45:11.558Z	DEBUG	processor/processor.go:81	Operation Processor stopping. Waiting for running operations...
2024-09-23T20:45:11.558Z	DEBUG	processor/processor.go:84	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/grpcinfo0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/services/backup0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/services/backup_schedule0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/ttl_watcher0001016ms
🧪 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 September 24, 2024 09:33
Copy link

📝 Test results

ydbcp

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/integration0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/backup_operations2001031ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 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/queries5000ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateBackupSchedule
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-09-23T20:45:10.628Z	DEBUG	queries/read.go:144	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-09-23T20:45:10.629Z	DEBUG	queries/write.go:471	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_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-09-23T20:45:10.630Z	DEBUG	queries/write.go:471	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-23T20:45:10.631Z	DEBUG	queries/write.go:471	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
=== RUN   TestQueryBuilder_CreateBackupSchedule
2024-09-23T20:45:10.631Z	DEBUG	queries/write.go:471	write query	{"yql": "UPSERT INTO BackupSchedules (id, container_id, database, endpoint, name, active, crontab, ttl, paths, initiated, created_at, recovery_point_objective, last_backup_id, next_launch) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $name_0, $active_0, $crontab_0, $ttl_0, $paths_0, $initiated_0, $created_at_0, $recovery_point_objective_0, $last_backup_id_0, $next_launch_0)"}
--- PASS: TestQueryBuilder_CreateBackupSchedule (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers24001038ms
🧪 Tests
  • 🟢TestBackupScheduleHandler
  • 🟢TestDBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestDBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestDBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestDBOperationHandlerDeadlineExceededForRunningOperation
2024-09-24T09:32:38.813Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestDBOperationHandlerPendingOperationCompletedSuccessfully
2024-09-24T09:32:38.813Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestDBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-24T09:32:38.814Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-24T09:32:38.814Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-24T09:32:38.814Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7969c640-abb7-4b05-8393-26d067e87b42", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-24T09:32:38.815Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-24T09:32:38.815Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ef42c187-e20e-481a-a4f9-580e0061b9a8", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-24T09:32:38.815Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-24T09:32:38.815Z	INFO	handlers/utils.go:48	getting operation status	{"id": "06a56d1c-a052-49b9-8db1-92498544cf80", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-24T09:32:38.815Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-24T09:32:38.815Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c3b94118-ec94-496f-b3be-c374adb1d1a5", "type": "RB", "ydb_operation_id": "1"}
2024-09-24T09:32:38.815Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "c3b94118-ec94-496f-b3be-c374adb1d1a5", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-24T09:32:38.815Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-24T09:32:38.815Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e3c84ac6-2af3-46fd-a948-ace9414be911", "type": "RB", "ydb_operation_id": "1"}
2024-09-24T09:32:38.815Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "e3c84ac6-2af3-46fd-a948-ace9414be911", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-24T09:32:38.816Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-24T09:32:38.816Z	INFO	handlers/utils.go:48	getting operation status	{"id": "88dce2a9-a2a8-4d74-9c95-76d1b3e11cad", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-24T09:32:38.816Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-24T09:32:38.816Z	INFO	handlers/utils.go:48	getting operation status	{"id": "941ade79-f816-4b9d-bb93-d4036a356c93", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-24T09:32:38.816Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-24T09:32:38.816Z	INFO	handlers/utils.go:48	getting operation status	{"id": "54c9d66e-ab96-406d-b51f-c55160c9f4f1", "type": "RB", "ydb_operation_id": "1"}
2024-09-24T09:32:38.816Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "54c9d66e-ab96-406d-b51f-c55160c9f4f1", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-24T09:32:38.817Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-24T09:32:38.817Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8c11e8bc-1deb-41d1-a7f9-67b2bc72c6f2", "type": "RB", "ydb_operation_id": "1"}
2024-09-24T09:32:38.817Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "8c11e8bc-1deb-41d1-a7f9-67b2bc72c6f2", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-24T09:32:38.817Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-24T09:32:38.817Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1ab65471-7fa7-46bb-883d-45f2f7d90878", "type": "RB", "ydb_operation_id": "1"}
2024-09-24T09:32:38.817Z	INFO	handlers/utils.go:71	received retriable error	{"id": "1ab65471-7fa7-46bb-883d-45f2f7d90878", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestBackupScheduleHandler
2024-09-24T09:32:38.817Z	INFO	backup_operations/make_backup.go:145	Export operation started	{"ClientDSN": "mydb.valid.commydb", "S3DestinationPrefix": "mydb/20240924_093238", "ClientOperationID": "64db8d6c-108a-4acd-9a09-8cc22b63bfac"}
--- PASS: TestBackupScheduleHandler (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-24T09:32:38.818Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-24T09:32:38.818Z	INFO	handlers/utils.go:48	getting operation status	{"id": "843dc5e6-a494-4d75-ad05-69662e8d095d", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-24T09:32:38.818Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-24T09:32:38.819Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1e6b71e1-c950-4059-9306-f7c967a5e92e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-24T09:32:38.819Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-24T09:32:38.819Z	INFO	handlers/utils.go:48	getting operation status	{"id": "857024c5-8066-4433-85f8-2765d3f103b5", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-24T09:32:38.819Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-24T09:32:38.819Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b6c10c27-267f-4e74-8f65-c33dcbfe9619", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-24T09:32:38.819Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-24T09:32:38.819Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d7be6b1e-4050-49c5-aed4-b004ae784788", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-24T09:32:38.820Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-24T09:32:38.820Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b677e4d6-ae6e-4355-b409-bad6562b60a7", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-24T09:32:38.820Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-24T09:32:38.820Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5dad7c6a-5e7a-4e8a-8004-229628166c94", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-24T09:32:38.820Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-24T09:32:38.820Z	INFO	handlers/utils.go:48	getting operation status	{"id": "474cf668-d7ea-4dd6-b6e4-318ff0090b67", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-24T09:32:38.821Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-24T09:32:38.821Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b13f7fbe-7b94-4d1a-8cfe-6881fcd45e3d", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-24T09:32:38.821Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-24T09:32:38.821Z	INFO	handlers/utils.go:48	getting operation status	{"id": "18923c94-95c5-4da3-8880-474fef7498c0", "type": "TB", "ydb_operation_id": "1"}
2024-09-24T09:32:38.821Z	INFO	handlers/utils.go:71	received retriable error	{"id": "18923c94-95c5-4da3-8880-474fef7498c0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2001025ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-24T09:32:38.806Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-09-24T09:32:38.806Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "2467e0b5-bd1f-4306-9044-1ca0d9e08b8e", "OperationID": "9734e183-f113-4aa1-8bba-64825d0ce99f", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 9734e183-f113-4aa1-8bba-64825d0ce99f, type TB, state PENDING"}
2024-09-24T09:32:38.806Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "14b5a80e-7843-41b3-b3fe-bb3f21f4e081", "OperationID": "9734e183-f113-4aa1-8bba-64825d0ce99f", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 9734e183-f113-4aa1-8bba-64825d0ce99f, type TB, state PENDING"}
2024-09-24T09:32:38.807Z	DEBUG	processor/processor.go:147	start operation handler	{"RunID": "fed6d339-0c0a-49a5-b147-f69b4096a24d", "OperationID": "9734e183-f113-4aa1-8bba-64825d0ce99f", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 9734e183-f113-4aa1-8bba-64825d0ce99f, type TB, state PENDING"}
2024-09-24T09:32:38.807Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"RunID": "fed6d339-0c0a-49a5-b147-f69b4096a24d", "OperationID": "9734e183-f113-4aa1-8bba-64825d0ce99f", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 9734e183-f113-4aa1-8bba-64825d0ce99f, type TB, state PENDING"}
2024-09-24T09:32:38.807Z	DEBUG	processor/processor.go:159	operation handler finished successfully	{"RunID": "fed6d339-0c0a-49a5-b147-f69b4096a24d", "OperationID": "9734e183-f113-4aa1-8bba-64825d0ce99f", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 9734e183-f113-4aa1-8bba-64825d0ce99f, type TB, state DONE"}
2024-09-24T09:32:38.807Z	DEBUG	processor/processor.go:81	Operation Processor stopping. Waiting for running operations...
2024-09-24T09:32:38.807Z	DEBUG	processor/processor.go:175	operation handler is marked as finished	{"OperationID": "9734e183-f113-4aa1-8bba-64825d0ce99f"}
2024-09-24T09:32:38.807Z	DEBUG	processor/processor.go:84	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/grpcinfo0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/services/backup0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/services/backup_schedule0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/ttl_watcher0001020ms
🧪 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

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/integration0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/backup_operations2001034ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 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/queries5000ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateBackupSchedule
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-09-23T20:45:10.628Z	DEBUG	queries/read.go:144	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-09-23T20:45:10.629Z	DEBUG	queries/write.go:471	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_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-09-23T20:45:10.630Z	DEBUG	queries/write.go:471	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-23T20:45:10.631Z	DEBUG	queries/write.go:471	write query	{"yql": "UPDATE Backups SET status = $status_0, message = $message_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
=== RUN   TestQueryBuilder_CreateBackupSchedule
2024-09-23T20:45:10.631Z	DEBUG	queries/write.go:471	write query	{"yql": "UPSERT INTO BackupSchedules (id, container_id, database, endpoint, name, active, crontab, ttl, paths, initiated, created_at, recovery_point_objective, last_backup_id, next_launch) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $name_0, $active_0, $crontab_0, $ttl_0, $paths_0, $initiated_0, $created_at_0, $recovery_point_objective_0, $last_backup_id_0, $next_launch_0)"}
--- PASS: TestQueryBuilder_CreateBackupSchedule (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers24001043ms
🧪 Tests
  • 🟢TestBackupScheduleHandler
  • 🟢TestDBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestDBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestDBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestDBOperationHandlerDeadlineExceededForRunningOperation
2024-09-24T10:05:21.574Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestDBOperationHandlerPendingOperationCompletedSuccessfully
2024-09-24T10:05:21.575Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestDBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-24T10:05:21.575Z	INFO	handlers/delete_backup.go:38	DBOperationHandler	{"OperationMessage": ""}
--- PASS: TestDBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-24T10:05:21.575Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-24T10:05:21.575Z	INFO	handlers/utils.go:48	getting operation status	{"id": "07a6a4d9-6a8b-4b8f-89c0-d4296115f328", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-24T10:05:21.576Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-24T10:05:21.576Z	INFO	handlers/utils.go:48	getting operation status	{"id": "309760ae-07da-4b7e-8fe6-3ed0430cfece", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-24T10:05:21.576Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-24T10:05:21.576Z	INFO	handlers/utils.go:48	getting operation status	{"id": "85828ec5-44e9-4fe6-8211-73442b78ba61", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-24T10:05:21.577Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-24T10:05:21.577Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4494ce96-b235-410c-8be6-4d71a7381133", "type": "RB", "ydb_operation_id": "1"}
2024-09-24T10:05:21.577Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "4494ce96-b235-410c-8be6-4d71a7381133", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-24T10:05:21.577Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-24T10:05:21.577Z	INFO	handlers/utils.go:48	getting operation status	{"id": "53efb64a-b70e-4e39-a6ae-b790baf67dd0", "type": "RB", "ydb_operation_id": "1"}
2024-09-24T10:05:21.577Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "53efb64a-b70e-4e39-a6ae-b790baf67dd0", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-24T10:05:21.577Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-24T10:05:21.577Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e51fe409-22e0-4a7d-81e2-7d9554d898bb", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-24T10:05:21.578Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-24T10:05:21.578Z	INFO	handlers/utils.go:48	getting operation status	{"id": "503e8156-67e2-469f-bb42-1df133a43c81", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-24T10:05:21.578Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-24T10:05:21.578Z	INFO	handlers/utils.go:48	getting operation status	{"id": "541ffe2c-54fd-4675-8d17-40c76f981e5a", "type": "RB", "ydb_operation_id": "1"}
2024-09-24T10:05:21.578Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "541ffe2c-54fd-4675-8d17-40c76f981e5a", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-24T10:05:21.578Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-24T10:05:21.578Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4a64678f-cec3-449a-abe0-7d57aa4bbae7", "type": "RB", "ydb_operation_id": "1"}
2024-09-24T10:05:21.578Z	INFO	handlers/restore_backup.go:136	forgetting operation	{"id": "4a64678f-cec3-449a-abe0-7d57aa4bbae7", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-24T10:05:21.579Z	INFO	handlers/restore_backup.go:33	RBOperationHandler	{"OperationMessage": ""}
2024-09-24T10:05:21.579Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3e7c4a39-f2a8-4387-afbb-bbf68dd6244c", "type": "RB", "ydb_operation_id": "1"}
2024-09-24T10:05:21.579Z	INFO	handlers/utils.go:71	received retriable error	{"id": "3e7c4a39-f2a8-4387-afbb-bbf68dd6244c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestBackupScheduleHandler
2024-09-24T10:05:21.579Z	INFO	backup_operations/make_backup.go:145	Export operation started	{"ClientDSN": "mydb.valid.commydb", "S3DestinationPrefix": "mydb/20240924_100521", "ClientOperationID": "f116f47c-ff93-4d3b-aa85-1bc7c546030e"}
--- PASS: TestBackupScheduleHandler (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-24T10:05:21.580Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-24T10:05:21.580Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2821e723-b655-4727-b791-1d67f20502f8", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-24T10:05:21.580Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-24T10:05:21.580Z	INFO	handlers/utils.go:48	getting operation status	{"id": "606cc74b-bc8c-4781-bdc6-44ee42682fb5", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-24T10:05:21.580Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-24T10:05:21.580Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4c4d176d-c96f-4826-b7eb-15a4317c5ce4", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-24T10:05:21.581Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-24T10:05:21.581Z	INFO	handlers/utils.go:48	getting operation status	{"id": "28cd327b-e897-4096-8bc7-1effa47cab2e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-24T10:05:21.581Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-24T10:05:21.581Z	INFO	handlers/utils.go:48	getting operation status	{"id": "77224985-1e54-419e-899f-578a4a129805", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-24T10:05:21.581Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-24T10:05:21.581Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4c2135e2-8dac-4216-a237-34db5fe53a42", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-24T10:05:21.582Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-24T10:05:21.582Z	INFO	handlers/utils.go:48	getting operation status	{"id": "116f2e3d-67da-44f5-945d-4c9725b3a507", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-24T10:05:21.582Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": "operation was cancelled by user"}
2024-09-24T10:05:21.582Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ff667704-2f9e-460a-b699-7fbc18165c01", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-24T10:05:21.582Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-24T10:05:21.582Z	INFO	handlers/utils.go:48	getting operation status	{"id": "0c0468f7-d72b-4ed8-a4f4-c39b3fe230d4", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-24T10:05:21.582Z	INFO	handlers/take_backup.go:40	TBOperationHandler	{"OperationMessage": ""}
2024-09-24T10:05:21.583Z	INFO	handlers/utils.go:48	getting operation status	{"id": "365933ae-d3e6-44a0-8b4b-f252ef97d5c8", "type": "TB", "ydb_operation_id": "1"}
2024-09-24T10:05:21.583Z	INFO	handlers/utils.go:71	received retriable error	{"id": "365933ae-d3e6-44a0-8b4b-f252ef97d5c8", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2001024ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-24T10:05:21.563Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-09-24T10:05:21.563Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "460fc004-bd60-4207-bfb3-ca2f1e28f1bc", "OperationID": "3ddd05d3-4403-45bf-ae22-b5c0f8d39e4f", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 3ddd05d3-4403-45bf-ae22-b5c0f8d39e4f, type TB, state PENDING"}
2024-09-24T10:05:21.563Z	DEBUG	processor/processor.go:134	operation already running	{"RunID": "da251167-455f-4e5c-b803-8d35de3c49b4", "OperationID": "3ddd05d3-4403-45bf-ae22-b5c0f8d39e4f", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 3ddd05d3-4403-45bf-ae22-b5c0f8d39e4f, type TB, state PENDING"}
2024-09-24T10:05:21.563Z	DEBUG	processor/processor.go:147	start operation handler	{"RunID": "17a26b86-f89e-4a9a-92ea-ca48a6a0cc27", "OperationID": "3ddd05d3-4403-45bf-ae22-b5c0f8d39e4f", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 3ddd05d3-4403-45bf-ae22-b5c0f8d39e4f, type TB, state PENDING"}
2024-09-24T10:05:21.563Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"RunID": "17a26b86-f89e-4a9a-92ea-ca48a6a0cc27", "OperationID": "3ddd05d3-4403-45bf-ae22-b5c0f8d39e4f", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 3ddd05d3-4403-45bf-ae22-b5c0f8d39e4f, type TB, state PENDING"}
2024-09-24T10:05:21.564Z	DEBUG	processor/processor.go:159	operation handler finished successfully	{"RunID": "17a26b86-f89e-4a9a-92ea-ca48a6a0cc27", "OperationID": "3ddd05d3-4403-45bf-ae22-b5c0f8d39e4f", "OperationType": "TB", "OperationState": "PENDING", "operation": "Operation, id 3ddd05d3-4403-45bf-ae22-b5c0f8d39e4f, type TB, state DONE"}
2024-09-24T10:05:21.564Z	DEBUG	processor/processor.go:175	operation handler is marked as finished	{"OperationID": "3ddd05d3-4403-45bf-ae22-b5c0f8d39e4f"}
2024-09-24T10:05:21.564Z	DEBUG	processor/processor.go:81	Operation Processor stopping. Waiting for running operations...
2024-09-24T10:05:21.564Z	DEBUG	processor/processor.go:84	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/grpcinfo0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/services/backup0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/services/backup_schedule0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/ttl_watcher0001018ms
🧪 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-281 branch 3 times, most recently from 4f2b7ee to 1cc3267 Compare September 24, 2024 15:52
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.

1 participant