From ae6d8b7fb505fe44796e09330a3436e6b1d8aaf2 Mon Sep 17 00:00:00 2001 From: pmahindrakar-oss Date: Thu, 3 Mar 2022 12:20:57 +0530 Subject: [PATCH] Fixed integration test pipeline issue (#362) * Fixed integration test pipeline issue Signed-off-by: Prafulla Mahindrakar * Another fix Signed-off-by: Prafulla Mahindrakar --- flyteadmin/tests/attributes_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flyteadmin/tests/attributes_test.go b/flyteadmin/tests/attributes_test.go index c10b9d92fc..d977e0a377 100644 --- a/flyteadmin/tests/attributes_test.go +++ b/flyteadmin/tests/attributes_test.go @@ -28,7 +28,7 @@ var matchingAttributes = &admin.MatchingAttributes{ } func TestUpdateClusterResourceAttributes(t *testing.T) { - matchingAttributes = &admin.MatchingAttributes{ + clusterMatchingAttributes := &admin.MatchingAttributes{ Target: &admin.MatchingAttributes_ClusterResourceAttributes{ ClusterResourceAttributes: &admin.ClusterResourceAttributes{ Attributes: map[string]string{ @@ -53,7 +53,7 @@ func TestUpdateClusterResourceAttributes(t *testing.T) { Attributes: &admin.ProjectDomainAttributes{ Project: "admintests", Domain: "development", - MatchingAttributes: matchingAttributes, + MatchingAttributes: clusterMatchingAttributes, }, } @@ -80,11 +80,11 @@ func TestUpdateClusterResourceAttributes(t *testing.T) { Attributes: &admin.ProjectDomainAttributes{ Project: "admintests", Domain: "development", - MatchingAttributes: matchingAttributes, + MatchingAttributes: clusterMatchingAttributes, }, }, response)) - var updatedMatchingAttributes = &admin.MatchingAttributes{ + var updatedClusterMatchingAttributes = &admin.MatchingAttributes{ Target: &admin.MatchingAttributes_ClusterResourceAttributes{ ClusterResourceAttributes: &admin.ClusterResourceAttributes{ Attributes: map[string]string{ @@ -97,7 +97,7 @@ func TestUpdateClusterResourceAttributes(t *testing.T) { Attributes: &admin.ProjectDomainAttributes{ Project: "admintests", Domain: "development", - MatchingAttributes: updatedMatchingAttributes, + MatchingAttributes: updatedClusterMatchingAttributes, }, } @@ -123,7 +123,7 @@ func TestUpdateClusterResourceAttributes(t *testing.T) { Attributes: &admin.ProjectDomainAttributes{ Project: "admintests", Domain: "development", - MatchingAttributes: updatedMatchingAttributes, + MatchingAttributes: updatedClusterMatchingAttributes, }, }, response))