From bef000ed272a68b92b7df6a853d48c253a7a283f Mon Sep 17 00:00:00 2001 From: chrislovecnm Date: Mon, 10 Oct 2016 18:17:49 -0600 Subject: [PATCH] updating unit test to work with mock data --- .../kubelet/files/etc/_networking_cni/cni/net.d/_keep_me | 1 + upup/pkg/fi/cloudup/populatecluster_test.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 upup/models/nodeup/kubelet/files/etc/_networking_cni/cni/net.d/_keep_me diff --git a/upup/models/nodeup/kubelet/files/etc/_networking_cni/cni/net.d/_keep_me b/upup/models/nodeup/kubelet/files/etc/_networking_cni/cni/net.d/_keep_me new file mode 100644 index 0000000000000..7d60baa419db3 --- /dev/null +++ b/upup/models/nodeup/kubelet/files/etc/_networking_cni/cni/net.d/_keep_me @@ -0,0 +1 @@ +# place holder file to create the default directory for CNI plugins \ No newline at end of file diff --git a/upup/pkg/fi/cloudup/populatecluster_test.go b/upup/pkg/fi/cloudup/populatecluster_test.go index a010920902204..e5d221cbf7698 100644 --- a/upup/pkg/fi/cloudup/populatecluster_test.go +++ b/upup/pkg/fi/cloudup/populatecluster_test.go @@ -139,12 +139,12 @@ func TestPopulateCluster_CNI(t *testing.T) { CloudProvider: c.Spec.CloudProvider, } - c.Spec.NetworkCIDR = "172.20.2.0/24" + /* c.Spec.Zones = []*api.ClusterZoneSpec{ {Name: "us-west-2a", CIDR: "172.20.2.0/27"}, {Name: "us-west-2b", CIDR: "172.20.2.32/27"}, {Name: "us-west-2c", CIDR: "172.20.2.64/27"}, - } + }*/ full, err := build(c) if err != nil {