Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveCTurner committed Jul 2, 2018
1 parent aafb0aa commit ff29696
Showing 1 changed file with 61 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Integration tests for repository-s3

---
"Snapshot/Restore with repository-s3 using permanent credentials":
setup:

# Register repository with permanent credentials
- do:
Expand All @@ -15,7 +16,8 @@
canned_acl: private
storage_class: standard

- match: { acknowledged: true }
---
"Snapshot/Restore with repository-s3 using permanent credentials":

# Get repository
- do:
Expand Down Expand Up @@ -178,6 +180,63 @@
repository: repository_permanent
snapshot: snapshot-one

---
"Register a repository with a non existing bucket":

- do:
catch: /repository_exception/
snapshot.create_repository:
repository: repository_permanent
body:
type: s3
settings:
bucket: zHHkfSqlbnBsbpSgvCYtxrEfFLqghXtyPvvvKPNBnRCicNHQLE
client: integration_test

---
"Register a repository with a non existing client":

- do:
catch: /repository_exception/
snapshot.create_repository:
repository: repository_permanent
body:
type: s3
settings:
bucket: repository_permanent
client: unknown

---
"Get a non existing snapshot":

- do:
catch: /snapshot_missing_exception/
snapshot.get:
repository: repository_permanent
snapshot: missing

---
"Delete a non existing snapshot":

- do:
catch: /snapshot_missing_exception/
snapshot.delete:
repository: repository_permanent
snapshot: missing

---
"Restore a non existing snapshot":

- do:
catch: /snapshot_restore_exception/
snapshot.restore:
repository: repository_permanent
snapshot: missing
wait_for_completion: true

---
teardown:

# Remove our repository
- do:
snapshot.delete_repository:
Expand Down

0 comments on commit ff29696

Please sign in to comment.