Просмотр исходного кода

use label with many special characters in test

Ajay Tripathy 3 лет назад
Родитель
Сommit
157636b01c
2 измененных файлов с 2 добавлено и 2 удалено
  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"