Fix unit tests
parent
5f6391783a
commit
424e158856
|
@ -25,8 +25,8 @@ import (
|
|||
func TestAuxiliary(t *testing.T) {
|
||||
want := []string{
|
||||
"gcr.io/k8s-minikube/storage-provisioner:v1.8.1",
|
||||
"kubernetesui/dashboard:v2.0.0",
|
||||
"kubernetesui/metrics-scraper:v1.0.2",
|
||||
"kubernetesui/dashboard:v2.0.1",
|
||||
"kubernetesui/metrics-scraper:v1.0.4",
|
||||
}
|
||||
got := auxiliary("")
|
||||
if diff := cmp.Diff(want, got); diff != "" {
|
||||
|
@ -37,8 +37,8 @@ func TestAuxiliary(t *testing.T) {
|
|||
func TestAuxiliaryMirror(t *testing.T) {
|
||||
want := []string{
|
||||
"test.mirror/storage-provisioner:v1.8.1",
|
||||
"test.mirror/dashboard:v2.0.0",
|
||||
"test.mirror/metrics-scraper:v1.0.2",
|
||||
"test.mirror/dashboard:v2.0.1",
|
||||
"test.mirror/metrics-scraper:v1.0.4",
|
||||
}
|
||||
got := auxiliary("test.mirror")
|
||||
if diff := cmp.Diff(want, got); diff != "" {
|
||||
|
|
|
@ -50,8 +50,8 @@ func TestKubeadmImages(t *testing.T) {
|
|||
"mirror.k8s.io/etcd:3.3.15-0",
|
||||
"mirror.k8s.io/pause:3.1",
|
||||
"mirror.k8s.io/storage-provisioner:v1.8.1",
|
||||
"mirror.k8s.io/dashboard:v2.0.0",
|
||||
"mirror.k8s.io/metrics-scraper:v1.0.2",
|
||||
"mirror.k8s.io/dashboard:v2.0.1",
|
||||
"mirror.k8s.io/metrics-scraper:v1.0.4",
|
||||
}},
|
||||
{"v1.15.0", "", []string{
|
||||
"k8s.gcr.io/kube-proxy:v1.15.0",
|
||||
|
|
Loading…
Reference in New Issue