Skip to content

Commit

Permalink
Updated E2E tests for TargetAddress functionality (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
aidansteele committed Jan 30, 2018
1 parent 6593fa2 commit 65b034d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ci/cfn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ Resources:
jumpboxes: [{
address: process.env.JUMPBOX_DNS,
user: "ec2-user"
}]
}],
TargetAddress: "78.65.43.21"
});
}
};
Expand Down
2 changes: 1 addition & 1 deletion ci/e2e.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion ci/expected-output-jumpbox.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ssh -o IdentityFile=~/.lkp/id_rsa -J [email protected] -o StrictHostKeyChecking=no -o LogLevel=QUIET -p 2222 travis@localhost
ssh -o IdentityFile=~/.lkp/id_rsa -J [email protected] -o StrictHostKeyChecking=no -o LogLevel=QUIET -p 2222 [email protected]

0 comments on commit 65b034d

Please sign in to comment.