|
@@ -12,7 +12,11 @@ func TestGenerateKey(t *testing.T) {
|
|
|
allocationProps *AllocationProperties
|
|
allocationProps *AllocationProperties
|
|
|
expected string
|
|
expected string
|
|
|
}{
|
|
}{
|
|
|
|
|
+<<<<<<< HEAD
|
|
|
"aggregateregate by owner without owner labels": {
|
|
"aggregateregate by owner without owner labels": {
|
|
|
|
|
+=======
|
|
|
|
|
+ "agg by owner with labels": {
|
|
|
|
|
+>>>>>>> Recognizes annotations when aggregating by owner
|
|
|
aggregate: []string{"owner"},
|
|
aggregate: []string{"owner"},
|
|
|
allocationProps: &AllocationProperties{
|
|
allocationProps: &AllocationProperties{
|
|
|
Labels: map[string]string{"app": "cost-analyzer"},
|
|
Labels: map[string]string{"app": "cost-analyzer"},
|
|
@@ -20,13 +24,18 @@ func TestGenerateKey(t *testing.T) {
|
|
|
},
|
|
},
|
|
|
expected: "test owner 123",
|
|
expected: "test owner 123",
|
|
|
},
|
|
},
|
|
|
|
|
+<<<<<<< HEAD
|
|
|
"aggregate by owner without labels": {
|
|
"aggregate by owner without labels": {
|
|
|
|
|
+=======
|
|
|
|
|
+ "agg by owner without labels": {
|
|
|
|
|
+>>>>>>> Recognizes annotations when aggregating by owner
|
|
|
aggregate: []string{"owner"},
|
|
aggregate: []string{"owner"},
|
|
|
allocationProps: &AllocationProperties{
|
|
allocationProps: &AllocationProperties{
|
|
|
Annotations: map[string]string{"owner": "test owner 123"},
|
|
Annotations: map[string]string{"owner": "test owner 123"},
|
|
|
},
|
|
},
|
|
|
expected: "test owner 123",
|
|
expected: "test owner 123",
|
|
|
},
|
|
},
|
|
|
|
|
+<<<<<<< HEAD
|
|
|
"aggregate by owner with owner label and annotation": {
|
|
"aggregate by owner with owner label and annotation": {
|
|
|
aggregate: []string{"owner"},
|
|
aggregate: []string{"owner"},
|
|
|
allocationProps: &AllocationProperties{
|
|
allocationProps: &AllocationProperties{
|
|
@@ -75,6 +84,8 @@ func TestGenerateKey(t *testing.T) {
|
|
|
},
|
|
},
|
|
|
expected: "product-label/owner-label",
|
|
expected: "product-label/owner-label",
|
|
|
},
|
|
},
|
|
|
|
|
+=======
|
|
|
|
|
+>>>>>>> Recognizes annotations when aggregating by owner
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
for name, tc := range cases {
|
|
for name, tc := range cases {
|