Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhaley committed Dec 18, 2024
1 parent cad1227 commit 68bffa2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/alternat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,14 @@ func TestAlternat(t *testing.T) {
retry.DoWithRetry(t, fmt.Sprintf("Check SSH connection to %s", ip), maxRetries, waitTime, func() (string, error) {
return "", ssh.CheckSshConnectionE(t, natInstance)
})
command := "/usr/sbin/sysctl net.ipv4.ip_forward net.ipv4.conf.eth0.send_redirects net.ipv4.ip_local_port_range"
command := "/usr/sbin/nft list ruleset"

expectedText := `net.ipv4.ip_forward = 1
net.ipv4.conf.eth0.send_redirects = 0
net.ipv4.ip_local_port_range = 1024 65535
`
expectedText := `table ip nat {
chain postrouting {
type nat hook postrouting priority srcnat; policy accept;
ip saddr 10.10.0.0/16 oif "ens5" masquerade
}
}`

maxRetries = 1
waitTime = 10 * time.Second
Expand Down Expand Up @@ -188,7 +190,7 @@ net.ipv4.ip_local_port_range = 1024 65535
return "All private route tables route through NAT Gateway", nil
})
logger := logger.Logger{}
logger.Logf(t, output)
logger.Logf(t, output)
updateEgress(t, ec2Client, sgId, false)
})
}
Expand Down

0 comments on commit 68bffa2

Please sign in to comment.