Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 2b556b1

Browse files
dmiusDmitry
authored andcommitted
Tests fix
1 parent 751c405 commit 2b556b1

6 files changed

+26
-0
lines changed

tests/nancy_run_options_both_dump_snapshot.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ read -r -d '' params <<PARAMS
55
--aws-ssh-key-path "/home/someuser/.ssh/awskey.pem" \
66
--aws-ec2-type "r4.large" \
77
--s3cfg-path "/home/someuser/.s3cfg" \
8+
--aws-region "us-east-1" \
89
--workload-real "s3://somebucket/db.sql.30min.pgreplay" \
910
--tmp-path tmp \
1011
--db-dump "s3://somebucket/dump.sql.bz2" \

tests/nancy_run_options_ddl_do+_undo-.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ read -r -d '' params <<PARAMS
44
--run-on aws --aws-keypair-name awskey --pg-version 9.6 \
55
--aws-ssh-key-path "/home/someuser/.ssh/awskey.pem" \
66
--aws-ec2-type "r4.large" \
7+
--aws-region "us-east-1" \
78
--s3cfg-path "/home/someuser/.s3cfg" \
89
--workload-real "s3://somebucket/db.sql.30min.pgreplay" \
910
--tmp-path tmp \

tests/nancy_run_options_ddl_do-_undo+.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ read -r -d '' params <<PARAMS
44
--run-on aws --aws-keypair-name awskey --pg-version 9.6 \
55
--aws-ssh-key-path "/home/someuser/.ssh/awskey.pem" \
66
--aws-ec2-type "r4.large" \
7+
--aws-region "us-east-1" \
78
--s3cfg-path "/home/someuser/.s3cfg" \
89
--workload-real "s3://somebucket/db.sql.30min.pgreplay" \
910
--tmp-path tmp \

tests/nancy_run_options_multi_workloads.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ read -r -d '' params <<PARAMS
44
--run-on aws --aws-keypair-name awskey --pg-version 9.6 \
55
--aws-ssh-key-path "/home/someuser/.ssh/awskey.pem" \
66
--aws-ec2-type "r4.large" \
7+
--aws-region "us-east-1" \
78
--s3cfg-path "/home/someuser/.s3cfg" \
89
--workload-real "s3://somebucket/db.sql.30min.pgreplay" \
910
--workload-custom-sql "select\tnow();" \

tests/nancy_run_options_no_dump_snapshot.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ read -r -d '' params <<PARAMS
44
--run-on aws --aws-keypair-name awskey --pg-version 9.6 \
55
--aws-ssh-key-path "/home/someuser/.ssh/awskey.pem" \
66
--aws-ec2-type "r4.large" \
7+
--aws-region "us-east-1" \
78
--s3cfg-path "/home/someuser/.s3cfg" \
89
--workload-real "s3://somebucket/db.sql.30min.pgreplay" \
910
--tmp-path tmp

tests/nancy_run_options_no_region.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
read -r -d '' params <<PARAMS
4+
--run-on aws --aws-keypair-name awskey --pg-version 9.6 \
5+
--aws-ssh-key-path "/home/someuser/.ssh/awskey.pem" \
6+
--aws-ec2-type "r4.large" \
7+
--s3cfg-path "/home/someuser/.s3cfg" \
8+
--workload-real "s3://somebucket/db.sql.30min.pgreplay" \
9+
--tmp-path tmp \
10+
--db-dump "s3://somebucket/dump.sql.bz2" \
11+
--db-prepared-snapshot "s3://somebucket/snapshot"
12+
PARAMS
13+
14+
output=$(${BASH_SOURCE%/*}/../nancy_run.sh $params 2>&1)
15+
16+
if [[ $output =~ "ERROR: AWS EC2 region not given." ]]; then
17+
echo -e "\e[36mOK\e[39m"
18+
else
19+
>&2 echo -e "\e[31mFAILED\e[39m"
20+
>&2 echo -e "Output: $output"
21+
fi

0 commit comments

Comments
 (0)