Commit bd37e14
authored
Vault: Rotate Static Role Credentials (#100)
Vault: Rotate Static Role Credentials
This PR add role-rotate path and relevant acceptance/unit tests, api documentation.
Closes: #74
Acceptance tests (failing on unrelated info test):
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_password
=== RUN TestPlugin/TestCredsLifecycle/root_token
=== RUN TestPlugin/TestCredsLifecycle/user_token
=== RUN TestPlugin/TestInfo
info_test.go:42:
Error Trace: info_test.go:42
Error: Should NOT be empty, but was &{ }
Test: TestPlugin/TestInfo
=== RUN TestPlugin/TestRoleLifecycle
roles_test.go:53: Cloud with name wbnyh80fsd 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 wbnyh80fsd has been removed
=== RUN TestPlugin/TestRootRotate
rotate_test.go:65: Cloud with name default1 was created
rotate_test.go:68: Cloud with name xvoi was created
plugin_test.go:337: Cloud with name xvoi has been removed
plugin_test.go:337: Cloud with name default1 has been removed
=== RUN TestPlugin/TestStaticCredsLifecycle
=== RUN TestPlugin/TestStaticCredsLifecycle/user_password
=== RUN TestPlugin/TestStaticCredsLifecycle/user_token
=== RUN TestPlugin/TestStaticRoleLifecycle
=== RUN TestPlugin/TestStaticRoleLifecycle/WriteRole
=== RUN TestPlugin/TestStaticRoleLifecycle/ReadRole
=== RUN TestPlugin/TestStaticRoleLifecycle/ListRoles
=== RUN TestPlugin/TestStaticRoleLifecycle/ListRoles/method-LIST
=== PAUSE TestPlugin/TestStaticRoleLifecycle/ListRoles/method-LIST
=== RUN TestPlugin/TestStaticRoleLifecycle/ListRoles/method-GET
=== PAUSE TestPlugin/TestStaticRoleLifecycle/ListRoles/method-GET
=== CONT TestPlugin/TestStaticRoleLifecycle/ListRoles/method-LIST
=== CONT TestPlugin/TestStaticRoleLifecycle/ListRoles/method-GET
=== RUN TestPlugin/TestStaticRoleLifecycle/DeleteRole
--- FAIL: TestPlugin (22.93s)
--- PASS: TestPlugin/TestCloudLifecycle (0.11s)
--- PASS: TestPlugin/TestCloudLifecycle/WriteCloud (0.10s)
--- 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 (5.89s)
--- PASS: TestPlugin/TestCredsLifecycle/user_password (1.90s)
--- PASS: TestPlugin/TestCredsLifecycle/root_token (0.97s)
--- PASS: TestPlugin/TestCredsLifecycle/user_token (2.15s)
--- FAIL: 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 (5.42s)
--- PASS: TestPlugin/TestStaticCredsLifecycle (8.19s)
--- PASS: TestPlugin/TestStaticCredsLifecycle/user_password (3.34s)
--- PASS: TestPlugin/TestStaticCredsLifecycle/user_token (3.77s)
--- PASS: TestPlugin/TestStaticRoleLifecycle (3.09s)
--- PASS: TestPlugin/TestStaticRoleLifecycle/WriteRole (1.13s)
--- PASS: TestPlugin/TestStaticRoleLifecycle/ReadRole (0.01s)
--- PASS: TestPlugin/TestStaticRoleLifecycle/ListRoles (0.00s)
--- PASS: TestPlugin/TestStaticRoleLifecycle/ListRoles/method-LIST (0.01s)
--- PASS: TestPlugin/TestStaticRoleLifecycle/ListRoles/method-GET (0.01s)
--- PASS: TestPlugin/TestStaticRoleLifecycle/DeleteRole (0.00s)
FAIL
FAIL github.com/opentelekomcloud/vault-plugin-secrets-openstack/acceptance 23.518s
FAIL
make: *** [functional] Error 1
Reviewed-by: Aloento <None>
Reviewed-by: Anton Sidelnikov <None>1 parent 384f556 commit bd37e14
File tree
5 files changed
+235
-6
lines changed- acceptance
- doc/source
- openstack
5 files changed
+235
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
108 | 116 | | |
109 | 117 | | |
110 | 118 | | |
| |||
128 | 136 | | |
129 | 137 | | |
130 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
131 | 143 | | |
132 | 144 | | |
133 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
18 | 26 | | |
19 | 27 | | |
20 | 28 | | |
| |||
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
41 | 72 | | |
42 | 73 | | |
43 | 74 | | |
| |||
112 | 143 | | |
113 | 144 | | |
114 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
115 | 185 | | |
116 | 186 | | |
117 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
48 | | - | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| |||
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
61 | | - | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
81 | | - | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
| |||
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
123 | | - | |
| 127 | + | |
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
| |||
146 | 150 | | |
147 | 151 | | |
148 | 152 | | |
149 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
150 | 274 | | |
151 | 275 | | |
152 | 276 | | |
| |||
156 | 280 | | |
157 | 281 | | |
158 | 282 | | |
| 283 | + | |
159 | 284 | | |
160 | 285 | | |
161 | 286 | | |
| |||
0 commit comments