Remove network.openshift.io related tests from TestEtcd3StoragePath
@@ -290,38 +290,22 @@ var etcdStorageData = map[schema.GroupVersionResource]struct {
expectedEtcdPath: "openshift.io/registry/sdnnetnamespaces/networkname",
expectedGVK: gvkP("network.openshift.io", "v1", "NetNamespace"),
},
- gvr("network.openshift.io", "v1", "netnamespaces"): {
- stub: `{"metadata": {"name": "networknameg"}, "netid": 100, "netname": "networknameg"}`,
- expectedEtcdPath: "openshift.io/registry/sdnnetnamespaces/networknameg",
- },
gvr("", "v1", "hostsubnets"): {
stub: `{"host": "hostname", "hostIP": "192.168.1.1", "metadata": {"name": "hostname"}, "subnet": "192.168.1.0/24"}`,
expectedEtcdPath: "openshift.io/registry/sdnsubnets/hostname",
expectedGVK: gvkP("network.openshift.io", "v1", "HostSubnet"),
},
- gvr("network.openshift.io", "v1", "hostsubnets"): {
- stub: `{"host": "hostnameg", "hostIP": "192.168.1.1", "metadata": {"name": "hostnameg"}, "subnet": "192.168.1.0/24"}`,
- expectedEtcdPath: "openshift.io/registry/sdnsubnets/hostnameg",
- },
gvr("", "v1", "clusternetworks"): {
stub: `{"metadata": {"name": "cn1"}, "serviceNetwork": "192.168.1.0/24", "clusterNetworks": [{"CIDR": "192.166.0.0/16", "hostSubnetLength": 8}], "vxlan":""}`,
expectedEtcdPath: "openshift.io/registry/sdnnetworks/cn1",
expectedGVK: gvkP("network.openshift.io", "v1", "ClusterNetwork"),
},
- gvr("network.openshift.io", "v1", "clusternetworks"): {
- stub: `{"metadata": {"name": "cn1g"}, "serviceNetwork": "192.168.1.0/24", "clusterNetworks": [{"CIDR": "192.167.0.0/16", "hostSubnetLength": 8}], "vxlan":""}`,
- expectedEtcdPath: "openshift.io/registry/sdnnetworks/cn1g",
- },
gvr("", "v1", "egressnetworkpolicies"): {
stub: `{"metadata": {"name": "enp1"}, "spec": {"egress": [{"to": {"cidrSelector": "192.168.1.0/24"}, "type": "Allow"}]}}`,
expectedEtcdPath: "openshift.io/registry/egressnetworkpolicy/etcdstoragepathtestnamespace/enp1",
expectedGVK: gvkP("network.openshift.io", "v1", "EgressNetworkPolicy"),
namespaceOverride: true,
},
- gvr("network.openshift.io", "v1", "egressnetworkpolicies"): {
- stub: `{"metadata": {"name": "enp1g"}, "spec": {"egress": [{"to": {"cidrSelector": "192.168.1.0/24"}, "type": "Allow"}]}}`,
- expectedEtcdPath: "openshift.io/registry/egressnetworkpolicy/etcdstoragepathtestnamespace/enp1g",
- },
// --
// github.com/openshift/origin/pkg/security/apis/security/v1
