From 53dfbfd57d97a091970677f045d54415adfbdcb0 Mon Sep 17 00:00:00 2001 From: Vivek Singh Chauhan Date: Thu, 10 Aug 2023 16:21:32 -0700 Subject: [PATCH] INT - fix for failing tests (#673) --- pkg/agent/handler/accessrequest_test.go | 2 +- pkg/agent/handler/credential_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/agent/handler/accessrequest_test.go b/pkg/agent/handler/accessrequest_test.go index 31a763fe5..7f9498b78 100644 --- a/pkg/agent/handler/accessrequest_test.go +++ b/pkg/agent/handler/accessrequest_test.go @@ -233,7 +233,7 @@ func TestAccessRequestHandler_deleting(t *testing.T) { expectedAPIID: instRefID, expectedAppName: managedAppRefName, expectedAccessDetails: util.GetAgentDetails(&ar), - expectedAppDetails: map[string]interface{}{}, + expectedAppDetails: util.GetAgentDetails(mApp), expectedStatus: mock.MockRequestStatus{ Status: tc.outboundStatus, Msg: "msg", diff --git a/pkg/agent/handler/credential_test.go b/pkg/agent/handler/credential_test.go index abeb1593a..263e279e8 100644 --- a/pkg/agent/handler/credential_test.go +++ b/pkg/agent/handler/credential_test.go @@ -248,7 +248,7 @@ func TestCredentialHandler_deleting(t *testing.T) { "status_key": "status_val", }, }, - expectedAppDetails: map[string]interface{}{}, + expectedAppDetails: util.GetAgentDetails(mApp), expectedCredDetails: util.GetAgentDetails(&cred), expectedManagedApp: credAppRefName, expectedCredType: cred.Spec.CredentialRequestDefinition, @@ -573,7 +573,7 @@ func TestIDPCredentialDeprovisioning(t *testing.T) { "status_key": "status_val", }, }, - expectedAppDetails: map[string]interface{}{}, + expectedAppDetails: util.GetAgentDetails(mApp), expectedCredDetails: util.GetAgentDetails(&cred), expectedManagedApp: credAppRefName, expectedCredType: cred.Spec.CredentialRequestDefinition,