Skip to content

Commit

Permalink
Change GetComponentParams ProviderType field to Type
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Dobrovolsky committed Nov 15, 2024
1 parent 77d3ec8 commit 93fb7e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7027,9 +7027,9 @@ func Test_GetComponentsWithParams(t *testing.T) {
token.AccessToken,
cfg.GoCloak.Realm,
gocloak.GetComponentsParams{
Name: component.Name,
ProviderType: component.ProviderType,
ParentID: component.ParentID,
Name: component.Name,
Type: component.ProviderType,
ParentID: component.ParentID,
},
)
require.NoError(t, err, "GetComponentsWithParams failed")
Expand Down Expand Up @@ -7078,9 +7078,9 @@ func Test_UpdateComponent(t *testing.T) {
token.AccessToken,
cfg.GoCloak.Realm,
gocloak.GetComponentsParams{
Name: component.Name,
ProviderType: component.ProviderType,
ParentID: component.ParentID,
Name: component.Name,
Type: component.ProviderType,
ParentID: component.ParentID,
},
)
require.NoError(t, err, "GetComponentWithParams after UpdateComponent failed")
Expand Down
6 changes: 3 additions & 3 deletions models.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ type GetUsersParams struct {

// GetComponentsParams represents the optional parameters for getting components
type GetComponentsParams struct {
Name *string `json:"name,omitempty"`
ProviderType *string `json:"provider,omitempty"`
ParentID *string `json:"parent,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
ParentID *string `json:"parent,omitempty"`
}

// ExecuteActionsEmail represents parameters for executing action emails
Expand Down

0 comments on commit 93fb7e8

Please sign in to comment.