From 5792a5426fa90209bf35baea14fdfe0ec3d57cfd Mon Sep 17 00:00:00 2001 From: pputman-clabs Date: Thu, 12 Jan 2023 00:10:04 -0600 Subject: [PATCH] added intialized for interface matching --- mockokta.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mockokta.go b/mockokta.go index 4bdae73..cf8cc7e 100644 --- a/mockokta.go +++ b/mockokta.go @@ -43,6 +43,12 @@ type GroupResource struct { // Wrapper methods for Okta API Calls + +// Initialize is an empty method so we can match the okta client interface with tests +func (client *OktaClient) Initialize(ctx context.Context, conf ...okta.ConfigSetter) error { + return nil +} + // ListGroups is a wrapper to call client.Group.ListGroups to make it easier to match an interface for the okta client func (client *MockClient) ListGroups(ctx context.Context, qp *query.Params) ([]*okta.Group, *okta.Response, error) { return client.Group.ListGroups(ctx, qp)