|
1 | 1 | # Integration tests for repository-s3
|
| 2 | + |
2 | 3 | ---
|
3 |
| -"Snapshot/Restore with repository-s3 using permanent credentials": |
| 4 | +setup: |
4 | 5 |
|
5 | 6 | # Register repository with permanent credentials
|
6 | 7 | - do:
|
|
15 | 16 | canned_acl: private
|
16 | 17 | storage_class: standard
|
17 | 18 |
|
18 |
| - - match: { acknowledged: true } |
| 19 | +--- |
| 20 | +"Snapshot/Restore with repository-s3 using permanent credentials": |
19 | 21 |
|
20 | 22 | # Get repository
|
21 | 23 | - do:
|
|
178 | 180 | repository: repository_permanent
|
179 | 181 | snapshot: snapshot-one
|
180 | 182 |
|
| 183 | +--- |
| 184 | +"Register a repository with a non existing bucket": |
| 185 | + |
| 186 | + - do: |
| 187 | + catch: /repository_exception/ |
| 188 | + snapshot.create_repository: |
| 189 | + repository: repository_permanent |
| 190 | + body: |
| 191 | + type: s3 |
| 192 | + settings: |
| 193 | + bucket: zHHkfSqlbnBsbpSgvCYtxrEfFLqghXtyPvvvKPNBnRCicNHQLE |
| 194 | + client: integration_test |
| 195 | + |
| 196 | +--- |
| 197 | +"Register a repository with a non existing client": |
| 198 | + |
| 199 | + - do: |
| 200 | + catch: /repository_exception/ |
| 201 | + snapshot.create_repository: |
| 202 | + repository: repository_permanent |
| 203 | + body: |
| 204 | + type: s3 |
| 205 | + settings: |
| 206 | + bucket: repository_permanent |
| 207 | + client: unknown |
| 208 | + |
| 209 | +--- |
| 210 | +"Get a non existing snapshot": |
| 211 | + |
| 212 | + - do: |
| 213 | + catch: /snapshot_missing_exception/ |
| 214 | + snapshot.get: |
| 215 | + repository: repository_permanent |
| 216 | + snapshot: missing |
| 217 | + |
| 218 | +--- |
| 219 | +"Delete a non existing snapshot": |
| 220 | + |
| 221 | + - do: |
| 222 | + catch: /snapshot_missing_exception/ |
| 223 | + snapshot.delete: |
| 224 | + repository: repository_permanent |
| 225 | + snapshot: missing |
| 226 | + |
| 227 | +--- |
| 228 | +"Restore a non existing snapshot": |
| 229 | + |
| 230 | + - do: |
| 231 | + catch: /snapshot_restore_exception/ |
| 232 | + snapshot.restore: |
| 233 | + repository: repository_permanent |
| 234 | + snapshot: missing |
| 235 | + wait_for_completion: true |
| 236 | + |
| 237 | +--- |
| 238 | +teardown: |
| 239 | + |
181 | 240 | # Remove our repository
|
182 | 241 | - do:
|
183 | 242 | snapshot.delete_repository:
|
|
0 commit comments