Commit c5b8d35
authored
Restructure response of
Restructure response of `creds` path
Description
Make response of creds path in clouds.yaml like style
Resolves: #78
Acceptance tests
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/user_token
=== RUN TestPlugin/TestCredsLifecycle/user_password
=== RUN TestPlugin/TestCredsLifecycle/root_token
=== RUN TestPlugin/TestInfo
=== RUN TestPlugin/TestRoleLifecycle
roles_test.go:53: Cloud with name `9u8zkyv1eq` 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:337: Cloud with name `9u8zkyv1eq` has been removed
=== RUN TestPlugin/TestRootRotate
rotate_test.go:65: Cloud with name `default1` was created
rotate_test.go:68: Cloud with name `5yai` was created
plugin_test.go:337: Cloud with name `5yai` has been removed
plugin_test.go:337: Cloud with name `default1` has been removed
--- PASS: TestPlugin (11.26s)
--- PASS: TestPlugin/TestCloudLifecycle (0.44s)
--- PASS: TestPlugin/TestCloudLifecycle/WriteCloud (0.43s)
--- 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 (4.77s)
--- PASS: TestPlugin/TestCredsLifecycle/user_token (2.52s)
--- PASS: TestPlugin/TestCredsLifecycle/user_password (0.79s)
--- PASS: TestPlugin/TestCredsLifecycle/root_token (0.58s)
--- PASS: TestPlugin/TestInfo (0.00s)
--- PASS: TestPlugin/TestRoleLifecycle (0.01s)
--- PASS: TestPlugin/TestRoleLifecycle/WriteRole (0.00s)
--- 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.42s)
PASS
ok github.com/opentelekomcloud/vault-plugin-secrets-openstack/acceptance 11.264s
Unit tests
=== RUN TestBackend_sharedCloud
--- PASS: TestBackend_sharedCloud (0.00s)
=== RUN TestBackend_sharedCloud/existing
--- PASS: TestBackend_sharedCloud/existing (0.00s)
=== RUN TestBackend_sharedCloud/non-existing
--- PASS: TestBackend_sharedCloud/non-existing (0.00s)
=== RUN TestSharedCloud_client
--- PASS: TestSharedCloud_client (0.00s)
=== RUN TestSharedCloud_client/existing-client
--- PASS: TestSharedCloud_client/existing-client (0.00s)
=== RUN TestSharedCloud_client/new-client
--- PASS: TestSharedCloud_client/new-client (0.00s)
=== RUN TestCloudCreate
--- PASS: TestCloudCreate (0.00s)
=== RUN TestCloudCreate/EmptyConfig
--- PASS: TestCloudCreate/EmptyConfig (0.00s)
=== RUN TestCloudCreate/Create
--- PASS: TestCloudCreate/Create (0.00s)
=== RUN TestCloudCreate/Update
--- PASS: TestCloudCreate/Update (0.00s)
=== RUN TestCloudCreate/Read
--- PASS: TestCloudCreate/Read (0.00s)
=== RUN TestCloudCreate/Delete
--- PASS: TestCloudCreate/Delete (0.00s)
=== RUN TestCloudCreate/List
--- PASS: TestCloudCreate/List (0.00s)
=== RUN TestCredentialsRead_ok
--- PASS: TestCredentialsRead_ok (0.01s)
=== RUN TestCredentialsRead_ok/root_token
--- PASS: TestCredentialsRead_ok/root_token (0.00s)
=== RUN TestCredentialsRead_ok/user_token
--- PASS: TestCredentialsRead_ok/user_token (0.00s)
=== RUN TestCredentialsRead_ok/user_password
--- PASS: TestCredentialsRead_ok/user_password (0.00s)
=== RUN TestCredentialsRead_ok/token_revoke
--- PASS: TestCredentialsRead_ok/token_revoke (0.00s)
=== RUN TestCredentialsRead_ok/user_password_revoke
--- PASS: TestCredentialsRead_ok/user_password_revoke (0.00s)
=== RUN TestCredentialsRead_error
--- PASS: TestCredentialsRead_error (0.00s)
=== RUN TestCredentialsRead_error/read-fail
--- PASS: TestCredentialsRead_error/read-fail (0.00s)
=== RUN TestCredentialsRead_error/no-users-token-post
--- PASS: TestCredentialsRead_error/no-users-token-post (0.00s)
=== RUN TestCredentialsRead_error/no-user-post
--- PASS: TestCredentialsRead_error/no-user-post (0.00s)
=== RUN TestCredentialsRevoke_error
--- PASS: TestCredentialsRevoke_error (0.00s)
=== RUN TestCredentialsRevoke_error/no-token-delete
--- PASS: TestCredentialsRevoke_error/no-token-delete (0.00s)
=== RUN TestCredentialsRevoke_error/no-user-delete
--- PASS: TestCredentialsRevoke_error/no-user-delete (0.00s)
=== RUN TestInfoRead
=== PAUSE TestInfoRead
=== CONT TestInfoRead
--- PASS: TestInfoRead (0.00s)
=== RUN TestRoleStoragePath
--- PASS: TestRoleStoragePath (0.00s)
=== RUN TestRoleGet
=== PAUSE TestRoleGet
=== CONT TestRoleGet
--- PASS: TestRoleGet (0.00s)
=== RUN TestRoleGet/existing
=== PAUSE TestRoleGet/existing
=== CONT TestRoleGet/existing
--- PASS: TestRoleGet/existing (0.00s)
=== RUN TestRoleGet/not-existing
=== PAUSE TestRoleGet/not-existing
=== CONT TestRoleGet/not-existing
--- PASS: TestRoleGet/not-existing (0.00s)
=== RUN TestRoleGet/get-err
=== PAUSE TestRoleGet/get-err
=== CONT TestRoleGet/get-err
--- PASS: TestRoleGet/get-err (0.00s)
=== RUN TestRoleExistence
=== PAUSE TestRoleExistence
=== CONT TestRoleExistence
--- PASS: TestRoleExistence (0.00s)
=== RUN TestRoleExistence/existing
=== PAUSE TestRoleExistence/existing
=== CONT TestRoleExistence/existing
--- PASS: TestRoleExistence/existing (0.00s)
=== RUN TestRoleExistence/not-existing
=== PAUSE TestRoleExistence/not-existing
=== CONT TestRoleExistence/not-existing
--- PASS: TestRoleExistence/not-existing (0.00s)
=== RUN TestRoleExistence/get-err
=== PAUSE TestRoleExistence/get-err
=== CONT TestRoleExistence/get-err
--- PASS: TestRoleExistence/get-err (0.00s)
=== RUN TestRoleList
=== PAUSE TestRoleList
=== CONT TestRoleList
--- PASS: TestRoleList (0.00s)
=== RUN TestRoleList/ok
--- PASS: TestRoleList/ok (0.00s)
=== RUN TestRoleList/error
=== PAUSE TestRoleList/error
=== CONT TestRoleList/error
--- PASS: TestRoleList/error (0.00s)
=== RUN TestRoleList/filter
=== PAUSE TestRoleList/filter
=== CONT TestRoleList/filter
--- PASS: TestRoleList/filter (0.00s)
=== RUN TestRoleList/filter-get-err
=== PAUSE TestRoleList/filter-get-err
=== CONT TestRoleList/filter-get-err
--- PASS: TestRoleList/filter-get-err (0.00s)
=== RUN TestRoleDelete
=== PAUSE TestRoleDelete
=== CONT TestRoleDelete
--- PASS: TestRoleDelete (0.00s)
=== RUN TestRoleDelete/existing
=== PAUSE TestRoleDelete/existing
=== CONT TestRoleDelete/existing
--- PASS: TestRoleDelete/existing (0.00s)
=== RUN TestRoleDelete/not-existing
=== PAUSE TestRoleDelete/not-existing
=== CONT TestRoleDelete/not-existing
--- PASS: TestRoleDelete/not-existing (0.00s)
=== RUN TestRoleDelete/error
=== PAUSE TestRoleDelete/error
=== CONT TestRoleDelete/error
--- PASS: TestRoleDelete/error (0.00s)
=== RUN TestRoleDelete/error-get
=== PAUSE TestRoleDelete/error-get
=== CONT TestRoleDelete/error-get
--- PASS: TestRoleDelete/error-get (0.00s)
=== RUN TestRoleCreate
=== PAUSE TestRoleCreate
=== CONT TestRoleCreate
--- PASS: TestRoleCreate (0.01s)
=== RUN TestRoleCreate/ok
--- PASS: TestRoleCreate/ok (0.00s)
=== RUN TestRoleCreate/ok/token
=== PAUSE TestRoleCreate/ok/token
=== CONT TestRoleCreate/ok/token
--- PASS: TestRoleCreate/ok/token (0.00s)
=== RUN TestRoleCreate/ok/password
=== PAUSE TestRoleCreate/ok/password
=== CONT TestRoleCreate/ok/password
--- PASS: TestRoleCreate/ok/password (0.00s)
=== RUN TestRoleCreate/ok/ttl
=== PAUSE TestRoleCreate/ok/ttl
=== CONT TestRoleCreate/ok/ttl
--- PASS: TestRoleCreate/ok/ttl (0.00s)
=== RUN TestRoleCreate/ok/endpoint-override
=== PAUSE TestRoleCreate/ok/endpoint-override
=== CONT TestRoleCreate/ok/endpoint-override
--- PASS: TestRoleCreate/ok/endpoint-override (0.00s)
=== RUN TestRoleCreate/ok/admin
=== PAUSE TestRoleCreate/ok/admin
=== CONT TestRoleCreate/ok/admin
--- PASS: TestRoleCreate/ok/admin (0.00s)
=== RUN TestRoleCreate/error
--- PASS: TestRoleCreate/error (0.00s)
=== RUN TestRoleCreate/error/root-password
=== PAUSE TestRoleCreate/error/root-password
=== CONT TestRoleCreate/error/root-password
--- PASS: TestRoleCreate/error/root-password (0.00s)
=== RUN TestRoleCreate/error/root-user-groups
=== PAUSE TestRoleCreate/error/root-user-groups
=== CONT TestRoleCreate/error/root-user-groups
--- PASS: TestRoleCreate/error/root-user-groups (0.00s)
=== RUN TestRoleCreate/error/root-user-roles
=== PAUSE TestRoleCreate/error/root-user-roles
=== CONT TestRoleCreate/error/root-user-roles
--- PASS: TestRoleCreate/error/root-user-roles (0.00s)
=== RUN TestRoleCreate/error/without-cloud
=== PAUSE TestRoleCreate/error/without-cloud
=== CONT TestRoleCreate/error/without-cloud
--- PASS: TestRoleCreate/error/without-cloud (0.00s)
=== RUN TestRoleCreate/error/root-ttl
=== PAUSE TestRoleCreate/error/root-ttl
=== CONT TestRoleCreate/error/root-ttl
--- PASS: TestRoleCreate/error/root-ttl (0.00s)
=== RUN TestRoleCreate/not-existing-cloud
=== PAUSE TestRoleCreate/not-existing-cloud
=== CONT TestRoleCreate/not-existing-cloud
--- PASS: TestRoleCreate/not-existing-cloud (0.00s)
=== RUN TestRoleCreate/save-store-err
=== PAUSE TestRoleCreate/save-store-err
=== CONT TestRoleCreate/save-store-err
--- PASS: TestRoleCreate/save-store-err (0.00s)
=== RUN TestRoleUpdate
=== PAUSE TestRoleUpdate
=== CONT TestRoleUpdate
--- PASS: TestRoleUpdate (0.00s)
=== RUN TestRoleUpdate/ok
--- PASS: TestRoleUpdate/ok (0.00s)
=== RUN TestRoleUpdate/not-existing
--- PASS: TestRoleUpdate/not-existing (0.00s)
=== RUN TestRotateRootCredentials_ok
--- PASS: TestRotateRootCredentials_ok (0.00s)
=== RUN TestRotateRootCredentials_error
=== PAUSE TestRotateRootCredentials_error
=== CONT TestRotateRootCredentials_error
--- PASS: TestRotateRootCredentials_error (0.01s)
=== RUN TestRotateRootCredentials_error/read-fail
--- PASS: TestRotateRootCredentials_error/read-fail (0.00s)
=== RUN TestRotateRootCredentials_error/no-post
--- PASS: TestRotateRootCredentials_error/no-post (0.00s)
=== RUN TestRotateRootCredentials_error/no-get
--- PASS: TestRotateRootCredentials_error/no-get (0.00s)
=== RUN TestRotateRootCredentials_error/no-change
--- PASS: TestRotateRootCredentials_error/no-change (0.00s)
PASS
ok github.com/opentelekomcloud/vault-plugin-secrets-openstack/openstack (cached)
? github.com/opentelekomcloud/vault-plugin-secrets-openstack/openstack/fixtures [no test files]
Process finished with the exit code 0
Reviewed-by: Vladimir Vshivkov <None>
Reviewed-by: Anton Sidelnikov <None>creds path (#79)1 parent 5c9cc39 commit c5b8d35
File tree
3 files changed
+85
-31
lines changed- acceptance
- openstack
3 files changed
+85
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
| |||
81 | 88 | | |
82 | 89 | | |
83 | 90 | | |
84 | | - | |
| 91 | + | |
85 | 92 | | |
86 | 93 | | |
87 | 94 | | |
| |||
137 | 144 | | |
138 | 145 | | |
139 | 146 | | |
140 | | - | |
| 147 | + | |
141 | 148 | | |
142 | 149 | | |
143 | 150 | | |
144 | 151 | | |
145 | 152 | | |
146 | 153 | | |
147 | 154 | | |
| 155 | + | |
148 | 156 | | |
149 | 157 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 42 | | |
47 | 43 | | |
48 | 44 | | |
49 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
| |||
118 | 121 | | |
119 | 122 | | |
120 | 123 | | |
| 124 | + | |
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
| |||
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
159 | | - | |
160 | | - | |
161 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
162 | 172 | | |
163 | 173 | | |
164 | 174 | | |
165 | 175 | | |
166 | 176 | | |
| 177 | + | |
167 | 178 | | |
168 | 179 | | |
169 | 180 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
183 | 190 | | |
184 | 191 | | |
185 | 192 | | |
| |||
191 | 198 | | |
192 | 199 | | |
193 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
194 | 205 | | |
195 | 206 | | |
196 | 207 | | |
| |||
236 | 247 | | |
237 | 248 | | |
238 | 249 | | |
239 | | - | |
| 250 | + | |
240 | 251 | | |
241 | | - | |
| 252 | + | |
242 | 253 | | |
243 | 254 | | |
244 | | - | |
| 255 | + | |
| 256 | + | |
245 | 257 | | |
246 | 258 | | |
247 | 259 | | |
| |||
452 | 464 | | |
453 | 465 | | |
454 | 466 | | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
123 | | - | |
| 125 | + | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
| |||
0 commit comments