Skip to content

Commit

Permalink
undo linux docker test
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonQ committed Aug 23, 2024
1 parent 0d81bd7 commit 95b728f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
18 changes: 0 additions & 18 deletions providers/linux/host_fqdn_integration_docker_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ package linux
import (
"context"
"fmt"
"strings"
"testing"
"time"

Expand All @@ -45,23 +44,6 @@ func TestHost_FQDN_set(t *testing.T) {
}
}

func TestHost_FQDN_set_lowerHostname(t *testing.T) {
want := strings.ToLower(wantFQDN)
host, err := newLinuxSystem("", true).Host()
if err != nil {
t.Fatal(fmt.Errorf("could not get host information: %w", err))
}

ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()

gotFQDN, err := host.FQDNWithContext(ctx)
require.NoError(t, err)
if gotFQDN != want {
t.Errorf("got FQDN %q, want: %q", gotFQDN, want)
}
}

func TestHost_FQDN_not_set(t *testing.T) {
host, err := newLinuxSystem("", false).Host()
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions providers/linux/host_fqdn_integration_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import (
)

const (
wantHostname = "hostName"
wantDomain = "some.Domain"
wantHostname = "hostname"
wantDomain = "some.domain"
wantFQDN = wantHostname + "." + wantDomain
)

Expand Down

0 comments on commit 95b728f

Please sign in to comment.