opentelekomcloud / vault-plugin-secrets-openstack

Create OpenStack tokens using HashiCorp Vault
Apache License 2.0
23 stars 6 forks source link

Add acceptance test for `creds` path #51

Closed lego963 closed 2 years ago

lego963 commented 2 years ago

What issue resolves

Resolves: #49

Acceptance tests performed

rgyrbu@vrnnb-prc480:/windir/c/Users/rodgyrbu/Documents/vault-plugin-secrets-openstack$ make functional
Running acceptance tests...
=== RUN   TestPlugin
=== RUN   TestPlugin/TestCloudLifecycle
=== RUN   TestPlugin/TestCloudLifecycle/WriteCloud
=== RUN   TestPlugin/TestCloudLifecycle/ReadCloud
=== RUN   TestPlugin/TestCloudLifecycle/ListClouds
=== RUN   TestPlugin/TestCloudLifecycle/ListClouds/method-LIST
=== PAUSE TestPlugin/TestCloudLifecycle/ListClouds/method-LIST
=== RUN   TestPlugin/TestCloudLifecycle/ListClouds/method-GET
=== PAUSE TestPlugin/TestCloudLifecycle/ListClouds/method-GET
=== CONT  TestPlugin/TestCloudLifecycle/ListClouds/method-LIST
=== CONT  TestPlugin/TestCloudLifecycle/ListClouds/method-GET
=== RUN   TestPlugin/TestCloudLifecycle/DeleteCloud
=== RUN   TestPlugin/TestCredsLifecycle
=== RUN   TestPlugin/TestCredsLifecycle/root_token
=== RUN   TestPlugin/TestCredsLifecycle/user_token
=== RUN   TestPlugin/TestCredsLifecycle/user_password
=== RUN   TestPlugin/TestInfo
=== RUN   TestPlugin/TestRoleLifecycle
    roles_test.go:51: Cloud with name `ft74d6vuz0` was created
=== RUN   TestPlugin/TestRoleLifecycle/WriteRole
=== RUN   TestPlugin/TestRoleLifecycle/ReadRole
=== RUN   TestPlugin/TestRoleLifecycle/ListRoles
=== RUN   TestPlugin/TestRoleLifecycle/ListRoles/method-LIST
=== PAUSE TestPlugin/TestRoleLifecycle/ListRoles/method-LIST
=== RUN   TestPlugin/TestRoleLifecycle/ListRoles/method-GET
=== PAUSE TestPlugin/TestRoleLifecycle/ListRoles/method-GET
=== CONT  TestPlugin/TestRoleLifecycle/ListRoles/method-LIST
=== CONT  TestPlugin/TestRoleLifecycle/ListRoles/method-GET
=== RUN   TestPlugin/TestRoleLifecycle/DeleteRole
=== CONT  TestPlugin/TestRoleLifecycle
    plugin_test.go:308: Cloud with name `ft74d6vuz0` has been removed
=== RUN   TestPlugin/TestRootRotate
    rotate_test.go:50: Cloud with name `default` was created
    rotate_test.go:53: Cloud with name `jzdn` was created
    plugin_test.go:308: Cloud with name `jzdn` has been removed
    plugin_test.go:308: Cloud with name `default` has been removed
--- PASS: TestPlugin (14.44s)
    --- PASS: TestPlugin/TestCloudLifecycle (0.30s)
        --- PASS: TestPlugin/TestCloudLifecycle/WriteCloud (0.30s)
        --- PASS: TestPlugin/TestCloudLifecycle/ReadCloud (0.00s)
        --- PASS: TestPlugin/TestCloudLifecycle/ListClouds (0.00s)
            --- PASS: TestPlugin/TestCloudLifecycle/ListClouds/method-LIST (0.00s)
            --- PASS: TestPlugin/TestCloudLifecycle/ListClouds/method-GET (0.00s)
        --- PASS: TestPlugin/TestCloudLifecycle/DeleteCloud (0.00s)
    --- PASS: TestPlugin/TestCredsLifecycle (7.93s)
        --- PASS: TestPlugin/TestCredsLifecycle/root_token (3.91s)
        --- PASS: TestPlugin/TestCredsLifecycle/user_token (1.94s)
        --- PASS: TestPlugin/TestCredsLifecycle/user_password (1.12s)
    --- PASS: TestPlugin/TestInfo (0.00s)
    --- PASS: TestPlugin/TestRoleLifecycle (0.02s)
        --- PASS: TestPlugin/TestRoleLifecycle/WriteRole (0.01s)
        --- PASS: TestPlugin/TestRoleLifecycle/ReadRole (0.00s)
        --- PASS: TestPlugin/TestRoleLifecycle/ListRoles (0.00s)
            --- PASS: TestPlugin/TestRoleLifecycle/ListRoles/method-LIST (0.00s)
            --- PASS: TestPlugin/TestRoleLifecycle/ListRoles/method-GET (0.00s)
        --- PASS: TestPlugin/TestRoleLifecycle/DeleteRole (0.00s)
    --- PASS: TestPlugin/TestRootRotate (4.77s)
PASS
ok      github.com/opentelekomcloud/vault-plugin-secrets-openstack/acceptance   14.450s
otc-zuul[bot] commented 2 years ago

Build succeeded.

:heavy_check_mark: otc-golangci-lint SUCCESS in 2m 37s :heavy_check_mark: golang-make-vet SUCCESS in 2m 57s :heavy_check_mark: golang-make-test SUCCESS in 2m 43s :heavy_check_mark: goreleaser-build SUCCESS in 3m 58s