Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Hawxy committed Jul 28, 2023
1 parent 9400d9d commit 5916549
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
19 changes: 14 additions & 5 deletions test/construct.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,27 @@ test('Bastion host should be created', () => {
command: 'sudo sysctl -p /etc/sysctl.conf',
},
'003': {
command: 'yum-config-manager --add-repo https://pkgs.tailscale.com/stable/amazon-linux/2/tailscale.repo',
command: 'mkdir -p /etc/systemd/resolved.conf.d',
},
'004': {
command: 'yum -y install tailscale',
command: 'ln -sf /dev/null /etc/systemd/resolved.conf.d/resolved-disable-stub-listener.conf',
},
'005': {
command: 'yum -y install jq',
command: 'ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf',
},
'006': {
command: 'systemctl enable --now tailscaled',
command: 'dnf config-manager --add-repo https://pkgs.tailscale.com/stable/amazon-linux/2023/tailscale.repo',
},
'007': {
command: 'dnf -y install tailscale',
},
'008': {
command: 'dnf -y install jq',
},
'009': {
command: 'systemctl enable --now tailscaled',
},
'010': {
command: {
'Fn::Join': [
'',
Expand All @@ -85,7 +94,7 @@ test('Bastion host should be created', () => {
],
},
},
'008': {
'011': {
command: {
'Fn::Join': [
'',
Expand Down
2 changes: 1 addition & 1 deletion test/routes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ test('Bastion host should have routing set up', () => {
'AWS::CloudFormation::Init': {
config: {
commands: {
'008': {
'011': {
command: 'source /etc/environment && tailscale up --authkey $TS_AUTHKEY --advertise-routes=fd7a:115c:a1e0:b1a:0:7:a01:100/120 --accept-routes --accept-dns=false',
},
},
Expand Down

0 comments on commit 5916549

Please sign in to comment.