Explorar el Código

use label with many special characters in test

Ajay Tripathy hace 3 años
padre
commit
157636b01c
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      configs/pricing_schema_special_char.csv
  2. 1 1
      test/cloud_test.go

+ 1 - 1
configs/pricing_schema_special_char.csv

@@ -1,2 +1,2 @@
 EndTimestamp,InstanceID,Region,AssetClass,InstanceIDField,InstanceType,MarketPriceHourly,Version
-2019-04-17 23:34:22 UTC,gke-standard-cluster-1-pool-1-91dc432d-cg69,,node,metadata.labels.foo.bar,,0.1337,
+2019-04-17 23:34:22 UTC,gke-standard-cluster-1-pool-1-91dc432d-cg69,,node,metadata.labels.<http://metadata.label.servers.com/label|metadata.label.servers.com/label>,,0.1337,

+ 1 - 1
test/cloud_test.go

@@ -205,7 +205,7 @@ func TestNodePriceFromCSVSpecialChar(t *testing.T) {
 	n := &v1.Node{}
 	n.Name = nameWant
 	n.Labels = make(map[string]string)
-	n.Labels["foo.bar"] = nameWant
+	n.Labels["<http://metadata.label.servers.com/label|metadata.label.servers.com/label>"] = nameWant
 
 	wantPrice := "0.133700"