Closed tvoran closed 9 months ago
Update go, changelog, and reformatted acceptance_test.go test setup comments.
Thanks!
Update go, changelog, and reformatted acceptance_test.go test setup comments.
Acceptance tests passed with Vault 1.15.5
``` ❯ make testacc ==> Checking that code complies with gofmt requirements... VAULT_ACC=1 VAULT_ADDR=http://localhost:8200 VAULT_TOKEN=root CGO_ENABLED=1 go test -v -race -tags='' $(go list ./... | grep -v /vendor/ | grep -v /integ) -timeout=20m -parallel=1 ? github.com/hashicorp/vault-plugin-database-elasticsearch/cmd/vault-plugin-database-elasticsearch [no test files] ? github.com/hashicorp/vault-plugin-database-elasticsearch/mock [no test files] === RUN Test_Acceptance 2024/02/06 16:14:17 running tests against mocked Elasticsearch 2024/02/06 16:14:17 enabling database secrets engine === RUN Test_Acceptance/write_a_config === RUN Test_Acceptance/test_internally_defined_roles 2024/02/06 16:14:17 [DEBUG] DELETE http://127.0.0.1:55348/_security/user/v-token-internally-defi-WlenlKjvg4IbwR3IM9gH-1707264857 2024/02/06 16:14:17 [DEBUG] DELETE http://127.0.0.1:55348/_security/role/v-token-internally-defi-WlenlKjvg4IbwR3IM9gH-1707264857 === RUN Test_Acceptance/test_externally_defined_roles 2024/02/06 16:14:17 [DEBUG] DELETE http://127.0.0.1:55348/_security/user/v-token-externally-defi-AuhjAss5W49iAHB5rAgC-1707264857 === RUN Test_Acceptance/test_credential_renewal === RUN Test_Acceptance/test_credential_revocation === RUN Test_Acceptance/test_root_credential_rotation === RUN Test_Acceptance/check_raciness --- PASS: Test_Acceptance (10.07s) --- PASS: Test_Acceptance/write_a_config (0.05s) --- PASS: Test_Acceptance/test_internally_defined_roles (0.01s) --- PASS: Test_Acceptance/test_externally_defined_roles (0.00s) --- PASS: Test_Acceptance/test_credential_renewal (0.00s) --- PASS: Test_Acceptance/test_credential_revocation (0.00s) --- SKIP: Test_Acceptance/test_root_credential_rotation (0.00s) --- PASS: Test_Acceptance/check_raciness (10.00s) === RUN TestClient_CreateListGetDeleteRole 2024/02/06 16:14:27 [DEBUG] POST http://127.0.0.1:59392/_security/role/role-name 2024/02/06 16:14:27 [DEBUG] GET http://127.0.0.1:59392/_security/role/role-name 2024/02/06 16:14:27 [DEBUG] DELETE http://127.0.0.1:59392/_security/role/role-name --- PASS: TestClient_CreateListGetDeleteRole (0.00s) === RUN TestClient_CreateGetDeleteUser 2024/02/06 16:14:27 [DEBUG] POST http://127.0.0.1:59394/_security/user/user-name 2024/02/06 16:14:27 [DEBUG] POST http://127.0.0.1:59394/_security/user/user-name/_password 2024/02/06 16:14:27 [DEBUG] DELETE http://127.0.0.1:59394/_security/user/user-name --- PASS: TestClient_CreateGetDeleteUser (0.00s) === RUN TestClient_BadResponses 2024/02/06 16:14:27 [DEBUG] GET http://127.0.0.1:59396/_security/role/200-but-body-changed 2024/02/06 16:14:27 [DEBUG] GET http://127.0.0.1:59396/_security/role/404-not-found 2024/02/06 16:14:27 [DEBUG] GET http://127.0.0.1:59396/_security/role/500-mysterious-internal-server-error 2024/02/06 16:14:27 [DEBUG] GET http://127.0.0.1:59396/_security/role/500-mysterious-internal-server-error (status: 500): retrying in 1s (4 left) 2024/02/06 16:14:28 [DEBUG] GET http://127.0.0.1:59396/_security/role/500-mysterious-internal-server-error (status: 500): retrying in 2s (3 left) 2024/02/06 16:14:30 [DEBUG] GET http://127.0.0.1:59396/_security/role/500-mysterious-internal-server-error (status: 500): retrying in 4s (2 left) 2024/02/06 16:14:34 [DEBUG] GET http://127.0.0.1:59396/_security/role/500-mysterious-internal-server-error (status: 500): retrying in 8s (1 left) 2024/02/06 16:14:42 [DEBUG] GET http://127.0.0.1:59396/_security/role/503-unavailable 2024/02/06 16:14:42 [DEBUG] GET http://127.0.0.1:59396/_security/role/503-unavailable (status: 503): retrying in 1s (4 left) 2024/02/06 16:14:43 [DEBUG] GET http://127.0.0.1:59396/_security/role/503-unavailable (status: 503): retrying in 2s (3 left) 2024/02/06 16:14:45 [DEBUG] GET http://127.0.0.1:59396/_security/role/503-unavailable (status: 503): retrying in 4s (2 left) 2024/02/06 16:14:49 [DEBUG] GET http://127.0.0.1:59396/_security/role/503-unavailable (status: 503): retrying in 8s (1 left) --- PASS: TestClient_BadResponses (30.02s) === RUN TestElasticsearch_Type --- PASS: TestElasticsearch_Type (0.00s) === RUN TestElasticsearch_Initialize 2024/02/06 16:14:57 [DEBUG] GET http://127.0.0.1:59411/_security/role/vault-test --- PASS: TestElasticsearch_Initialize (0.00s) === RUN TestElasticsearch_Initialize_OptionalConfig 2024/02/06 16:14:57 [DEBUG] GET http://127.0.0.1:59413/_security/role/vault-test 2024/02/06 16:14:57 [DEBUG] GET http://127.0.0.1:59413/_security/role/vault-test 2024/02/06 16:14:57 [DEBUG] GET http://127.0.0.1:59413/_security/role/vault-test 2024/02/06 16:14:57 [DEBUG] GET http://127.0.0.1:59413/_security/role/vault-test --- PASS: TestElasticsearch_Initialize_OptionalConfig (0.01s) === RUN TestElasticsearch_NewUser 2024/02/06 16:14:57 [DEBUG] GET http://127.0.0.1:59418/_security/role/vault-test 2024/02/06 16:14:57 [DEBUG] POST http://127.0.0.1:59418/_security/role/v-display-name-role-name-yOchpw9BFoH0E4kSH9b2-1707264897 2024/02/06 16:14:57 [DEBUG] POST http://127.0.0.1:59418/_security/user/v-display-name-role-name-yOchpw9BFoH0E4kSH9b2-1707264897 2024/02/06 16:14:57 [DEBUG] POST http://127.0.0.1:59418/_security/user/v-display-name-role-name-MGFDzRYRZZGHz2BJsvZt-1707264897 --- PASS: TestElasticsearch_NewUser (0.00s) === RUN TestElasticsearch_DeleteUser --- PASS: TestElasticsearch_DeleteUser (0.00s) === RUN TestElasticsearch_UpdateUser 2024/02/06 16:14:57 [DEBUG] GET http://127.0.0.1:59423/_security/role/vault-test 2024/02/06 16:14:57 [DEBUG] POST http://127.0.0.1:59423/_security/user/fizz/_password --- PASS: TestElasticsearch_UpdateUser (0.00s) === RUN TestElasticsearch_SecretValues --- PASS: TestElasticsearch_SecretValues (0.00s) === RUN TestElasticsearch_DefaultUsernameTemplate 2024/02/06 16:14:57 [DEBUG] GET http://127.0.0.1:59426/_security/role/vault-test 2024/02/06 16:14:57 [DEBUG] POST http://127.0.0.1:59426/_security/role/v-display-name-role-name-JqSc4vL0T2CznZZyOYAt-1707264897 2024/02/06 16:14:57 [DEBUG] POST http://127.0.0.1:59426/_security/user/v-display-name-role-name-JqSc4vL0T2CznZZyOYAt-1707264897 --- PASS: TestElasticsearch_DefaultUsernameTemplate (0.00s) === RUN TestElasticsearch_CustomUsernameTemplate 2024/02/06 16:14:57 [DEBUG] GET http://127.0.0.1:59429/_security/role/vault-test 2024/02/06 16:14:57 [DEBUG] POST http://127.0.0.1:59429/_security/role/display-name-FLhbIovTSR 2024/02/06 16:14:57 [DEBUG] POST http://127.0.0.1:59429/_security/user/display-name-FLhbIovTSR --- PASS: TestElasticsearch_CustomUsernameTemplate (0.00s) === RUN TestIntegration_Container === RUN TestIntegration_Container/6.8.13 === RUN TestIntegration_Container/6.8.13/test_init 2024/02/06 16:15:20 [DEBUG] GET https://localhost:55013/_xpack/security/role/vault-test === RUN TestIntegration_Container/6.8.13/test_create_user 2024/02/06 16:15:20 [DEBUG] POST https://localhost:55013/_xpack/security/role/v-display-name-role-name-i1G6yGOEFJbORnZsgBmv-1707264920 2024/02/06 16:15:20 [DEBUG] POST https://localhost:55013/_xpack/security/user/v-display-name-role-name-i1G6yGOEFJbORnZsgBmv-1707264920 2024/02/06 16:15:20 [DEBUG] POST https://localhost:55013/_xpack/security/user/v-display-name-role-name-xsw8yqqi3qcmlix4VyIf-1707264920 === RUN TestIntegration_Container/6.8.13/test_delete_user 2024/02/06 16:15:20 [DEBUG] DELETE https://localhost:55013/_xpack/security/role/v-display-name-role-name-i1G6yGOEFJbORnZsgBmv-1707264920 2024/02/06 16:15:20 [DEBUG] DELETE https://localhost:55013/_xpack/security/user/v-display-name-role-name-i1G6yGOEFJbORnZsgBmv-1707264920 2024/02/06 16:15:20 [DEBUG] DELETE https://localhost:55013/_xpack/security/role/v-display-name-role-name-xsw8yqqi3qcmlix4VyIf-1707264920 2024/02/06 16:15:20 [DEBUG] DELETE https://localhost:55013/_xpack/security/user/v-display-name-role-name-xsw8yqqi3qcmlix4VyIf-1707264920 === RUN TestIntegration_Container/6.8.13/test_update_user 2024/02/06 16:15:21 [DEBUG] POST https://localhost:55013/_xpack/security/user/vault/_password === RUN TestIntegration_Container/7.9.1 === RUN TestIntegration_Container/7.9.1/test_init 2024/02/06 16:15:31 [DEBUG] GET https://localhost:55015/_security/role/vault-test === RUN TestIntegration_Container/7.9.1/test_create_user 2024/02/06 16:15:31 [DEBUG] POST https://localhost:55015/_security/role/v-display-name-role-name-j3IrCv9GmmAKBLnnjUmy-1707264931 2024/02/06 16:15:31 [DEBUG] POST https://localhost:55015/_security/user/v-display-name-role-name-j3IrCv9GmmAKBLnnjUmy-1707264931 2024/02/06 16:15:31 [DEBUG] POST https://localhost:55015/_security/user/v-display-name-role-name-e7EkCky59U36s2eh9OLq-1707264931 === RUN TestIntegration_Container/7.9.1/test_delete_user 2024/02/06 16:15:31 [DEBUG] DELETE https://localhost:55015/_security/role/v-display-name-role-name-e7EkCky59U36s2eh9OLq-1707264931 2024/02/06 16:15:32 [DEBUG] DELETE https://localhost:55015/_security/user/v-display-name-role-name-e7EkCky59U36s2eh9OLq-1707264931 2024/02/06 16:15:32 [DEBUG] DELETE https://localhost:55015/_security/role/v-display-name-role-name-j3IrCv9GmmAKBLnnjUmy-1707264931 2024/02/06 16:15:32 [DEBUG] DELETE https://localhost:55015/_security/user/v-display-name-role-name-j3IrCv9GmmAKBLnnjUmy-1707264931 === RUN TestIntegration_Container/7.9.1/test_update_user 2024/02/06 16:15:32 [DEBUG] POST https://localhost:55015/_security/user/vault/_password === RUN TestIntegration_Container/8.1.3 === RUN TestIntegration_Container/8.1.3/test_init 2024/02/06 16:15:42 [DEBUG] GET https://localhost:55017/_security/role/vault-test === RUN TestIntegration_Container/8.1.3/test_create_user 2024/02/06 16:15:42 [DEBUG] POST https://localhost:55017/_security/role/v-display-name-role-name-gVUv8Is0NtGAnLxcaUTK-1707264942 2024/02/06 16:15:42 [DEBUG] POST https://localhost:55017/_security/user/v-display-name-role-name-gVUv8Is0NtGAnLxcaUTK-1707264942 2024/02/06 16:15:42 [DEBUG] POST https://localhost:55017/_security/user/v-display-name-role-name-5yerNvltpWxeI9KCqFtP-1707264942 === RUN TestIntegration_Container/8.1.3/test_delete_user 2024/02/06 16:15:42 [DEBUG] DELETE https://localhost:55017/_security/role/v-display-name-role-name-gVUv8Is0NtGAnLxcaUTK-1707264942 2024/02/06 16:15:42 [DEBUG] DELETE https://localhost:55017/_security/user/v-display-name-role-name-gVUv8Is0NtGAnLxcaUTK-1707264942 2024/02/06 16:15:42 [DEBUG] DELETE https://localhost:55017/_security/role/v-display-name-role-name-5yerNvltpWxeI9KCqFtP-1707264942 2024/02/06 16:15:42 [DEBUG] DELETE https://localhost:55017/_security/user/v-display-name-role-name-5yerNvltpWxeI9KCqFtP-1707264942 === RUN TestIntegration_Container/8.1.3/test_update_user 2024/02/06 16:15:43 [DEBUG] POST https://localhost:55017/_security/user/vault/_password --- PASS: TestIntegration_Container (45.97s) --- PASS: TestIntegration_Container/6.8.13 (23.95s) --- PASS: TestIntegration_Container/6.8.13/test_init (0.07s) --- PASS: TestIntegration_Container/6.8.13/test_create_user (0.63s) --- PASS: TestIntegration_Container/6.8.13/test_delete_user (0.20s) --- PASS: TestIntegration_Container/6.8.13/test_update_user (0.43s) --- PASS: TestIntegration_Container/7.9.1 (11.02s) --- PASS: TestIntegration_Container/7.9.1/test_init (0.04s) --- PASS: TestIntegration_Container/7.9.1/test_create_user (0.43s) --- PASS: TestIntegration_Container/7.9.1/test_delete_user (0.17s) --- PASS: TestIntegration_Container/7.9.1/test_update_user (0.33s) --- PASS: TestIntegration_Container/8.1.3 (11.00s) --- PASS: TestIntegration_Container/8.1.3/test_init (0.04s) --- PASS: TestIntegration_Container/8.1.3/test_create_user (0.43s) --- PASS: TestIntegration_Container/8.1.3/test_delete_user (0.15s) --- PASS: TestIntegration_Container/8.1.3/test_update_user (0.36s) PASS ok github.com/hashicorp/vault-plugin-database-elasticsearch 87.672s ```