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

Endpoint validation has been added #43

Merged
merged 3 commits into from
Aug 21, 2024
Merged

Endpoint validation has been added #43

merged 3 commits into from
Aug 21, 2024

Conversation

bma13
Copy link
Collaborator

@bma13 bma13 commented Aug 21, 2024

No description provided.

Copy link

📝 Test results

ydbcp

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4008ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-21T15:08:09.273Z	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:08:09.273Z	DEBUG	queries/write.go:236	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:08:09.274Z	DEBUG	queries/write.go:236	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-21T15:08:09.274Z	DEBUG	queries/write.go:236	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/handlers200025ms
🧪 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:08:09.884Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "115f6e32-e1e1-4441-ad7b-fc7d6d1d1af9", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:08:09.884Z	INFO	handlers/utils.go:46	getting operation status	{"id": "115f6e32-e1e1-4441-ad7b-fc7d6d1d1af9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-21T15:08:09.884Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "2d74c448-381a-4c1a-90f0-ca448094ce79", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:08:09.884Z	INFO	handlers/utils.go:46	getting operation status	{"id": "2d74c448-381a-4c1a-90f0-ca448094ce79", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:08:09.884Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "2d74c448-381a-4c1a-90f0-ca448094ce79", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-21T15:08:09.884Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "481da49a-71e6-4cb9-8633-fe8d2f3c79d9", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:08:09.884Z	INFO	handlers/utils.go:46	getting operation status	{"id": "481da49a-71e6-4cb9-8633-fe8d2f3c79d9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-21T15:08:09.884Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "d1c4287a-b889-404f-a68b-9ba09c83c5b0", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:08:09.884Z	INFO	handlers/utils.go:46	getting operation status	{"id": "d1c4287a-b889-404f-a68b-9ba09c83c5b0", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:08:09.884Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "d1c4287a-b889-404f-a68b-9ba09c83c5b0", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-21T15:08:09.884Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "af719ac8-b79e-4d34-ba3e-d66fcd848944", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:08:09.884Z	INFO	handlers/utils.go:46	getting operation status	{"id": "af719ac8-b79e-4d34-ba3e-d66fcd848944", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:08:09.884Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "af719ac8-b79e-4d34-ba3e-d66fcd848944", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-21T15:08:09.885Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "df8ca964-db25-484d-af2d-d7c366840699", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "df8ca964-db25-484d-af2d-d7c366840699", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-21T15:08:09.885Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "604db6ff-2dc7-431c-a91d-fd3b798c1cb1", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "604db6ff-2dc7-431c-a91d-fd3b798c1cb1", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-21T15:08:09.885Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "627d70af-4263-413b-b717-240840e6f66d", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "627d70af-4263-413b-b717-240840e6f66d", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:08:09.885Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "627d70af-4263-413b-b717-240840e6f66d", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-21T15:08:09.885Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "a25574ed-9b8b-48b7-9f1b-dbb8d2eebd08", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "a25574ed-9b8b-48b7-9f1b-dbb8d2eebd08", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:08:09.885Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "a25574ed-9b8b-48b7-9f1b-dbb8d2eebd08", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-21T15:08:09.885Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "06fe9bb0-fadb-47c0-8cc1-fa1716e2cd93", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "06fe9bb0-fadb-47c0-8cc1-fa1716e2cd93", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:69	received retriable error	{"id": "06fe9bb0-fadb-47c0-8cc1-fa1716e2cd93", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "43ef22c2-7f4d-4260-9756-07820e2e8a7b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "fc076682-f9f2-42b3-b445-888e609bd4b2", "type": "TB", "ydb_operation_id": "1"}
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "fc076682-f9f2-42b3-b445-888e609bd4b2", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "925229f4-d667-4a63-8fce-8dad46a9f041", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "18eda649-a910-4f21-aeb0-d365c554f1e0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "e549de13-74d3-422b-a73b-6ddbe26de39c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-21T15:08:09.886Z	INFO	handlers/utils.go:46	getting operation status	{"id": "a82c31cf-a31b-4e85-91c9-5b9839b42215", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-21T15:08:09.886Z	INFO	handlers/utils.go:46	getting operation status	{"id": "54053fea-66bf-4d57-b27b-f3054b1c3271", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-21T15:08:09.886Z	INFO	handlers/utils.go:46	getting operation status	{"id": "fea1a555-9f30-4623-8849-fd952f4588b6", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-21T15:08:09.886Z	INFO	handlers/utils.go:46	getting operation status	{"id": "27457b01-38dd-46d5-b556-2207527f9091", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-21T15:08:09.886Z	INFO	handlers/utils.go:46	getting operation status	{"id": "8316807f-8a3f-4067-972b-a98221002452", "type": "TB", "ydb_operation_id": "1"}
2024-08-21T15:08:09.886Z	INFO	handlers/utils.go:69	received retriable error	{"id": "8316807f-8a3f-4067-972b-a98221002452", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2008ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-21T15:08:09.869Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-21T15:08:09.870Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 38d0ff0e-87fd-4fda-82c9-ffb3dc72633d, type TB, state PENDING"}
2024-08-21T15:08:09.870Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 38d0ff0e-87fd-4fda-82c9-ffb3dc72633d, type TB, state PENDING"}
2024-08-21T15:08:09.870Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id 38d0ff0e-87fd-4fda-82c9-ffb3dc72633d, type TB, state PENDING"}
2024-08-21T15:08:09.870Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id 38d0ff0e-87fd-4fda-82c9-ffb3dc72633d, type TB, state PENDING"}
2024-08-21T15:08:09.870Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "38d0ff0e-87fd-4fda-82c9-ffb3dc72633d"}
2024-08-21T15:08:09.870Z	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/backup20013ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

Copy link

📝 Test results

ydbcp

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4000ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-21T15:08:09.273Z	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:08:09.273Z	DEBUG	queries/write.go:236	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:08:09.274Z	DEBUG	queries/write.go:236	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-21T15:08:09.274Z	DEBUG	queries/write.go:236	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/handlers20001ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-21T15:08:09.884Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "115f6e32-e1e1-4441-ad7b-fc7d6d1d1af9", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:08:09.884Z	INFO	handlers/utils.go:46	getting operation status	{"id": "115f6e32-e1e1-4441-ad7b-fc7d6d1d1af9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-21T15:08:09.884Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "2d74c448-381a-4c1a-90f0-ca448094ce79", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:08:09.884Z	INFO	handlers/utils.go:46	getting operation status	{"id": "2d74c448-381a-4c1a-90f0-ca448094ce79", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:08:09.884Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "2d74c448-381a-4c1a-90f0-ca448094ce79", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-21T15:08:09.884Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "481da49a-71e6-4cb9-8633-fe8d2f3c79d9", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:08:09.884Z	INFO	handlers/utils.go:46	getting operation status	{"id": "481da49a-71e6-4cb9-8633-fe8d2f3c79d9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-21T15:08:09.884Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "d1c4287a-b889-404f-a68b-9ba09c83c5b0", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:08:09.884Z	INFO	handlers/utils.go:46	getting operation status	{"id": "d1c4287a-b889-404f-a68b-9ba09c83c5b0", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:08:09.884Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "d1c4287a-b889-404f-a68b-9ba09c83c5b0", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-21T15:08:09.884Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "af719ac8-b79e-4d34-ba3e-d66fcd848944", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:08:09.884Z	INFO	handlers/utils.go:46	getting operation status	{"id": "af719ac8-b79e-4d34-ba3e-d66fcd848944", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:08:09.884Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "af719ac8-b79e-4d34-ba3e-d66fcd848944", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-21T15:08:09.885Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "df8ca964-db25-484d-af2d-d7c366840699", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "df8ca964-db25-484d-af2d-d7c366840699", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-21T15:08:09.885Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "604db6ff-2dc7-431c-a91d-fd3b798c1cb1", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "604db6ff-2dc7-431c-a91d-fd3b798c1cb1", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-21T15:08:09.885Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "627d70af-4263-413b-b717-240840e6f66d", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "627d70af-4263-413b-b717-240840e6f66d", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:08:09.885Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "627d70af-4263-413b-b717-240840e6f66d", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-21T15:08:09.885Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "a25574ed-9b8b-48b7-9f1b-dbb8d2eebd08", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "a25574ed-9b8b-48b7-9f1b-dbb8d2eebd08", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:08:09.885Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "a25574ed-9b8b-48b7-9f1b-dbb8d2eebd08", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-21T15:08:09.885Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "06fe9bb0-fadb-47c0-8cc1-fa1716e2cd93", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "06fe9bb0-fadb-47c0-8cc1-fa1716e2cd93", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:69	received retriable error	{"id": "06fe9bb0-fadb-47c0-8cc1-fa1716e2cd93", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "43ef22c2-7f4d-4260-9756-07820e2e8a7b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "fc076682-f9f2-42b3-b445-888e609bd4b2", "type": "TB", "ydb_operation_id": "1"}
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "fc076682-f9f2-42b3-b445-888e609bd4b2", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "925229f4-d667-4a63-8fce-8dad46a9f041", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "18eda649-a910-4f21-aeb0-d365c554f1e0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-21T15:08:09.885Z	INFO	handlers/utils.go:46	getting operation status	{"id": "e549de13-74d3-422b-a73b-6ddbe26de39c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-21T15:08:09.886Z	INFO	handlers/utils.go:46	getting operation status	{"id": "a82c31cf-a31b-4e85-91c9-5b9839b42215", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-21T15:08:09.886Z	INFO	handlers/utils.go:46	getting operation status	{"id": "54053fea-66bf-4d57-b27b-f3054b1c3271", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-21T15:08:09.886Z	INFO	handlers/utils.go:46	getting operation status	{"id": "fea1a555-9f30-4623-8849-fd952f4588b6", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-21T15:08:09.886Z	INFO	handlers/utils.go:46	getting operation status	{"id": "27457b01-38dd-46d5-b556-2207527f9091", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-21T15:08:09.886Z	INFO	handlers/utils.go:46	getting operation status	{"id": "8316807f-8a3f-4067-972b-a98221002452", "type": "TB", "ydb_operation_id": "1"}
2024-08-21T15:08:09.886Z	INFO	handlers/utils.go:69	received retriable error	{"id": "8316807f-8a3f-4067-972b-a98221002452", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2000ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-21T15:08:09.869Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-21T15:08:09.870Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 38d0ff0e-87fd-4fda-82c9-ffb3dc72633d, type TB, state PENDING"}
2024-08-21T15:08:09.870Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 38d0ff0e-87fd-4fda-82c9-ffb3dc72633d, type TB, state PENDING"}
2024-08-21T15:08:09.870Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id 38d0ff0e-87fd-4fda-82c9-ffb3dc72633d, type TB, state PENDING"}
2024-08-21T15:08:09.870Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id 38d0ff0e-87fd-4fda-82c9-ffb3dc72633d, type TB, state PENDING"}
2024-08-21T15:08:09.870Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "38d0ff0e-87fd-4fda-82c9-ffb3dc72633d"}
2024-08-21T15:08:09.870Z	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/backup20014ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

Copy link

📝 Test results

ydbcp

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4007ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-21T15:48:56.374Z	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:48:56.374Z	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:48:56.374Z	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:48:56.374Z	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/handlers200019ms
🧪 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:48:56.924Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "b3e0abd8-5e1b-4ccc-a8c8-2f2a625c5e94", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:48:56.924Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b3e0abd8-5e1b-4ccc-a8c8-2f2a625c5e94", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-21T15:48:56.924Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "1a237a73-7b20-4c74-a8be-53a30b4d43e9", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:48:56.924Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1a237a73-7b20-4c74-a8be-53a30b4d43e9", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:48:56.925Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "1a237a73-7b20-4c74-a8be-53a30b4d43e9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-21T15:48:56.925Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "b153c251-7af8-42e2-a6e0-7838041ca3a3", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:48:56.925Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b153c251-7af8-42e2-a6e0-7838041ca3a3", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-21T15:48:56.925Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7ba62ddb-4e00-455d-a3b4-3cea2860a5f8", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:48:56.925Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7ba62ddb-4e00-455d-a3b4-3cea2860a5f8", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:48:56.925Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "7ba62ddb-4e00-455d-a3b4-3cea2860a5f8", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-21T15:48:56.925Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "679d74ba-8b53-4adc-b263-67a285def28b", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:48:56.925Z	INFO	handlers/utils.go:48	getting operation status	{"id": "679d74ba-8b53-4adc-b263-67a285def28b", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:48:56.925Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "679d74ba-8b53-4adc-b263-67a285def28b", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-21T15:48:56.925Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "53e526c4-1557-4b53-b4b4-7ec3fa3db602", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:48:56.925Z	INFO	handlers/utils.go:48	getting operation status	{"id": "53e526c4-1557-4b53-b4b4-7ec3fa3db602", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-21T15:48:56.925Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "1bf3b0d7-47ab-4dbc-8661-440ff053414d", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:48:56.925Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1bf3b0d7-47ab-4dbc-8661-440ff053414d", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-21T15:48:56.925Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "b5a8b12b-c24c-4937-891a-356accb22a11", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:48:56.925Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b5a8b12b-c24c-4937-891a-356accb22a11", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:48:56.925Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "b5a8b12b-c24c-4937-891a-356accb22a11", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-21T15:48:56.925Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "8e8791bc-38c2-4893-90b0-cf2d83dfedf3", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T15:48:56.925Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8e8791bc-38c2-4893-90b0-cf2d83dfedf3", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:48:56.925Z	INFO	handlers/restore_backup.go:124	forgetting operation	{"id": "8e8791bc-38c2-4893-90b0-cf2d83dfedf3", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-21T15:48:56.925Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "fcee4938-82d3-4ce9-82d5-9f90bd4b49ae", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T15:48:56.925Z	INFO	handlers/utils.go:48	getting operation status	{"id": "fcee4938-82d3-4ce9-82d5-9f90bd4b49ae", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T15:48:56.925Z	INFO	handlers/utils.go:71	received retriable error	{"id": "fcee4938-82d3-4ce9-82d5-9f90bd4b49ae", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-21T15:48:56.925Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c89bcb17-443c-4977-a617-6fc138965475", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-21T15:48:56.925Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8c2e921a-d358-40f0-8097-3c54e7a1a8de", "type": "TB", "ydb_operation_id": "1"}
2024-08-21T15:48:56.925Z	INFO	handlers/utils.go:101	cancelling operation	{"reason": "TTL", "id": "8c2e921a-d358-40f0-8097-3c54e7a1a8de", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-21T15:48:56.926Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a8eb84f0-e1f5-4ca2-beb3-8d2643bcaf2a", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-21T15:48:56.926Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c311cc4b-7a51-49b6-a47b-ae0c755c7914", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-21T15:48:56.926Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1cd043c5-9ef4-4415-b99d-0722573e55af", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-21T15:48:56.926Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b67c06fd-b7d9-4f19-aae7-21e0839fe841", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-21T15:48:56.926Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8c257037-5ffd-45f5-adbf-e8cef802bad6", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-21T15:48:56.926Z	INFO	handlers/utils.go:48	getting operation status	{"id": "bbe5fc96-34aa-40ce-9abe-fe0a519cb554", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-21T15:48:56.926Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b22f7639-b262-423d-b803-b5be70b5bab4", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-21T15:48:56.926Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e03f7602-4ac7-4fde-9318-789f0a272024", "type": "TB", "ydb_operation_id": "1"}
2024-08-21T15:48:56.926Z	INFO	handlers/utils.go:71	received retriable error	{"id": "e03f7602-4ac7-4fde-9318-789f0a272024", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor20015ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-21T15:48:56.921Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-21T15:48:56.921Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 9c6160d7-5c8d-4c13-a8fb-6c604ae1d2d9, type TB, state PENDING"}
2024-08-21T15:48:56.921Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 9c6160d7-5c8d-4c13-a8fb-6c604ae1d2d9, type TB, state PENDING"}
2024-08-21T15:48:56.921Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id 9c6160d7-5c8d-4c13-a8fb-6c604ae1d2d9, type TB, state PENDING"}
2024-08-21T15:48:56.921Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id 9c6160d7-5c8d-4c13-a8fb-6c604ae1d2d9, type TB, state PENDING"}
2024-08-21T15:48:56.921Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "9c6160d7-5c8d-4c13-a8fb-6c604ae1d2d9"}
2024-08-21T15:48:56.921Z	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/backup20013ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

@bma13 bma13 merged commit 8e169b1 into main Aug 21, 2024
1 check passed
@bma13 bma13 deleted the endpoint-validation branch August 21, 2024 15:49
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