Changed IP address to use local

This commit is contained in:
David Allen 2024-09-26 08:30:15 -06:00
parent 18d5ef10b0
commit 61c65e5419
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC
2 changed files with 4 additions and 4 deletions

View file

@ -60,7 +60,7 @@ func TestScanAndCollect(t *testing.T) {
// }
// try and run a "scan" with the emulator
command = fmt.Sprintf("%s scan https://172.23.0.2 --port 5000 --cache %s", *exePath, tempDir)
command = fmt.Sprintf("%s scan https://127.0.0.1 --port 5000 --cache %s", *exePath, tempDir)
cmd = exec.Command("bash", "-c", command)
cmd.Stdout = &buf
err = cmd.Run()
@ -184,7 +184,7 @@ func TestGofishFunctions(t *testing.T) {
// and calling GenerateHostsWithSubnet().
func TestGenerateHosts(t *testing.T) {
var (
subnet = "172.23.0.0"
subnet = "127.0.0.1"
subnetMask = &net.IPMask{255, 255, 255, 0}
ports = []int{443}
scheme = "https"
@ -255,7 +255,7 @@ func waitUntilEmulatorIsReady() error {
)
err = util.CheckUntil(interval, timeout, func() (bool, error) {
// send request to host until we get expected response
res, _, err := client.MakeRequest(testClient, "https://172.23.0.2:5000/redfish/v1/", http.MethodGet, body, header)
res, _, err := client.MakeRequest(testClient, "https://127.0.0.1:5000/redfish/v1/", http.MethodGet, body, header)
if err != nil {
return false, fmt.Errorf("failed to make request to emulator: %w", err)
}

View file

@ -19,7 +19,7 @@ import (
)
var (
host = flag.String("host", "https://172.23.0.2:5000", "set the BMC host")
host = flag.String("host", "https://127.0.0.1:5000", "set the BMC host")
username = flag.String("username", "root", "set the BMC username used for the tests")
password = flag.String("password", "root_password", "set the BMC password used for the tests")
)