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

Client connector auth has been added #42

Merged
merged 1 commit into from
Aug 21, 2024
Merged

Client connector auth has been added #42

merged 1 commit into from
Aug 21, 2024

Conversation

bma13
Copy link
Collaborator

@bma13 bma13 commented Aug 21, 2024

No description provided.

Copy link

📝 Test results

ydbcp

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

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries40011ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-21T13:08:32.251Z	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-21T13:08:32.251Z	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-21T13:08:32.251Z	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-21T13:08:32.251Z	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/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-21T13:08:32.702Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "a810939a-0282-4091-8e42-5bec970c443c", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T13:08:32.702Z	INFO	handlers/utils.go:46	getting operation status	{"id": "a810939a-0282-4091-8e42-5bec970c443c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-21T13:08:32.702Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "d66fc6af-359e-4c48-b27c-29b87a95b46c", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T13:08:32.702Z	INFO	handlers/utils.go:46	getting operation status	{"id": "d66fc6af-359e-4c48-b27c-29b87a95b46c", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T13:08:32.702Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "d66fc6af-359e-4c48-b27c-29b87a95b46c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-21T13:08:32.702Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "d8771077-170d-46de-b4f1-c1c97cdf93ab", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T13:08:32.702Z	INFO	handlers/utils.go:46	getting operation status	{"id": "d8771077-170d-46de-b4f1-c1c97cdf93ab", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-21T13:08:32.702Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "15997fb8-f4e0-4b27-9d8e-2732e2461d5e", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T13:08:32.702Z	INFO	handlers/utils.go:46	getting operation status	{"id": "15997fb8-f4e0-4b27-9d8e-2732e2461d5e", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T13:08:32.702Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "15997fb8-f4e0-4b27-9d8e-2732e2461d5e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-21T13:08:32.702Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "56dacc0c-e137-4e77-94ac-b2c2c116f19f", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T13:08:32.702Z	INFO	handlers/utils.go:46	getting operation status	{"id": "56dacc0c-e137-4e77-94ac-b2c2c116f19f", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T13:08:32.702Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "56dacc0c-e137-4e77-94ac-b2c2c116f19f", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-21T13:08:32.703Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "77af2333-37e9-4836-8881-282b7c363a21", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T13:08:32.703Z	INFO	handlers/utils.go:46	getting operation status	{"id": "77af2333-37e9-4836-8881-282b7c363a21", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-21T13:08:32.703Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "f21e766d-8616-4f41-9c98-9687371af540", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T13:08:32.703Z	INFO	handlers/utils.go:46	getting operation status	{"id": "f21e766d-8616-4f41-9c98-9687371af540", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-21T13:08:32.703Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "d3a8b697-9268-4fcb-a652-cb59f7da375c", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T13:08:32.703Z	INFO	handlers/utils.go:46	getting operation status	{"id": "d3a8b697-9268-4fcb-a652-cb59f7da375c", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T13:08:32.703Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "d3a8b697-9268-4fcb-a652-cb59f7da375c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-21T13:08:32.703Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "261bafd7-8363-456f-9fff-2fd99b591ba3", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T13:08:32.703Z	INFO	handlers/utils.go:46	getting operation status	{"id": "261bafd7-8363-456f-9fff-2fd99b591ba3", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T13:08:32.703Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "261bafd7-8363-456f-9fff-2fd99b591ba3", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-21T13:08:32.703Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "84f0f257-169b-4361-ac4b-72ab6535869c", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T13:08:32.703Z	INFO	handlers/utils.go:46	getting operation status	{"id": "84f0f257-169b-4361-ac4b-72ab6535869c", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T13:08:32.703Z	INFO	handlers/utils.go:69	received retriable error	{"id": "84f0f257-169b-4361-ac4b-72ab6535869c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-21T13:08:32.703Z	INFO	handlers/utils.go:46	getting operation status	{"id": "bfd63a19-bb7c-4ea7-96a3-dc4e1402c024", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-21T13:08:32.703Z	INFO	handlers/utils.go:46	getting operation status	{"id": "648631d5-0913-4e2f-a94d-11776e5f2935", "type": "TB", "ydb_operation_id": "1"}
2024-08-21T13:08:32.703Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "648631d5-0913-4e2f-a94d-11776e5f2935", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-21T13:08:32.703Z	INFO	handlers/utils.go:46	getting operation status	{"id": "90ed4e3f-dcc0-4f7f-a223-92c26a927bc2", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-21T13:08:32.703Z	INFO	handlers/utils.go:46	getting operation status	{"id": "1ff3287c-09ab-4ecc-98b7-945dc9988e35", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-21T13:08:32.703Z	INFO	handlers/utils.go:46	getting operation status	{"id": "b6d36ed2-8d17-4348-9611-7205a16f7b11", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-21T13:08:32.703Z	INFO	handlers/utils.go:46	getting operation status	{"id": "8ff7109c-afa5-4333-b63b-0fdb9c220880", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-21T13:08:32.703Z	INFO	handlers/utils.go:46	getting operation status	{"id": "d4229b05-ea9a-419f-9b0c-4c77259c2290", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-21T13:08:32.703Z	INFO	handlers/utils.go:46	getting operation status	{"id": "daba2ddb-5503-4207-93d6-ec00eeae75ea", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-21T13:08:32.704Z	INFO	handlers/utils.go:46	getting operation status	{"id": "882dfbe7-a559-407c-a61a-55aea463b496", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-21T13:08:32.704Z	INFO	handlers/utils.go:46	getting operation status	{"id": "ee479b5e-1891-4fc3-a082-6358a0a21fce", "type": "TB", "ydb_operation_id": "1"}
2024-08-21T13:08:32.704Z	INFO	handlers/utils.go:69	received retriable error	{"id": "ee479b5e-1891-4fc3-a082-6358a0a21fce", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor20010ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-21T13:08:32.699Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-21T13:08:32.699Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 21d9e735-0062-4013-a66a-580df7fa33fe, type TB, state PENDING"}
2024-08-21T13:08:32.699Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 21d9e735-0062-4013-a66a-580df7fa33fe, type TB, state PENDING"}
2024-08-21T13:08:32.699Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id 21d9e735-0062-4013-a66a-580df7fa33fe, type TB, state PENDING"}
2024-08-21T13:08:32.699Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id 21d9e735-0062-4013-a66a-580df7fa33fe, type TB, state PENDING"}
2024-08-21T13:08:32.699Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "21d9e735-0062-4013-a66a-580df7fa33fe"}
2024-08-21T13:08:32.699Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/services/backup0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

@bma13 bma13 merged commit 4aeb49c into main Aug 21, 2024
1 check passed
@bma13 bma13 deleted the client-connector-auth branch August 21, 2024 13: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