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

iam auth plugin #34

Merged
merged 2 commits into from
Aug 16, 2024
Merged

iam auth plugin #34

merged 2 commits into from
Aug 16, 2024

Conversation

bma13
Copy link
Collaborator

@bma13 bma13 commented Aug 13, 2024

No description provided.

@bma13 bma13 changed the title WIP NYDB-165 iam auth plugin WIP iam auth plugin Aug 13, 2024
cmd/ydbcp/main.go Outdated Show resolved Hide resolved
cmd/ydbcp/main.go Outdated Show resolved Hide resolved
cmd/ydbcp/main.go Outdated Show resolved Hide resolved
cmd/ydbcp/main.go Outdated Show resolved Hide resolved
cmd/ydbcp/main.go Outdated Show resolved Hide resolved
plugins/auth_nebius/auth_nebius.go Outdated Show resolved Hide resolved
plugins/auth_nebius/auth_nebius.go Outdated Show resolved Hide resolved
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/queries4008ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-15T15:12:41.079Z	DEBUG	queries/read.go:137	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-15T15:12:41.079Z	DEBUG	queries/write.go:240	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-15T15:12:41.079Z	DEBUG	queries/write.go:240	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-15T15:12:41.079Z	DEBUG	queries/write.go:240	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/handlers200015ms
🧪 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-15T15:12:41.508Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "3db4b8b8-4a88-43e9-b5fc-fd71efcb489c", "type": "RB", "state": "PENDING", "message": ""}
2024-08-15T15:12:41.508Z	INFO	handlers/utils.go:46	getting operation status	{"id": "3db4b8b8-4a88-43e9-b5fc-fd71efcb489c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-15T15:12:41.508Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "5c3ca842-c5d9-4779-a6df-88f2791a6f2d", "type": "RB", "state": "PENDING", "message": ""}
2024-08-15T15:12:41.508Z	INFO	handlers/utils.go:46	getting operation status	{"id": "5c3ca842-c5d9-4779-a6df-88f2791a6f2d", "type": "RB", "ydb_operation_id": "1"}
2024-08-15T15:12:41.508Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "5c3ca842-c5d9-4779-a6df-88f2791a6f2d", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-15T15:12:41.508Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "32fe6a4f-aa0e-40b5-864f-96ef1b7259b1", "type": "RB", "state": "PENDING", "message": ""}
2024-08-15T15:12:41.508Z	INFO	handlers/utils.go:46	getting operation status	{"id": "32fe6a4f-aa0e-40b5-864f-96ef1b7259b1", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-15T15:12:41.508Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "05db67db-8c42-4dcf-b564-063f3793ab0a", "type": "RB", "state": "PENDING", "message": ""}
2024-08-15T15:12:41.508Z	INFO	handlers/utils.go:46	getting operation status	{"id": "05db67db-8c42-4dcf-b564-063f3793ab0a", "type": "RB", "ydb_operation_id": "1"}
2024-08-15T15:12:41.508Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "05db67db-8c42-4dcf-b564-063f3793ab0a", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-15T15:12:41.508Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "bba292c5-0a3b-4549-8bc7-0f5d0094fd4a", "type": "RB", "state": "PENDING", "message": ""}
2024-08-15T15:12:41.508Z	INFO	handlers/utils.go:46	getting operation status	{"id": "bba292c5-0a3b-4549-8bc7-0f5d0094fd4a", "type": "RB", "ydb_operation_id": "1"}
2024-08-15T15:12:41.508Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "bba292c5-0a3b-4549-8bc7-0f5d0094fd4a", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-15T15:12:41.508Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "fab34559-ec9b-4730-b1c1-48459d6b8421", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-15T15:12:41.508Z	INFO	handlers/utils.go:46	getting operation status	{"id": "fab34559-ec9b-4730-b1c1-48459d6b8421", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-15T15:12:41.508Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "58e75baa-e789-4f34-8304-9ed55bff2488", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-15T15:12:41.508Z	INFO	handlers/utils.go:46	getting operation status	{"id": "58e75baa-e789-4f34-8304-9ed55bff2488", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-15T15:12:41.508Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "b1d5a1e2-942f-4f6a-83f8-9e14b65b04fa", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-15T15:12:41.508Z	INFO	handlers/utils.go:46	getting operation status	{"id": "b1d5a1e2-942f-4f6a-83f8-9e14b65b04fa", "type": "RB", "ydb_operation_id": "1"}
2024-08-15T15:12:41.508Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "b1d5a1e2-942f-4f6a-83f8-9e14b65b04fa", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-15T15:12:41.508Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "f2e4dafb-5550-4aca-a0ec-961747789c3d", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-15T15:12:41.508Z	INFO	handlers/utils.go:46	getting operation status	{"id": "f2e4dafb-5550-4aca-a0ec-961747789c3d", "type": "RB", "ydb_operation_id": "1"}
2024-08-15T15:12:41.508Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "f2e4dafb-5550-4aca-a0ec-961747789c3d", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-15T15:12:41.508Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "ba250514-437e-4449-95cb-aed5d53103b7", "type": "RB", "state": "PENDING", "message": ""}
2024-08-15T15:12:41.508Z	INFO	handlers/utils.go:46	getting operation status	{"id": "ba250514-437e-4449-95cb-aed5d53103b7", "type": "RB", "ydb_operation_id": "1"}
2024-08-15T15:12:41.508Z	INFO	handlers/utils.go:69	received retriable error	{"id": "ba250514-437e-4449-95cb-aed5d53103b7", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-15T15:12:41.508Z	INFO	handlers/utils.go:46	getting operation status	{"id": "9ec6bfd6-0369-4417-bd94-56cf94aac11b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-15T15:12:41.508Z	INFO	handlers/utils.go:46	getting operation status	{"id": "9b2e7bb2-6d13-43a1-9604-a2bb62bee59f", "type": "TB", "ydb_operation_id": "1"}
2024-08-15T15:12:41.508Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "9b2e7bb2-6d13-43a1-9604-a2bb62bee59f", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-15T15:12:41.508Z	INFO	handlers/utils.go:46	getting operation status	{"id": "820da8ac-0f49-4281-946e-827e5acb4b7e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-15T15:12:41.508Z	INFO	handlers/utils.go:46	getting operation status	{"id": "a03ddf8a-a1a9-4d05-9a46-35af1d7bf7c0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-15T15:12:41.509Z	INFO	handlers/utils.go:46	getting operation status	{"id": "208ea39d-52cf-4e31-810c-d65ef4d67f45", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-15T15:12:41.509Z	INFO	handlers/utils.go:46	getting operation status	{"id": "fd79ebc9-dd7a-483c-b669-cf1c7afb8083", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-15T15:12:41.509Z	INFO	handlers/utils.go:46	getting operation status	{"id": "ae264b86-b32e-477b-91d2-5136be4d5f85", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-15T15:12:41.509Z	INFO	handlers/utils.go:46	getting operation status	{"id": "f2baf1f6-b5ca-4f27-b388-67fdf5395c15", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-15T15:12:41.509Z	INFO	handlers/utils.go:46	getting operation status	{"id": "d2c54533-54da-469a-b6a5-69e6666e94b6", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-15T15:12:41.509Z	INFO	handlers/utils.go:46	getting operation status	{"id": "689422de-abcd-4b07-a798-da2b17dcbc4c", "type": "TB", "ydb_operation_id": "1"}
2024-08-15T15:12:41.509Z	INFO	handlers/utils.go:69	received retriable error	{"id": "689422de-abcd-4b07-a798-da2b17dcbc4c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2008ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-15T15:12:41.508Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-15T15:12:41.508Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 2f1dc9eb-ee09-4ed0-919a-cf6dc20a39a5, type TB, state PENDING"}
2024-08-15T15:12:41.508Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 2f1dc9eb-ee09-4ed0-919a-cf6dc20a39a5, type TB, state PENDING"}
2024-08-15T15:12:41.508Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id 2f1dc9eb-ee09-4ed0-919a-cf6dc20a39a5, type TB, state PENDING"}
2024-08-15T15:12:41.508Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"operation": "Operation, id 2f1dc9eb-ee09-4ed0-919a-cf6dc20a39a5, type TB, state PENDING"}
2024-08-15T15:12:41.508Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "2f1dc9eb-ee09-4ed0-919a-cf6dc20a39a5"}
2024-08-15T15:12:41.508Z	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)

@bma13 bma13 changed the title WIP iam auth plugin iam auth plugin Aug 15, 2024
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/queries4008ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-16T11:13:24.748Z	DEBUG	queries/read.go:137	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-16T11:13:24.748Z	DEBUG	queries/write.go:240	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-16T11:13:24.749Z	DEBUG	queries/write.go:240	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-16T11:13:24.749Z	DEBUG	queries/write.go:240	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/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-16T11:13:25.188Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "67b73d66-672b-4f57-bd3a-00e0420c4ee4", "type": "RB", "state": "PENDING", "message": ""}
2024-08-16T11:13:25.189Z	INFO	handlers/utils.go:46	getting operation status	{"id": "67b73d66-672b-4f57-bd3a-00e0420c4ee4", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-16T11:13:25.189Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "4c183eea-081c-4b2d-b80f-8eb6cca23e42", "type": "RB", "state": "PENDING", "message": ""}
2024-08-16T11:13:25.189Z	INFO	handlers/utils.go:46	getting operation status	{"id": "4c183eea-081c-4b2d-b80f-8eb6cca23e42", "type": "RB", "ydb_operation_id": "1"}
2024-08-16T11:13:25.189Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "4c183eea-081c-4b2d-b80f-8eb6cca23e42", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-16T11:13:25.189Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "01ac2068-39e9-49b9-9e03-ae2b218d25e6", "type": "RB", "state": "PENDING", "message": ""}
2024-08-16T11:13:25.189Z	INFO	handlers/utils.go:46	getting operation status	{"id": "01ac2068-39e9-49b9-9e03-ae2b218d25e6", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-16T11:13:25.189Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "521ef792-4fff-4688-a89d-48e1575f0b43", "type": "RB", "state": "PENDING", "message": ""}
2024-08-16T11:13:25.189Z	INFO	handlers/utils.go:46	getting operation status	{"id": "521ef792-4fff-4688-a89d-48e1575f0b43", "type": "RB", "ydb_operation_id": "1"}
2024-08-16T11:13:25.189Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "521ef792-4fff-4688-a89d-48e1575f0b43", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-16T11:13:25.189Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "7e8d5840-a9d2-48d8-a451-e3c840ccd8a6", "type": "RB", "state": "PENDING", "message": ""}
2024-08-16T11:13:25.189Z	INFO	handlers/utils.go:46	getting operation status	{"id": "7e8d5840-a9d2-48d8-a451-e3c840ccd8a6", "type": "RB", "ydb_operation_id": "1"}
2024-08-16T11:13:25.189Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "7e8d5840-a9d2-48d8-a451-e3c840ccd8a6", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-16T11:13:25.189Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "7afed3c4-7ccf-4261-82ef-6e7532a07a03", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-16T11:13:25.189Z	INFO	handlers/utils.go:46	getting operation status	{"id": "7afed3c4-7ccf-4261-82ef-6e7532a07a03", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-16T11:13:25.190Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "556b3a8d-7bc3-407d-887b-40ca895a8c1a", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-16T11:13:25.190Z	INFO	handlers/utils.go:46	getting operation status	{"id": "556b3a8d-7bc3-407d-887b-40ca895a8c1a", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-16T11:13:25.190Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "cdabccfe-fc2d-433d-ad7c-bdcada9ed811", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-16T11:13:25.190Z	INFO	handlers/utils.go:46	getting operation status	{"id": "cdabccfe-fc2d-433d-ad7c-bdcada9ed811", "type": "RB", "ydb_operation_id": "1"}
2024-08-16T11:13:25.190Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "cdabccfe-fc2d-433d-ad7c-bdcada9ed811", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-16T11:13:25.190Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "ff9e518c-ed82-4d7b-911c-76565b66c3b1", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-16T11:13:25.190Z	INFO	handlers/utils.go:46	getting operation status	{"id": "ff9e518c-ed82-4d7b-911c-76565b66c3b1", "type": "RB", "ydb_operation_id": "1"}
2024-08-16T11:13:25.190Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "ff9e518c-ed82-4d7b-911c-76565b66c3b1", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-16T11:13:25.190Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "5e1a2754-9377-48bd-adb0-14e6d7e65591", "type": "RB", "state": "PENDING", "message": ""}
2024-08-16T11:13:25.190Z	INFO	handlers/utils.go:46	getting operation status	{"id": "5e1a2754-9377-48bd-adb0-14e6d7e65591", "type": "RB", "ydb_operation_id": "1"}
2024-08-16T11:13:25.190Z	INFO	handlers/utils.go:69	received retriable error	{"id": "5e1a2754-9377-48bd-adb0-14e6d7e65591", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-16T11:13:25.190Z	INFO	handlers/utils.go:46	getting operation status	{"id": "f04188f6-96a9-4110-b75e-7b6d8e31b277", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-16T11:13:25.190Z	INFO	handlers/utils.go:46	getting operation status	{"id": "21fe70a1-bd0d-459d-b6e1-2d01cc5653d7", "type": "TB", "ydb_operation_id": "1"}
2024-08-16T11:13:25.190Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "21fe70a1-bd0d-459d-b6e1-2d01cc5653d7", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-16T11:13:25.190Z	INFO	handlers/utils.go:46	getting operation status	{"id": "0900497e-340a-4350-9970-7e6e834e324b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-16T11:13:25.190Z	INFO	handlers/utils.go:46	getting operation status	{"id": "2c466126-5e90-4b96-9267-77b0974ffe76", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-16T11:13:25.190Z	INFO	handlers/utils.go:46	getting operation status	{"id": "f6954f0e-0e88-48e4-a483-3a4adb0207b3", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-16T11:13:25.190Z	INFO	handlers/utils.go:46	getting operation status	{"id": "ea09d839-9565-4679-bce0-9604cc735ec4", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-16T11:13:25.190Z	INFO	handlers/utils.go:46	getting operation status	{"id": "6a778909-fd4d-4166-809c-3fb06dc488bf", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-16T11:13:25.190Z	INFO	handlers/utils.go:46	getting operation status	{"id": "4da2de8f-cf07-4a21-af44-60f1aea13975", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-16T11:13:25.190Z	INFO	handlers/utils.go:46	getting operation status	{"id": "903ff64c-db0d-4ffb-a556-2c530aad8e21", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-16T11:13:25.191Z	INFO	handlers/utils.go:46	getting operation status	{"id": "38903015-1dd1-4fd0-81ed-8e6fff7c25a2", "type": "TB", "ydb_operation_id": "1"}
2024-08-16T11:13:25.191Z	INFO	handlers/utils.go:69	received retriable error	{"id": "38903015-1dd1-4fd0-81ed-8e6fff7c25a2", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor20010ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-16T11:13:25.189Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-16T11:13:25.189Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 837ca596-ad22-4fea-b223-275b2ce78b2e, type TB, state PENDING"}
2024-08-16T11:13:25.189Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 837ca596-ad22-4fea-b223-275b2ce78b2e, type TB, state PENDING"}
2024-08-16T11:13:25.190Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id 837ca596-ad22-4fea-b223-275b2ce78b2e, type TB, state PENDING"}
2024-08-16T11:13:25.190Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"operation": "Operation, id 837ca596-ad22-4fea-b223-275b2ce78b2e, type TB, state PENDING"}
2024-08-16T11:13:25.190Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "837ca596-ad22-4fea-b223-275b2ce78b2e"}
2024-08-16T11:13:25.190Z	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)

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/queries40017ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-16T16:46:08.125Z	DEBUG	queries/read.go:137	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-16T16:46:08.128Z	DEBUG	queries/write.go:240	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-16T16:46:08.128Z	DEBUG	queries/write.go:240	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-16T16:46:08.128Z	DEBUG	queries/write.go:240	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/handlers200015ms
🧪 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-16T16:46:08.896Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "2b4cc68c-7ce9-48f2-8829-569a44710547", "type": "RB", "state": "PENDING", "message": ""}
2024-08-16T16:46:08.896Z	INFO	handlers/utils.go:46	getting operation status	{"id": "2b4cc68c-7ce9-48f2-8829-569a44710547", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-16T16:46:08.896Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "386a01bc-7bf1-4eba-937c-5faf64af4fef", "type": "RB", "state": "PENDING", "message": ""}
2024-08-16T16:46:08.896Z	INFO	handlers/utils.go:46	getting operation status	{"id": "386a01bc-7bf1-4eba-937c-5faf64af4fef", "type": "RB", "ydb_operation_id": "1"}
2024-08-16T16:46:08.896Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "386a01bc-7bf1-4eba-937c-5faf64af4fef", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-16T16:46:08.896Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "7b4f9997-dfc6-404f-9a52-d2a9ab0aaaad", "type": "RB", "state": "PENDING", "message": ""}
2024-08-16T16:46:08.896Z	INFO	handlers/utils.go:46	getting operation status	{"id": "7b4f9997-dfc6-404f-9a52-d2a9ab0aaaad", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-16T16:46:08.896Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "68b4b849-b53c-4f13-baf4-801b923f5ea3", "type": "RB", "state": "PENDING", "message": ""}
2024-08-16T16:46:08.896Z	INFO	handlers/utils.go:46	getting operation status	{"id": "68b4b849-b53c-4f13-baf4-801b923f5ea3", "type": "RB", "ydb_operation_id": "1"}
2024-08-16T16:46:08.896Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "68b4b849-b53c-4f13-baf4-801b923f5ea3", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-16T16:46:08.896Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "38d9f1d3-bd4d-4757-860c-d48d95b50000", "type": "RB", "state": "PENDING", "message": ""}
2024-08-16T16:46:08.896Z	INFO	handlers/utils.go:46	getting operation status	{"id": "38d9f1d3-bd4d-4757-860c-d48d95b50000", "type": "RB", "ydb_operation_id": "1"}
2024-08-16T16:46:08.896Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "38d9f1d3-bd4d-4757-860c-d48d95b50000", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-16T16:46:08.896Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "b8d9058c-8ca2-4b00-93bb-5c027fc39ba1", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-16T16:46:08.896Z	INFO	handlers/utils.go:46	getting operation status	{"id": "b8d9058c-8ca2-4b00-93bb-5c027fc39ba1", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-16T16:46:08.896Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "6e4d61cf-a34d-414d-8da2-b092491a6d33", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-16T16:46:08.896Z	INFO	handlers/utils.go:46	getting operation status	{"id": "6e4d61cf-a34d-414d-8da2-b092491a6d33", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-16T16:46:08.896Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "6563fbea-4929-4425-a256-f9a094118d31", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-16T16:46:08.896Z	INFO	handlers/utils.go:46	getting operation status	{"id": "6563fbea-4929-4425-a256-f9a094118d31", "type": "RB", "ydb_operation_id": "1"}
2024-08-16T16:46:08.896Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "6563fbea-4929-4425-a256-f9a094118d31", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-16T16:46:08.896Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "0370c922-dd48-4c76-ad6f-b46d2fe89eec", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-16T16:46:08.897Z	INFO	handlers/utils.go:46	getting operation status	{"id": "0370c922-dd48-4c76-ad6f-b46d2fe89eec", "type": "RB", "ydb_operation_id": "1"}
2024-08-16T16:46:08.897Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "0370c922-dd48-4c76-ad6f-b46d2fe89eec", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-16T16:46:08.897Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "12d707fa-492a-44e0-9ff7-668d20f2be97", "type": "RB", "state": "PENDING", "message": ""}
2024-08-16T16:46:08.897Z	INFO	handlers/utils.go:46	getting operation status	{"id": "12d707fa-492a-44e0-9ff7-668d20f2be97", "type": "RB", "ydb_operation_id": "1"}
2024-08-16T16:46:08.897Z	INFO	handlers/utils.go:69	received retriable error	{"id": "12d707fa-492a-44e0-9ff7-668d20f2be97", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-16T16:46:08.897Z	INFO	handlers/utils.go:46	getting operation status	{"id": "d3b17593-6c40-4a8a-ba69-3d887e761659", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-16T16:46:08.897Z	INFO	handlers/utils.go:46	getting operation status	{"id": "1e1f9d04-194d-4a33-8544-6d2f48379d6b", "type": "TB", "ydb_operation_id": "1"}
2024-08-16T16:46:08.897Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "1e1f9d04-194d-4a33-8544-6d2f48379d6b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-16T16:46:08.897Z	INFO	handlers/utils.go:46	getting operation status	{"id": "e67c9106-2f85-46a8-aa75-8863c87b5a75", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-16T16:46:08.897Z	INFO	handlers/utils.go:46	getting operation status	{"id": "d2859a18-5761-4658-a172-e6bb1ffa8e02", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-16T16:46:08.897Z	INFO	handlers/utils.go:46	getting operation status	{"id": "5e334e38-5666-4f09-a66e-0fe28dbf7a97", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-16T16:46:08.897Z	INFO	handlers/utils.go:46	getting operation status	{"id": "fe54aea7-e316-4a89-9b60-d90a119dc911", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-16T16:46:08.897Z	INFO	handlers/utils.go:46	getting operation status	{"id": "83748737-fa23-4176-9345-bcfa401ca045", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-16T16:46:08.897Z	INFO	handlers/utils.go:46	getting operation status	{"id": "3def6384-7c98-4eed-9ef1-3a751eeaf9e1", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-16T16:46:08.897Z	INFO	handlers/utils.go:46	getting operation status	{"id": "ebc17d0f-c20e-4a5e-bd0a-363a5b1e277d", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-16T16:46:08.897Z	INFO	handlers/utils.go:46	getting operation status	{"id": "47ed4d42-20a5-4c5f-9ec6-168973ec1290", "type": "TB", "ydb_operation_id": "1"}
2024-08-16T16:46:08.897Z	INFO	handlers/utils.go:69	received retriable error	{"id": "47ed4d42-20a5-4c5f-9ec6-168973ec1290", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2008ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-16T16:46:08.890Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-16T16:46:08.890Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 310edc75-b752-474b-8dec-a7108134e592, type TB, state PENDING"}
2024-08-16T16:46:08.890Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 310edc75-b752-474b-8dec-a7108134e592, type TB, state PENDING"}
2024-08-16T16:46:08.890Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id 310edc75-b752-474b-8dec-a7108134e592, type TB, state PENDING"}
2024-08-16T16:46:08.890Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"operation": "Operation, id 310edc75-b752-474b-8dec-a7108134e592, type TB, state PENDING"}
2024-08-16T16:46:08.890Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "310edc75-b752-474b-8dec-a7108134e592"}
2024-08-16T16:46:08.890Z	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)

@bma13 bma13 merged commit 610ba97 into main Aug 16, 2024
1 check passed
@bma13 bma13 deleted the iam-plugin branch August 16, 2024 17:21
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