Skip to content

Commit 86fa97a

Browse files
committed
Merge elastic#31601 for temp creds too
1 parent ff29696 commit 86fa97a

File tree

1 file changed

+61
-2
lines changed

1 file changed

+61
-2
lines changed

plugins/repository-s3/qa/amazon-s3/src/test/resources/rest-api-spec/test/repository_s3/20_repository_temporary_credentials.yml

+61-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Integration tests for repository-s3
2+
23
---
3-
"Snapshot/Restore with repository-s3 using temporary credentials":
4+
setup:
45

56
# Register repository with temporary credentials
67
- do:
@@ -15,7 +16,8 @@
1516
canned_acl: private
1617
storage_class: standard
1718

18-
- match: { acknowledged: true }
19+
---
20+
"Snapshot/Restore with repository-s3 using temporary credentials":
1921

2022
# Get repository
2123
- do:
@@ -178,6 +180,63 @@
178180
repository: repository_temporary
179181
snapshot: snapshot-one
180182

183+
---
184+
"Register a repository with a non existing bucket":
185+
186+
- do:
187+
catch: /repository_exception/
188+
snapshot.create_repository:
189+
repository: repository_temporary
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_temporary
203+
body:
204+
type: s3
205+
settings:
206+
bucket: repository_temporary
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_temporary
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_temporary
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_temporary
234+
snapshot: missing
235+
wait_for_completion: true
236+
237+
---
238+
teardown:
239+
181240
# Remove our repository
182241
- do:
183242
snapshot.delete_repository:

0 commit comments

Comments
 (0)