|
|
|
@ -117,6 +117,7 @@ func TestServiceDiscoveryAdd(t *testing.T) {
|
|
|
|
|
"__meta_kubernetes_service_type": "ClusterIP", |
|
|
|
|
"__meta_kubernetes_service_cluster_ip": "10.0.0.1", |
|
|
|
|
"__meta_kubernetes_service_port_name": "testport", |
|
|
|
|
"__meta_kubernetes_service_port_number": "30900", |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Labels: model.LabelSet{ |
|
|
|
@ -132,6 +133,7 @@ func TestServiceDiscoveryAdd(t *testing.T) {
|
|
|
|
|
"__address__": "testservice-external.default.svc:31900", |
|
|
|
|
"__meta_kubernetes_service_type": "ExternalName", |
|
|
|
|
"__meta_kubernetes_service_port_name": "testport", |
|
|
|
|
"__meta_kubernetes_service_port_number": "31900", |
|
|
|
|
"__meta_kubernetes_service_external_name": "FooExternalName", |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
@ -182,6 +184,7 @@ func TestServiceDiscoveryUpdate(t *testing.T) {
|
|
|
|
|
"__meta_kubernetes_service_type": "ClusterIP", |
|
|
|
|
"__meta_kubernetes_service_cluster_ip": "10.0.0.1", |
|
|
|
|
"__meta_kubernetes_service_port_name": "testport0", |
|
|
|
|
"__meta_kubernetes_service_port_number": "30900", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"__meta_kubernetes_service_port_protocol": "UDP", |
|
|
|
@ -189,6 +192,7 @@ func TestServiceDiscoveryUpdate(t *testing.T) {
|
|
|
|
|
"__meta_kubernetes_service_type": "ClusterIP", |
|
|
|
|
"__meta_kubernetes_service_cluster_ip": "10.0.0.1", |
|
|
|
|
"__meta_kubernetes_service_port_name": "testport1", |
|
|
|
|
"__meta_kubernetes_service_port_number": "30901", |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Labels: model.LabelSet{ |
|
|
|
@ -227,6 +231,7 @@ func TestServiceDiscoveryNamespaces(t *testing.T) {
|
|
|
|
|
"__meta_kubernetes_service_type": "ClusterIP", |
|
|
|
|
"__meta_kubernetes_service_cluster_ip": "10.0.0.1", |
|
|
|
|
"__meta_kubernetes_service_port_name": "testport", |
|
|
|
|
"__meta_kubernetes_service_port_number": "30900", |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Labels: model.LabelSet{ |
|
|
|
@ -243,6 +248,7 @@ func TestServiceDiscoveryNamespaces(t *testing.T) {
|
|
|
|
|
"__meta_kubernetes_service_type": "ClusterIP", |
|
|
|
|
"__meta_kubernetes_service_cluster_ip": "10.0.0.1", |
|
|
|
|
"__meta_kubernetes_service_port_name": "testport", |
|
|
|
|
"__meta_kubernetes_service_port_number": "30900", |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Labels: model.LabelSet{ |
|
|
|
@ -277,6 +283,7 @@ func TestServiceDiscoveryOwnNamespace(t *testing.T) {
|
|
|
|
|
"__meta_kubernetes_service_type": "ClusterIP", |
|
|
|
|
"__meta_kubernetes_service_cluster_ip": "10.0.0.1", |
|
|
|
|
"__meta_kubernetes_service_port_name": "testport", |
|
|
|
|
"__meta_kubernetes_service_port_number": "30900", |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Labels: model.LabelSet{ |
|
|
|
@ -311,6 +318,7 @@ func TestServiceDiscoveryAllNamespaces(t *testing.T) {
|
|
|
|
|
"__meta_kubernetes_service_type": "ClusterIP", |
|
|
|
|
"__meta_kubernetes_service_cluster_ip": "10.0.0.1", |
|
|
|
|
"__meta_kubernetes_service_port_name": "testport", |
|
|
|
|
"__meta_kubernetes_service_port_number": "30900", |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Labels: model.LabelSet{ |
|
|
|
@ -327,6 +335,7 @@ func TestServiceDiscoveryAllNamespaces(t *testing.T) {
|
|
|
|
|
"__meta_kubernetes_service_type": "ClusterIP", |
|
|
|
|
"__meta_kubernetes_service_cluster_ip": "10.0.0.1", |
|
|
|
|
"__meta_kubernetes_service_port_name": "testport", |
|
|
|
|
"__meta_kubernetes_service_port_number": "30900", |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Labels: model.LabelSet{ |
|
|
|
|