forked from titan-data/titan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from titan-data/master
Feature/mongo clone testing (titan-data#102)
- Loading branch information
Showing
6 changed files
with
236 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
tests: | ||
- "aws configure access_key_id": | ||
command: aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID | ||
env: | ||
get: | ||
- AWS_ACCESS_KEY_ID | ||
- "aws configure access_secret_key": | ||
command: aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY | ||
env: | ||
get: | ||
- AWS_SECRET_ACCESS_KEY | ||
- "aws configure region": | ||
command: aws configure set region $AWS_REGION | ||
env: | ||
get: | ||
- AWS_REGION | ||
- "can install titan": | ||
command: titan install | ||
wait: 10 | ||
stdout: | ||
contains: Titan cli successfully installed, happy data versioning :) | ||
files: | ||
- matrix-tests.yml: | ||
parameters: | ||
DB: postgres | ||
VERSION: 12.0 | ||
PORT: 5432:5432 | ||
URI: s3://titan-data-testdata/e2etest | ||
- matrix-tests.yml: | ||
parameters: | ||
DB: postgres | ||
VERSION: 11.5 | ||
PORT: 5432:5432 | ||
URI: s3://titan-data-testdata/e2etest | ||
- matrix-tests.yml: | ||
parameters: | ||
DB: mongo | ||
VERSION: 4 | ||
PORT: 27017:27017 | ||
URI: s3://titan-data-testdata/e2etest | ||
- matrix-tests.yml: | ||
parameters: | ||
DB: mongo | ||
VERSION: 3.6.14 | ||
PORT: 27017:27017 | ||
URI: s3://titan-data-testdata/e2etest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
tests: | ||
- "$DB > $VERSION > run": | ||
command: titan run -- --name $DB-test -p $PORT -d $DB:$VERSION | ||
stdout: | ||
contains: | ||
- Creating repository $DB-test | ||
- Running controlled container $DB-test | ||
env: | ||
get: | ||
- DB | ||
- VERSION | ||
- PORT | ||
- "$DB > $VERSION > commit": | ||
command: [titan, commit, -m, Test Commit, $DB-test] | ||
stdout: | ||
contains: Commit | ||
env: | ||
get: | ||
- DB | ||
- VERSION | ||
set: | ||
- COMMIT_GUID: | ||
split: | ||
delimiter: " " | ||
position: 1 | ||
- "$DB > $VERSION > checkout": | ||
command: [titan, checkout, --commit, $COMMIT_GUID, $DB-test] | ||
wait: 5 | ||
stdout: |- | ||
Stopping container $DB-test | ||
Checkout $COMMIT_GUID | ||
Starting container $DB-test | ||
$COMMIT_GUID checked out | ||
env: | ||
get: | ||
- COMMIT_GUID | ||
- DB | ||
- VERSION | ||
- "$DB > $VERSION > remote > add > s3": | ||
command: titan remote add -r s3 $URI $DB-test | ||
env: | ||
get: | ||
- DB | ||
- VERSION | ||
- URI | ||
- "$DB > $VERSION > remote > ls": | ||
command: titan remote ls $DB-test | ||
stdout: | ||
contains: $URI | ||
env: | ||
get: | ||
- DB | ||
- VERSION | ||
- URI | ||
- "$DB > $VERSION > remote > log > missing commit": | ||
command: titan remote log $DB-test | ||
stdout: | ||
excludes: Commit $COMMIT_GUID | ||
env: | ||
get: | ||
- DB | ||
- VERSION | ||
- COMMIT_GUID | ||
- "$DB > $VERSION > push": | ||
command: [titan, push, -r, s3, -c, $COMMIT_GUID, $DB-test] | ||
stdout: | ||
contains: | ||
- Pushing $COMMIT_GUID to 's3' | ||
- Push completed successfully | ||
env: | ||
get: | ||
- DB | ||
- VERSION | ||
- COMMIT_GUID | ||
- "$DB > $VERSION > remote > log > has commit": | ||
command: titan remote log $DB-test | ||
stdout: | ||
contains: Commit $COMMIT_GUID | ||
env: | ||
get: | ||
- DB | ||
- VERSION | ||
- COMMIT_GUID | ||
- "$DB > $VERSION > delete > commit": | ||
command: titan delete -c $COMMIT_GUID $DB-test | ||
stdout: $COMMIT_GUID deleted | ||
env: | ||
get: | ||
- DB | ||
- VERSION | ||
- COMMIT_GUID | ||
- "$DB > $VERSION > log > missing commit": | ||
command: titan log $DB-test | ||
stdout: | ||
excludes: | ||
- $COMMIT_GUID | ||
env: | ||
get: | ||
- DB | ||
- VERSION | ||
- COMMIT_GUID | ||
- "$DB > $VERSION > pull": | ||
command: [titan, pull, -c, $COMMIT_GUID, -r, s3, $DB-test] | ||
stdout: | ||
contains: | ||
- Pulling $COMMIT_GUID from 's3' | ||
- Pull completed successfully | ||
env: | ||
get: | ||
- DB | ||
- VERSION | ||
- COMMIT_GUID | ||
- "$DB > $VERSION > log > has commit": | ||
command: titan log $DB-test | ||
stdout: | ||
contains: commit $COMMIT_GUID | ||
env: | ||
get: | ||
- DB | ||
- VERSION | ||
- COMMIT_GUID | ||
- "$DB > $VERSION > rm": | ||
command: titan rm -f $DB-test | ||
wait: 5 | ||
stdout: | ||
contains: | ||
- Removing container $DB-test | ||
- $DB-test removed | ||
env: | ||
get: | ||
- DB | ||
- VERSION | ||
- "$DB > $VERSION > clone": | ||
command: titan clone $URI $DB-test | ||
stdout: | ||
contains: | ||
- Creating repository $DB-test | ||
- Running controlled container $DB-test | ||
- Pull completed successfully | ||
- Starting container $DB-test | ||
env: | ||
get: | ||
- DB | ||
- VERSION | ||
- URI | ||
- "$DB > $VERSION > log > has commit": | ||
command: titan log $DB-test | ||
stdout: | ||
contains: commit $COMMIT_GUID | ||
env: | ||
get: | ||
- DB | ||
- VERSION | ||
- COMMIT_GUID | ||
- "$DB > $VERSION > remove s3 assets": | ||
command: aws s3 rm $URI --recursive | ||
env: | ||
get: | ||
- DB | ||
- VERSION | ||
- URI | ||
- "$DB > $VERSION > rm": | ||
command: titan rm -f $DB-test | ||
wait: 5 | ||
stdout: | ||
contains: | ||
- Removing container $DB-test | ||
- $DB-test removed | ||
env: | ||
get: | ||
- DB | ||
- VERSION | ||
after: | ||
clearVars: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
tests: | ||
- "remove $REMOTE assets": | ||
command: aws s3 rm $URI | ||
command: aws s3 rm $URI --recursive | ||
env: | ||
get: | ||
- URI | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters