Skip to content

Commit

Permalink
fix unittests after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
bschimke95 committed Sep 27, 2024
1 parent 9e0a43c commit a85147a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/k8s/pkg/k8sd/setup/k8s_apiserver_proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,13 @@ func TestK8sApiServerProxy(t *testing.T) {
s := mustSetupSnapAndDirectories(t, setKubeletMock)
s.Mock.Hostname = "dev"

g.Expect(setup.K8sAPIServerProxy(s, nil, "[2001:db8::]", nil)).To(Succeed())
g.Expect(setup.K8sAPIServerProxy(s, nil, 1234, nil)).To(Succeed())

tests := []struct {
key string
expectedVal string
}{
{key: "--listen", expectedVal: "[2001:db8::]:6443"},
{key: "--listen", expectedVal: ":1234"},
}
for _, tc := range tests {
t.Run(tc.key, func(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion src/k8s/pkg/k8sd/setup/kube_apiserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func TestKubeAPIServer(t *testing.T) {
s := mustSetupSnapAndDirectories(t, setKubeletMock)
s.Mock.Hostname = "dev"

g.Expect(setup.KubeAPIServer(s, net.ParseIP("2001:db8::"), "fd98::/108", "https://auth-webhook.url", false, types.Datastore{Type: utils.Pointer("k8s-dqlite")}, "Node,RBAC", nil)).To(Succeed())
g.Expect(setup.KubeAPIServer(s, 6443, net.ParseIP("2001:db8::"), "fd98::/108", "https://auth-webhook.url", false, types.Datastore{Type: utils.Pointer("k8s-dqlite")}, "Node,RBAC", nil)).To(Succeed())

tests := []struct {
key string
Expand Down

0 comments on commit a85147a

Please sign in to comment.