From 65b034d2fc5968441c4359f7e2d80f2a9b92c172 Mon Sep 17 00:00:00 2001 From: Aidan Steele Date: Tue, 30 Jan 2018 14:41:38 +1100 Subject: [PATCH] Updated E2E tests for TargetAddress functionality (#15) --- ci/cfn.yml | 3 ++- ci/e2e.bash | 2 +- ci/expected-output-jumpbox.txt | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ci/cfn.yml b/ci/cfn.yml index 69b77ff..e3851ba 100644 --- a/ci/cfn.yml +++ b/ci/cfn.yml @@ -191,7 +191,8 @@ Resources: jumpboxes: [{ address: process.env.JUMPBOX_DNS, user: "ec2-user" - }] + }], + TargetAddress: "78.65.43.21" }); } }; diff --git a/ci/e2e.bash b/ci/e2e.bash index e68d44a..b84f174 100755 --- a/ci/e2e.bash +++ b/ci/e2e.bash @@ -25,7 +25,7 @@ sleep 1 ./lastkeypair_linux_amd64 ssh exec --instance-arn abcdef -- -o StrictHostKeyChecking=no -o LogLevel=QUIET -p 2222 travis@localhost | tee out.log diff out.log ci/expected-output.txt -./lastkeypair_linux_amd64 ssh exec --instance-arn defghi --dry-run -- -o StrictHostKeyChecking=no -o LogLevel=QUIET -p 2222 travis@localhost | tee out.log +./lastkeypair_linux_amd64 ssh exec --instance-arn defghi --dry-run -- -o StrictHostKeyChecking=no -o LogLevel=QUIET -p 2222 | tee out.log diff out.log ci/expected-output-jumpbox.txt VOUCHER=$(./lastkeypair_linux_amd64 vouch --vouchee aidan --context moo) diff --git a/ci/expected-output-jumpbox.txt b/ci/expected-output-jumpbox.txt index 74e41fb..a7f6a34 100644 --- a/ci/expected-output-jumpbox.txt +++ b/ci/expected-output-jumpbox.txt @@ -1 +1 @@ -ssh -o IdentityFile=~/.lkp/id_rsa -J ec2-user@12.34.56.78 -o StrictHostKeyChecking=no -o LogLevel=QUIET -p 2222 travis@localhost +ssh -o IdentityFile=~/.lkp/id_rsa -J ec2-user@12.34.56.78 -o StrictHostKeyChecking=no -o LogLevel=QUIET -p 2222 ec2-user@78.65.43.21