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 8920270 commit 6d3f50a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions bats/tests/registry/creds.bats
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,7 @@ 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"
else
# Lima uses a fixed hard-coded IP address
ipaddr="192.168.5.15"
Expand Down

0 comments on commit 6d3f50a

Please sign in to comment.