Skip to content

Commit

Permalink
added intialized for interface matching
Browse files Browse the repository at this point in the history
  • Loading branch information
pputman-clabs committed Jan 12, 2023
1 parent b2303b8 commit 5792a54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mockokta.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5792a54

Please sign in to comment.