Update deployment equality helper

This commit is contained in:
Michail Kargakis
2016-12-01 10:10:30 +01:00
parent 55bee3ad21
commit 6013186ac3
6 changed files with 26 additions and 51 deletions

View File

@@ -33,7 +33,7 @@ func TestCloneAndAddLabel(t *testing.T) {
cases := []struct {
labels map[string]string
labelKey string
labelValue uint32
labelValue string
want map[string]string
}{
{
@@ -43,7 +43,7 @@ func TestCloneAndAddLabel(t *testing.T) {
{
labels: labels,
labelKey: "foo4",
labelValue: uint32(42),
labelValue: "42",
want: map[string]string{
"foo1": "bar1",
"foo2": "bar2",
@@ -122,7 +122,7 @@ func TestCloneSelectorAndAddLabel(t *testing.T) {
cases := []struct {
labels map[string]string
labelKey string
labelValue uint32
labelValue string
want map[string]string
}{
{
@@ -132,7 +132,7 @@ func TestCloneSelectorAndAddLabel(t *testing.T) {
{
labels: labels,
labelKey: "foo4",
labelValue: 89,
labelValue: "89",
want: map[string]string{
"foo1": "bar1",
"foo2": "bar2",
@@ -143,7 +143,7 @@ func TestCloneSelectorAndAddLabel(t *testing.T) {
{
labels: nil,
labelKey: "foo4",
labelValue: 12,
labelValue: "12",
want: map[string]string{
"foo4": "12",
},