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

add audit fields #40

Merged
merged 1 commit into from
Aug 21, 2024
Merged

add audit fields #40

merged 1 commit into from
Aug 21, 2024

Conversation

qrort
Copy link
Collaborator

@qrort qrort commented Aug 20, 2024

No description provided.

Copy link

📝 Test results

ydbcp

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4007ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-20T16:32:43.322Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-20T16:32:43.322Z	DEBUG	queries/write.go:242	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-20T16:32:43.322Z	DEBUG	queries/write.go:242	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, container_id, database, endpoint, backup_id, initiated, created_at, operation_id, message) VALUES ($id_1, $type_1, $status_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $initiated_1, $created_at_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-20T16:32:43.322Z	DEBUG	queries/write.go:242	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, container_id, database, endpoint, backup_id, initiated, created_at, operation_id, message) VALUES ($id_1, $type_1, $status_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $initiated_1, $created_at_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers200021ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-20T16:32:43.881Z	INFO	handlers/restore_backup.go:32	received operation	{"id": "07a5e196-51d5-4870-961e-d3508faeba72", "type": "RB", "state": "PENDING", "message": ""}
2024-08-20T16:32:43.881Z	INFO	handlers/utils.go:47	getting operation status	{"id": "07a5e196-51d5-4870-961e-d3508faeba72", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-20T16:32:43.881Z	INFO	handlers/restore_backup.go:32	received operation	{"id": "340c7146-1fc3-4d84-804d-d80535bd869c", "type": "RB", "state": "PENDING", "message": ""}
2024-08-20T16:32:43.881Z	INFO	handlers/utils.go:47	getting operation status	{"id": "340c7146-1fc3-4d84-804d-d80535bd869c", "type": "RB", "ydb_operation_id": "1"}
2024-08-20T16:32:43.881Z	INFO	handlers/utils.go:100	cancelling operation	{"reason": "TTL", "id": "340c7146-1fc3-4d84-804d-d80535bd869c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-20T16:32:43.881Z	INFO	handlers/restore_backup.go:32	received operation	{"id": "9ba19e46-97a5-47d7-be4c-442b25b68545", "type": "RB", "state": "PENDING", "message": ""}
2024-08-20T16:32:43.881Z	INFO	handlers/utils.go:47	getting operation status	{"id": "9ba19e46-97a5-47d7-be4c-442b25b68545", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-20T16:32:43.881Z	INFO	handlers/restore_backup.go:32	received operation	{"id": "c1cc7975-f6d7-47e1-9331-26bde2d0f216", "type": "RB", "state": "PENDING", "message": ""}
2024-08-20T16:32:43.881Z	INFO	handlers/utils.go:47	getting operation status	{"id": "c1cc7975-f6d7-47e1-9331-26bde2d0f216", "type": "RB", "ydb_operation_id": "1"}
2024-08-20T16:32:43.881Z	INFO	handlers/restore_backup.go:123	forgetting operation	{"id": "c1cc7975-f6d7-47e1-9331-26bde2d0f216", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-20T16:32:43.882Z	INFO	handlers/restore_backup.go:32	received operation	{"id": "9a21b1d8-bf58-4e7c-abd9-a13f3f58e5ec", "type": "RB", "state": "PENDING", "message": ""}
2024-08-20T16:32:43.882Z	INFO	handlers/utils.go:47	getting operation status	{"id": "9a21b1d8-bf58-4e7c-abd9-a13f3f58e5ec", "type": "RB", "ydb_operation_id": "1"}
2024-08-20T16:32:43.882Z	INFO	handlers/restore_backup.go:123	forgetting operation	{"id": "9a21b1d8-bf58-4e7c-abd9-a13f3f58e5ec", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-20T16:32:43.882Z	INFO	handlers/restore_backup.go:32	received operation	{"id": "6effab09-ac86-4301-96f1-6b0ce2c790d0", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-20T16:32:43.882Z	INFO	handlers/utils.go:47	getting operation status	{"id": "6effab09-ac86-4301-96f1-6b0ce2c790d0", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-20T16:32:43.882Z	INFO	handlers/restore_backup.go:32	received operation	{"id": "ff7c8191-bdef-4dd6-be0c-d236df164220", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-20T16:32:43.882Z	INFO	handlers/utils.go:47	getting operation status	{"id": "ff7c8191-bdef-4dd6-be0c-d236df164220", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-20T16:32:43.882Z	INFO	handlers/restore_backup.go:32	received operation	{"id": "5a3cf337-e3b5-49ac-ae68-86339dc04fdf", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-20T16:32:43.882Z	INFO	handlers/utils.go:47	getting operation status	{"id": "5a3cf337-e3b5-49ac-ae68-86339dc04fdf", "type": "RB", "ydb_operation_id": "1"}
2024-08-20T16:32:43.882Z	INFO	handlers/restore_backup.go:123	forgetting operation	{"id": "5a3cf337-e3b5-49ac-ae68-86339dc04fdf", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-20T16:32:43.882Z	INFO	handlers/restore_backup.go:32	received operation	{"id": "dc2817aa-3e0d-448e-a04f-45f07cd7b778", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-20T16:32:43.882Z	INFO	handlers/utils.go:47	getting operation status	{"id": "dc2817aa-3e0d-448e-a04f-45f07cd7b778", "type": "RB", "ydb_operation_id": "1"}
2024-08-20T16:32:43.882Z	INFO	handlers/restore_backup.go:123	forgetting operation	{"id": "dc2817aa-3e0d-448e-a04f-45f07cd7b778", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-20T16:32:43.882Z	INFO	handlers/restore_backup.go:32	received operation	{"id": "5ed6d257-cf20-49b9-9b00-c5a6a033be97", "type": "RB", "state": "PENDING", "message": ""}
2024-08-20T16:32:43.882Z	INFO	handlers/utils.go:47	getting operation status	{"id": "5ed6d257-cf20-49b9-9b00-c5a6a033be97", "type": "RB", "ydb_operation_id": "1"}
2024-08-20T16:32:43.882Z	INFO	handlers/utils.go:70	received retriable error	{"id": "5ed6d257-cf20-49b9-9b00-c5a6a033be97", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-20T16:32:43.882Z	INFO	handlers/utils.go:47	getting operation status	{"id": "e2d37f74-ce5f-4625-910b-f1793158f2db", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-20T16:32:43.882Z	INFO	handlers/utils.go:47	getting operation status	{"id": "311c214d-2aee-4e07-964e-79998959578d", "type": "TB", "ydb_operation_id": "1"}
2024-08-20T16:32:43.882Z	INFO	handlers/utils.go:100	cancelling operation	{"reason": "TTL", "id": "311c214d-2aee-4e07-964e-79998959578d", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-20T16:32:43.882Z	INFO	handlers/utils.go:47	getting operation status	{"id": "c8afc23c-5890-4db7-ae6d-a1035d8a406a", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-20T16:32:43.882Z	INFO	handlers/utils.go:47	getting operation status	{"id": "b8af3781-dd18-459e-bfdb-d1a460e98c7d", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-20T16:32:43.882Z	INFO	handlers/utils.go:47	getting operation status	{"id": "2b93b617-d61b-4b12-91a0-ea837ae08f9d", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-20T16:32:43.882Z	INFO	handlers/utils.go:47	getting operation status	{"id": "7ef9c8a0-b588-476c-8d9d-101665088bc0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-20T16:32:43.882Z	INFO	handlers/utils.go:47	getting operation status	{"id": "6e23b44b-6c43-4be0-9142-ec3ade6f4cf3", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-20T16:32:43.883Z	INFO	handlers/utils.go:47	getting operation status	{"id": "2afe1ba3-e021-4969-8557-8d7bab622618", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-20T16:32:43.883Z	INFO	handlers/utils.go:47	getting operation status	{"id": "18da76b4-de21-45e0-8b4e-6d2455dc786b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-20T16:32:43.883Z	INFO	handlers/utils.go:47	getting operation status	{"id": "b35ee629-0f94-4a89-aee2-e99c7ac05420", "type": "TB", "ydb_operation_id": "1"}
2024-08-20T16:32:43.883Z	INFO	handlers/utils.go:70	received retriable error	{"id": "b35ee629-0f94-4a89-aee2-e99c7ac05420", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor20010ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-20T16:32:43.870Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-20T16:32:43.870Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 896516fb-5cba-4e07-89ed-34227962ab59, type TB, state PENDING"}
2024-08-20T16:32:43.870Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 896516fb-5cba-4e07-89ed-34227962ab59, type TB, state PENDING"}
2024-08-20T16:32:43.870Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id 896516fb-5cba-4e07-89ed-34227962ab59, type TB, state PENDING"}
2024-08-20T16:32:43.870Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"operation": "Operation, id 896516fb-5cba-4e07-89ed-34227962ab59, type TB, state PENDING"}
2024-08-20T16:32:43.870Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "896516fb-5cba-4e07-89ed-34227962ab59"}
2024-08-20T16:32:43.870Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 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)

cmd/ydbcp/main.go Outdated Show resolved Hide resolved
internal/types/backup.go Outdated Show resolved Hide resolved
@qrort qrort force-pushed the audit-fields branch 2 times, most recently from 15c7376 to 5b2faf5 Compare August 21, 2024 15:05
Copy link

📝 Test results

ydbcp

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4007ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-21T15:06:20.086Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-21T15:06:20.086Z	DEBUG	queries/write.go:264	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-21T15:06:20.086Z	DEBUG	queries/write.go:264	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-21T15:06:20.086Z	DEBUG	queries/write.go:264	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers200012ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-21T15:06:20.560Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "b8783593-3b28-4aea-90f3-8a24ab366eaa", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:06:20.560Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b8783593-3b28-4aea-90f3-8a24ab366eaa", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-21T15:06:20.560Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "a39dd7b3-4d6d-4b39-9d47-17365b8adb53", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:06:20.560Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a39dd7b3-4d6d-4b39-9d47-17365b8adb53", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:06:20.560Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "a39dd7b3-4d6d-4b39-9d47-17365b8adb53", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-21T15:06:20.560Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "50ba1a0a-7ef3-4d9c-96ec-2ff9e2119d96", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:06:20.560Z	INFO	handlers/utils.go:48	getting operation status	{"id": "50ba1a0a-7ef3-4d9c-96ec-2ff9e2119d96", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-21T15:06:20.560Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "f82734a6-5309-435d-a832-c0a0ca338f38", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:06:20.560Z	INFO	handlers/utils.go:48	getting operation status	{"id": "f82734a6-5309-435d-a832-c0a0ca338f38", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:06:20.560Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "f82734a6-5309-435d-a832-c0a0ca338f38", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-21T15:06:20.560Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "6dffbc37-731e-4a41-8463-b09003c050b7", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:06:20.560Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6dffbc37-731e-4a41-8463-b09003c050b7", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:06:20.560Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "6dffbc37-731e-4a41-8463-b09003c050b7", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-21T15:06:20.560Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "1043b8a3-82f3-4a5f-a3b2-e7be728d0ad2", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:06:20.560Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1043b8a3-82f3-4a5f-a3b2-e7be728d0ad2", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-21T15:06:20.560Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "f6e4cb4b-21dc-4775-b270-09011067c1e5", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:06:20.560Z	INFO	handlers/utils.go:48	getting operation status	{"id": "f6e4cb4b-21dc-4775-b270-09011067c1e5", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-21T15:06:20.560Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "c66c3054-46a4-4b0c-b3fd-1ef28693c5b3", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:06:20.560Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c66c3054-46a4-4b0c-b3fd-1ef28693c5b3", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:06:20.560Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "c66c3054-46a4-4b0c-b3fd-1ef28693c5b3", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-21T15:06:20.560Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "46801877-1e1f-4653-abd5-e7da375e8ac7", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:06:20.560Z	INFO	handlers/utils.go:48	getting operation status	{"id": "46801877-1e1f-4653-abd5-e7da375e8ac7", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:06:20.560Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "46801877-1e1f-4653-abd5-e7da375e8ac7", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-21T15:06:20.560Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "249ea5d7-10c0-4b3c-b006-2dd17f2506cd", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:06:20.560Z	INFO	handlers/utils.go:48	getting operation status	{"id": "249ea5d7-10c0-4b3c-b006-2dd17f2506cd", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:06:20.560Z	INFO	handlers/utils.go:71	received retriable error	{"id": "249ea5d7-10c0-4b3c-b006-2dd17f2506cd", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-21T15:06:20.560Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6f619914-eb59-4158-a86a-0fad6c217bc1", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-21T15:06:20.560Z	INFO	handlers/utils.go:48	getting operation status	{"id": "bc021f94-58b7-4425-8b7b-d8849c136155", "type": "TB", "ydb_operation_id": "1"}
2024-08-21T15:06:20.560Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "bc021f94-58b7-4425-8b7b-d8849c136155", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-21T15:06:20.560Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2841798c-533b-4628-9f46-d4ec3f237386", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-21T15:06:20.561Z	INFO	handlers/utils.go:48	getting operation status	{"id": "73505919-fd95-48a3-8e40-a98b8a48245b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-21T15:06:20.561Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a10aadeb-801e-49dc-a3a4-3a411343f32f", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-21T15:06:20.561Z	INFO	handlers/utils.go:48	getting operation status	{"id": "f851fbd2-7287-4a37-8015-0be36a6169fc", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-21T15:06:20.561Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e4501924-e79f-49f2-8279-476295d5c12b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-21T15:06:20.561Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e7fdd5c2-ec09-4c9e-a59e-b32463be77c9", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-21T15:06:20.561Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ff9317ce-30bb-42a7-a18e-115cabddf623", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-21T15:06:20.561Z	INFO	handlers/utils.go:48	getting operation status	{"id": "021f70e1-876f-449d-ab0c-404348686c31", "type": "TB", "ydb_operation_id": "1"}
2024-08-21T15:06:20.561Z	INFO	handlers/utils.go:71	received retriable error	{"id": "021f70e1-876f-449d-ab0c-404348686c31", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2007ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-21T15:06:20.719Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-21T15:06:20.719Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id de6e3c68-6d22-472b-966b-7bdcd3a42b2c, type TB, state PENDING"}
2024-08-21T15:06:20.719Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id de6e3c68-6d22-472b-966b-7bdcd3a42b2c, type TB, state PENDING"}
2024-08-21T15:06:20.719Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id de6e3c68-6d22-472b-966b-7bdcd3a42b2c, type TB, state PENDING"}
2024-08-21T15:06:20.719Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id de6e3c68-6d22-472b-966b-7bdcd3a42b2c, type TB, state PENDING"}
2024-08-21T15:06:20.719Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "de6e3c68-6d22-472b-966b-7bdcd3a42b2c"}
2024-08-21T15:06:20.719Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/services/backup0000ms
🧪 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

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4006ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-21T15:09:24.727Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-21T15:09:24.727Z	DEBUG	queries/write.go:264	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-21T15:09:24.727Z	DEBUG	queries/write.go:264	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-21T15:09:24.727Z	DEBUG	queries/write.go:264	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers200011ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-21T15:09:25.515Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "44463c7a-85e8-4b32-900d-5f737cb984a6", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:09:25.515Z	INFO	handlers/utils.go:48	getting operation status	{"id": "44463c7a-85e8-4b32-900d-5f737cb984a6", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-21T15:09:25.515Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "ed0d37ea-e2ed-4034-b0ad-7dfb86e0ba98", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:09:25.515Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ed0d37ea-e2ed-4034-b0ad-7dfb86e0ba98", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:09:25.515Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "ed0d37ea-e2ed-4034-b0ad-7dfb86e0ba98", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-21T15:09:25.515Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "1ff76209-0054-4636-93c6-48cd961473db", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:09:25.515Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1ff76209-0054-4636-93c6-48cd961473db", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-21T15:09:25.515Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "8dd85da1-8a20-4d84-b190-be9c24d371e9", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:09:25.515Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8dd85da1-8a20-4d84-b190-be9c24d371e9", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:09:25.515Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "8dd85da1-8a20-4d84-b190-be9c24d371e9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-21T15:09:25.515Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "c62bbdd6-83a9-4341-bd2d-bd8515ec73c1", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:09:25.515Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c62bbdd6-83a9-4341-bd2d-bd8515ec73c1", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:09:25.515Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "c62bbdd6-83a9-4341-bd2d-bd8515ec73c1", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-21T15:09:25.515Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "230fd197-66a2-46bd-ad88-bfe2b4a6e149", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:09:25.515Z	INFO	handlers/utils.go:48	getting operation status	{"id": "230fd197-66a2-46bd-ad88-bfe2b4a6e149", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-21T15:09:25.516Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "f41c2665-dac8-4c3e-91b3-3624a0c9e8dc", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:09:25.516Z	INFO	handlers/utils.go:48	getting operation status	{"id": "f41c2665-dac8-4c3e-91b3-3624a0c9e8dc", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-21T15:09:25.516Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "87f8579b-fbf0-48c2-85f7-34c994ef7268", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:09:25.516Z	INFO	handlers/utils.go:48	getting operation status	{"id": "87f8579b-fbf0-48c2-85f7-34c994ef7268", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:09:25.516Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "87f8579b-fbf0-48c2-85f7-34c994ef7268", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-21T15:09:25.516Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "4c768ab5-646f-410d-8ec3-645dd84a9942", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:09:25.516Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4c768ab5-646f-410d-8ec3-645dd84a9942", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:09:25.516Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "4c768ab5-646f-410d-8ec3-645dd84a9942", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-21T15:09:25.516Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "e65ba1e8-a02c-4acb-aa83-0265ca01caaa", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:09:25.516Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e65ba1e8-a02c-4acb-aa83-0265ca01caaa", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:09:25.516Z	INFO	handlers/utils.go:71	received retriable error	{"id": "e65ba1e8-a02c-4acb-aa83-0265ca01caaa", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-21T15:09:25.516Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c7dcf557-a6cd-44a1-a0ce-7cf9790379d8", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-21T15:09:25.516Z	INFO	handlers/utils.go:48	getting operation status	{"id": "914e22c7-6e21-48b2-9b08-c6ccda7b6b99", "type": "TB", "ydb_operation_id": "1"}
2024-08-21T15:09:25.516Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "914e22c7-6e21-48b2-9b08-c6ccda7b6b99", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-21T15:09:25.516Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5d36a89c-8022-4be6-8260-e9eb2adbee42", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-21T15:09:25.516Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ee6088ae-7a66-4858-96fe-9eb5a9ee7bac", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-21T15:09:25.516Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ce9ab865-f5b9-4011-bfc8-0f0f2860bd11", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-21T15:09:25.516Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5252b55b-2c94-4a06-a08f-b8d33864ba48", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-21T15:09:25.516Z	INFO	handlers/utils.go:48	getting operation status	{"id": "91940972-1315-4e92-ac4c-67e3daa8857b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-21T15:09:25.516Z	INFO	handlers/utils.go:48	getting operation status	{"id": "18e6957c-a2e7-43c0-9d29-100cb805d72a", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-21T15:09:25.516Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5cfcba3e-92cb-4276-89bb-0d68340fcdef", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-21T15:09:25.516Z	INFO	handlers/utils.go:48	getting operation status	{"id": "45f90435-ad15-499b-8e36-021029161192", "type": "TB", "ydb_operation_id": "1"}
2024-08-21T15:09:25.516Z	INFO	handlers/utils.go:71	received retriable error	{"id": "45f90435-ad15-499b-8e36-021029161192", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2008ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-21T15:09:26.077Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-21T15:09:26.077Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id a20a096b-1011-4cfb-9cd7-6cf091f56507, type TB, state PENDING"}
2024-08-21T15:09:26.077Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id a20a096b-1011-4cfb-9cd7-6cf091f56507, type TB, state PENDING"}
2024-08-21T15:09:26.077Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id a20a096b-1011-4cfb-9cd7-6cf091f56507, type TB, state PENDING"}
2024-08-21T15:09:26.077Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id a20a096b-1011-4cfb-9cd7-6cf091f56507, type TB, state PENDING"}
2024-08-21T15:09:26.077Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "a20a096b-1011-4cfb-9cd7-6cf091f56507"}
2024-08-21T15:09:26.077Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/services/backup0000ms
🧪 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

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4006ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-21T15:28:17.139Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-21T15:28:17.140Z	DEBUG	queries/write.go:264	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-21T15:28:17.140Z	DEBUG	queries/write.go:264	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-21T15:28:17.140Z	DEBUG	queries/write.go:264	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, message) VALUES ($id_1, $type_1, $status_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers200013ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-21T15:28:17.937Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "cdbc1174-7059-45b1-8793-58013e84a4af", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:28:17.937Z	INFO	handlers/utils.go:48	getting operation status	{"id": "cdbc1174-7059-45b1-8793-58013e84a4af", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-21T15:28:17.937Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "8f1bf5dd-b8bd-4593-b756-ca0bd65a62fb", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:28:17.937Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8f1bf5dd-b8bd-4593-b756-ca0bd65a62fb", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:28:17.937Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "8f1bf5dd-b8bd-4593-b756-ca0bd65a62fb", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-21T15:28:17.937Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "9ae07366-2a74-45e2-96a3-e029476fa87b", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:28:17.937Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9ae07366-2a74-45e2-96a3-e029476fa87b", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-21T15:28:17.937Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "b4aedee6-f8e3-4891-b5d5-1fc55e3926c9", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:28:17.937Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b4aedee6-f8e3-4891-b5d5-1fc55e3926c9", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:28:17.937Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "b4aedee6-f8e3-4891-b5d5-1fc55e3926c9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-21T15:28:17.937Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "d7a9495e-6b45-48ba-ba16-639a3b3b444b", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:28:17.937Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d7a9495e-6b45-48ba-ba16-639a3b3b444b", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:28:17.937Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "d7a9495e-6b45-48ba-ba16-639a3b3b444b", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-21T15:28:17.938Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "2eb62226-17ed-4b80-972f-5b32ea5c46dd", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:28:17.938Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2eb62226-17ed-4b80-972f-5b32ea5c46dd", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-21T15:28:17.938Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "e387cfe0-8633-4ff2-ae4c-21a09386d779", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:28:17.938Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e387cfe0-8633-4ff2-ae4c-21a09386d779", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-21T15:28:17.938Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "135a62aa-93d2-46e9-b66e-e42fe1717f55", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:28:17.938Z	INFO	handlers/utils.go:48	getting operation status	{"id": "135a62aa-93d2-46e9-b66e-e42fe1717f55", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:28:17.938Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "135a62aa-93d2-46e9-b66e-e42fe1717f55", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-21T15:28:17.938Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "aa78ea3e-eec1-481a-8ca2-43862e9ad818", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:28:17.938Z	INFO	handlers/utils.go:48	getting operation status	{"id": "aa78ea3e-eec1-481a-8ca2-43862e9ad818", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:28:17.938Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "aa78ea3e-eec1-481a-8ca2-43862e9ad818", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-21T15:28:17.938Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "62ef47ca-d0cc-4e57-8d68-3e0cf95a5394", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:28:17.938Z	INFO	handlers/utils.go:48	getting operation status	{"id": "62ef47ca-d0cc-4e57-8d68-3e0cf95a5394", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:28:17.938Z	INFO	handlers/utils.go:71	received retriable error	{"id": "62ef47ca-d0cc-4e57-8d68-3e0cf95a5394", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-21T15:28:17.938Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7840ea77-ed8e-43da-b21e-e2990c809264", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-21T15:28:17.938Z	INFO	handlers/utils.go:48	getting operation status	{"id": "78675d63-68e2-4f85-bb85-af8b9a419b48", "type": "TB", "ydb_operation_id": "1"}
2024-08-21T15:28:17.938Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "78675d63-68e2-4f85-bb85-af8b9a419b48", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-21T15:28:17.938Z	INFO	handlers/utils.go:48	getting operation status	{"id": "10f6d1b3-ac92-475c-87c5-69ade624f022", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-21T15:28:17.938Z	INFO	handlers/utils.go:48	getting operation status	{"id": "29bedfa3-d815-4252-a795-b4e1e3b1cc37", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-21T15:28:17.938Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2d99c6ab-ee9c-4c51-ab0e-d4440c28fbc7", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-21T15:28:17.938Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3445cc52-dcbd-49a5-b990-2ad424693864", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-21T15:28:17.938Z	INFO	handlers/utils.go:48	getting operation status	{"id": "dbf0f807-ee98-4c74-8b6f-d7d1733f7472", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-21T15:28:17.938Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1bd20235-2394-4a09-9d33-3ee071e6ff24", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-21T15:28:17.938Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d6f8612c-57df-495a-8a05-4a394639ca1c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-21T15:28:17.938Z	INFO	handlers/utils.go:48	getting operation status	{"id": "f4901d0a-edba-43cb-b742-7df3111287ce", "type": "TB", "ydb_operation_id": "1"}
2024-08-21T15:28:17.938Z	INFO	handlers/utils.go:71	received retriable error	{"id": "f4901d0a-edba-43cb-b742-7df3111287ce", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2008ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-21T15:28:18.507Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-21T15:28:18.507Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id afbe8377-deb0-40d5-a542-cf25982db7e8, type TB, state PENDING"}
2024-08-21T15:28:18.507Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id afbe8377-deb0-40d5-a542-cf25982db7e8, type TB, state PENDING"}
2024-08-21T15:28:18.507Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id afbe8377-deb0-40d5-a542-cf25982db7e8, type TB, state PENDING"}
2024-08-21T15:28:18.508Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id afbe8377-deb0-40d5-a542-cf25982db7e8, type TB, state PENDING"}
2024-08-21T15:28:18.508Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "afbe8377-deb0-40d5-a542-cf25982db7e8"}
2024-08-21T15:28:18.508Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/services/backup0000ms
🧪 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)

@qrort qrort merged commit 592a797 into main Aug 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants