Skip to content

Commit

Permalink
changes the IP address for the creds test in BATS
Browse files Browse the repository at this point in the history
Signed-off-by: Nino Kodabande <nkodabande@suse.com>
  • Loading branch information
Nino-K committed Sep 12, 2024
1 parent 23474dc commit 56a0147
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions bats/tests/registry/creds.bats
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,8 @@ local_setup() {
# Essentially localhost, but needs to be a routable IP that also works
# from inside a container. Will be turned into a DNS name using sslip.io.
if is_windows; then
if using_networking_tunnel; then
# When using network tunnel, use a fixed address.
ipaddr="192.168.1.2"
else
# In WSL all distros have the same IP address
ipaddr="$(ip a show eth0 | awk '/inet / {sub("/.*",""); print $2}')"
fi
ipaddr="192.168.143.1"
fi
else
# Lima uses a fixed hard-coded IP address
ipaddr="192.168.5.15"
Expand Down

0 comments on commit 56a0147

Please sign in to comment.