Skip to content

Commit

Permalink
Replace membership with authorization (#65)
Browse files Browse the repository at this point in the history
* Replace membership with authorization

* Reorder fields

---------

Co-authored-by: Henrique Santos <[email protected]>
  • Loading branch information
hcsa73 and Henrique Santos authored Feb 7, 2024
1 parent 9de168a commit dd6e08b
Show file tree
Hide file tree
Showing 25 changed files with 106 additions and 106 deletions.
2 changes: 1 addition & 1 deletion docs/stackit_config_set.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ stackit config set [flags]
### Options

```
--authorization-custom-endpoint string Authorization custom endpoint
--dns-custom-endpoint string DNS custom endpoint
-h, --help Help for "stackit config set"
--logme-custom-endpoint string LogMe custom endpoint
--mariadb-custom-endpoint string MariaDB custom endpoint
--membership-custom-endpoint string Membership custom endpoint
--mongodbflex-custom-endpoint string MongoDB Flex custom endpoint
--opensearch-custom-endpoint string OpenSearch custom endpoint
--postgresflex-custom-endpoint string PostgreSQL Flex custom endpoint
Expand Down
2 changes: 1 addition & 1 deletion docs/stackit_config_unset.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ stackit config unset [flags]

```
--async Configuration option to run commands asynchronously
--authorization-custom-endpoint Authorization custom endpoint
--dns-custom-endpoint DNS custom endpoint
-h, --help Help for "stackit config unset"
--logme-custom-endpoint LogMe custom endpoint
--mariadb-custom-endpoint MariaDB custom endpoint
--membership-custom-endpoint Membership custom endpoint
--mongodbflex-custom-endpoint MongoDB Flex custom endpoint
--opensearch-custom-endpoint OpenSearch custom endpoint
--output-format Output format
Expand Down
2 changes: 1 addition & 1 deletion docs/stackit_mongodbflex_instance_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ stackit mongodbflex instance create [flags]
--ram int Amount of RAM (in GB)
--storage-class string Storage class (default "premium-perf2-mongodb")
--storage-size int Storage size (in GB) (default 10)
--type string Instance type, one of ["Replica" "Sharded" "Single"] (default "Replica")
--type string Instance type, one of ["Single" "Replica" "Sharded"] (default "Replica")
--version string MongoDB version. Defaults to the latest version available
```

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ require (
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.18.2
github.com/stackitcloud/stackit-sdk-go/core v0.7.7
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.1.0
github.com/stackitcloud/stackit-sdk-go/services/dns v0.8.2
github.com/stackitcloud/stackit-sdk-go/services/membership v0.3.4
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v0.10.3
github.com/stackitcloud/stackit-sdk-go/services/opensearch v0.9.2
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v0.9.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ github.com/spf13/viper v1.18.2 h1:LUXCnvUvSM6FXAsj6nnfc8Q2tp1dIgUfY9Kc8GsSOiQ=
github.com/spf13/viper v1.18.2/go.mod h1:EKmWIqdnk5lOcmR72yw6hS+8OPYcwD0jteitLMVB+yk=
github.com/stackitcloud/stackit-sdk-go/core v0.7.7 h1:w1T8I2ERT5xPHXS+UV9maSseK8tyUJQjzS21hhRSWjU=
github.com/stackitcloud/stackit-sdk-go/core v0.7.7/go.mod h1:nfC2Tbjd73Ivn8wEp3lvG/dmiXHgl6QX+HY2Ih3aGgw=
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.1.0 h1:FkOaz7ZutvteismzVHsabddg5GLWvRCA9jEzWH1/V9Y=
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.1.0/go.mod h1:n2iI0NZdawwkGt3nqm09l8kSJ3MGgLCCOWdVzanEPzA=
github.com/stackitcloud/stackit-sdk-go/services/dns v0.8.2 h1:Wj3A+BAitSK74dRMxEGoKU1itEZmjwrAECT/CgsEJOQ=
github.com/stackitcloud/stackit-sdk-go/services/dns v0.8.2/go.mod h1:RYRnST/3Kz5GmxMmFvsaYFblfZ/LMxw8r9DNfnRhX/4=
github.com/stackitcloud/stackit-sdk-go/services/logme v0.10.0 h1:5+X0sKPdnLT/a1Jt73YphecQpPEOpd6TY6XdK0zGqP4=
github.com/stackitcloud/stackit-sdk-go/services/logme v0.10.0/go.mod h1:e/I/8wJEqLdzdEgsGh7UbwbMMMNL5F1os25K+vQSzOc=
github.com/stackitcloud/stackit-sdk-go/services/mariadb v0.10.0 h1:WxvySRZfkecOVjrpK3NiyqPL9YWKSpdBbIf55Y5HlNs=
github.com/stackitcloud/stackit-sdk-go/services/mariadb v0.10.0/go.mod h1:GQ+UyuUOANO/kQOIhqLmMYRH34NbZShMrfmUY6hTSjo=
github.com/stackitcloud/stackit-sdk-go/services/membership v0.3.4 h1:0OT/UBP55/GPMm9Tks9Uhb+PvP/2zI6ZUySfh7px+kY=
github.com/stackitcloud/stackit-sdk-go/services/membership v0.3.4/go.mod h1:6ovfcQJ96ivkBpSI933lVl2a/SWprpVGoK6YNKycLps=
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v0.10.3 h1:M7ALIg1tE8MFLLw9Um0iyvdBgIhl83tJ0sWRjP7YqMM=
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v0.10.3/go.mod h1:LWfUBjGQWF3SZivQdUdAC/WxJkx8ImJKy5GFMV3tXHY=
github.com/stackitcloud/stackit-sdk-go/services/opensearch v0.9.2 h1:dwZ1NDD+AxTaZqAeR/0PY7yt32dbABhQH1Vsnt8A+hg=
Expand Down
10 changes: 5 additions & 5 deletions internal/cmd/config/set/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import (
const (
sessionTimeLimitFlag = "session-time-limit"

authorizationCustomEndpointFlag = "authorization-custom-endpoint"
dnsCustomEndpointFlag = "dns-custom-endpoint"
logMeCustomEndpointFlag = "logme-custom-endpoint"
mariaDBCustomEndpointFlag = "mariadb-custom-endpoint"
membershipCustomEndpointFlag = "membership-custom-endpoint"
mongoDBFlexCustomEndpointFlag = "mongodbflex-custom-endpoint"
openSearchCustomEndpointFlag = "opensearch-custom-endpoint"
postgresFlexCustomEndpointFlag = "postgresflex-custom-endpoint"
Expand Down Expand Up @@ -90,10 +90,10 @@ func NewCmd() *cobra.Command {
func configureFlags(cmd *cobra.Command) {
cmd.Flags().String(sessionTimeLimitFlag, "", "Maximum time before authentication is required again. Can't be larger than 24h. Examples: 3h, 5h30m40s (BETA: currently values greater than 2h have no effect)")

cmd.Flags().String(authorizationCustomEndpointFlag, "", "Authorization custom endpoint")
cmd.Flags().String(dnsCustomEndpointFlag, "", "DNS custom endpoint")
cmd.Flags().String(logMeCustomEndpointFlag, "", "LogMe custom endpoint")
cmd.Flags().String(mariaDBCustomEndpointFlag, "", "MariaDB custom endpoint")
cmd.Flags().String(membershipCustomEndpointFlag, "", "Membership custom endpoint")
cmd.Flags().String(mongoDBFlexCustomEndpointFlag, "", "MongoDB Flex custom endpoint")
cmd.Flags().String(openSearchCustomEndpointFlag, "", "OpenSearch custom endpoint")
cmd.Flags().String(postgresFlexCustomEndpointFlag, "", "PostgreSQL Flex custom endpoint")
Expand All @@ -103,14 +103,14 @@ func configureFlags(cmd *cobra.Command) {
cmd.Flags().String(serviceAccountCustomEndpointFlag, "", "Service Account custom endpoint")
cmd.Flags().String(skeCustomEndpointFlag, "", "SKE custom endpoint")

err := viper.BindPFlag(config.DNSCustomEndpointKey, cmd.Flags().Lookup(dnsCustomEndpointFlag))
err := viper.BindPFlag(config.AuthorizationCustomEndpointKey, cmd.Flags().Lookup(authorizationCustomEndpointFlag))
cobra.CheckErr(err)
err = viper.BindPFlag(config.DNSCustomEndpointKey, cmd.Flags().Lookup(dnsCustomEndpointFlag))
cobra.CheckErr(err)
err = viper.BindPFlag(config.LogMeCustomEndpointKey, cmd.Flags().Lookup(logMeCustomEndpointFlag))
cobra.CheckErr(err)
err = viper.BindPFlag(config.MariaDBCustomEndpointKey, cmd.Flags().Lookup(mariaDBCustomEndpointFlag))
cobra.CheckErr(err)
err = viper.BindPFlag(config.MembershipCustomEndpointKey, cmd.Flags().Lookup(membershipCustomEndpointFlag))
cobra.CheckErr(err)
err = viper.BindPFlag(config.MongoDBFlexCustomEndpointKey, cmd.Flags().Lookup(mongoDBFlexCustomEndpointFlag))
cobra.CheckErr(err)
err = viper.BindPFlag(config.OpenSearchCustomEndpointKey, cmd.Flags().Lookup(openSearchCustomEndpointFlag))
Expand Down
14 changes: 7 additions & 7 deletions internal/cmd/config/unset/unset.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ const (
outputFormatFlag = globalflags.OutputFormatFlag
projectIdFlag = globalflags.ProjectIdFlag

authorizationCustomEndpointFlag = "authorization-custom-endpoint"
dnsCustomEndpointFlag = "dns-custom-endpoint"
logMeCustomEndpointFlag = "logme-custom-endpoint"
mariaDBCustomEndpointFlag = "mariadb-custom-endpoint"
membershipCustomEndpointFlag = "membership-custom-endpoint"
mongoDBFlexCustomEndpointFlag = "mongodbflex-custom-endpoint"
openSearchCustomEndpointFlag = "opensearch-custom-endpoint"
postgresFlexCustomEndpointFlag = "postgresflex-custom-endpoint"
Expand All @@ -37,10 +37,10 @@ type inputModel struct {
OutputFormat bool
ProjectId bool

AuthorizationCustomEndpoint bool
DNSCustomEndpoint bool
LogMeCustomEndpoint bool
MariaDBCustomEndpoint bool
MembershipCustomEndpoint bool
MongoDBFlexCustomEndpoint bool
OpenSearchCustomEndpoint bool
PostgresFlexCustomEndpoint bool
Expand Down Expand Up @@ -81,6 +81,9 @@ func NewCmd() *cobra.Command {
viper.Set(config.ProjectIdKey, "")
}

if model.AuthorizationCustomEndpoint {
viper.Set(config.AuthorizationCustomEndpointKey, "")
}
if model.DNSCustomEndpoint {
viper.Set(config.DNSCustomEndpointKey, "")
}
Expand All @@ -90,9 +93,6 @@ func NewCmd() *cobra.Command {
if model.MariaDBCustomEndpoint {
viper.Set(config.MariaDBCustomEndpointKey, "")
}
if model.MembershipCustomEndpoint {
viper.Set(config.MembershipCustomEndpointKey, "")
}
if model.MongoDBFlexCustomEndpoint {
viper.Set(config.MongoDBFlexCustomEndpointKey, "")
}
Expand Down Expand Up @@ -134,10 +134,10 @@ func configureFlags(cmd *cobra.Command) {
cmd.Flags().Bool(projectIdFlag, false, "Project ID")
cmd.Flags().Bool(outputFormatFlag, false, "Output format")

cmd.Flags().Bool(authorizationCustomEndpointFlag, false, "Authorization custom endpoint")
cmd.Flags().Bool(dnsCustomEndpointFlag, false, "DNS custom endpoint")
cmd.Flags().Bool(logMeCustomEndpointFlag, false, "LogMe custom endpoint")
cmd.Flags().Bool(mariaDBCustomEndpointFlag, false, "MariaDB custom endpoint")
cmd.Flags().Bool(membershipCustomEndpointFlag, false, "Membership custom endpoint")
cmd.Flags().Bool(mongoDBFlexCustomEndpointFlag, false, "MongoDB Flex custom endpoint")
cmd.Flags().Bool(openSearchCustomEndpointFlag, false, "OpenSearch custom endpoint")
cmd.Flags().Bool(postgresFlexCustomEndpointFlag, false, "PostgreSQL Flex custom endpoint")
Expand All @@ -154,10 +154,10 @@ func parseInput(cmd *cobra.Command) *inputModel {
OutputFormat: flags.FlagToBoolValue(cmd, outputFormatFlag),
ProjectId: flags.FlagToBoolValue(cmd, projectIdFlag),

AuthorizationCustomEndpoint: flags.FlagToBoolValue(cmd, authorizationCustomEndpointFlag),
DNSCustomEndpoint: flags.FlagToBoolValue(cmd, dnsCustomEndpointFlag),
LogMeCustomEndpoint: flags.FlagToBoolValue(cmd, logMeCustomEndpointFlag),
MariaDBCustomEndpoint: flags.FlagToBoolValue(cmd, mariaDBCustomEndpointFlag),
MembershipCustomEndpoint: flags.FlagToBoolValue(cmd, membershipCustomEndpointFlag),
MongoDBFlexCustomEndpoint: flags.FlagToBoolValue(cmd, mongoDBFlexCustomEndpointFlag),
OpenSearchCustomEndpoint: flags.FlagToBoolValue(cmd, openSearchCustomEndpointFlag),
PostgresFlexCustomEndpoint: flags.FlagToBoolValue(cmd, postgresFlexCustomEndpointFlag),
Expand Down
10 changes: 5 additions & 5 deletions internal/cmd/organization/member/add/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"github.com/stackitcloud/stackit-cli/internal/pkg/examples"
"github.com/stackitcloud/stackit-cli/internal/pkg/flags"
"github.com/stackitcloud/stackit-cli/internal/pkg/globalflags"
"github.com/stackitcloud/stackit-cli/internal/pkg/services/membership/client"
"github.com/stackitcloud/stackit-cli/internal/pkg/services/authorization/client"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"

"github.com/spf13/cobra"
"github.com/stackitcloud/stackit-sdk-go/services/membership"
"github.com/stackitcloud/stackit-sdk-go/services/authorization"
)

const (
Expand Down Expand Up @@ -107,10 +107,10 @@ func parseInput(cmd *cobra.Command, inputArgs []string) (*inputModel, error) {
}, nil
}

func buildRequest(ctx context.Context, model *inputModel, apiClient *membership.APIClient) membership.ApiAddMembersRequest {
func buildRequest(ctx context.Context, model *inputModel, apiClient *authorization.APIClient) authorization.ApiAddMembersRequest {
req := apiClient.AddMembers(ctx, *model.OrganizationId)
req = req.AddMembersPayload(membership.AddMembersPayload{
Members: utils.Ptr([]membership.Member{
req = req.AddMembersPayload(authorization.AddMembersPayload{
Members: utils.Ptr([]authorization.Member{
{
Subject: utils.Ptr(model.Subject),
Role: model.Role,
Expand Down
12 changes: 6 additions & 6 deletions internal/cmd/organization/member/add/add_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (

"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/stackitcloud/stackit-sdk-go/services/membership"
"github.com/stackitcloud/stackit-sdk-go/services/authorization"
)

type testCtxKey struct{}

var testCtx = context.WithValue(context.Background(), testCtxKey{}, "foo")
var testClient = &membership.APIClient{}
var testClient = &authorization.APIClient{}
var testOrganizationID = "some-organization-id"
var testSubject = "[email protected]"
var testRole = "reader"
Expand Down Expand Up @@ -54,10 +54,10 @@ func fixtureInputModel(mods ...func(model *inputModel)) *inputModel {
return model
}

func fixtureRequest(mods ...func(request *membership.ApiAddMembersRequest)) membership.ApiAddMembersRequest {
func fixtureRequest(mods ...func(request *authorization.ApiAddMembersRequest)) authorization.ApiAddMembersRequest {
request := testClient.AddMembers(testCtx, testOrganizationID)
request = request.AddMembersPayload(membership.AddMembersPayload{
Members: utils.Ptr([]membership.Member{
request = request.AddMembersPayload(authorization.AddMembersPayload{
Members: utils.Ptr([]authorization.Member{
{
Subject: &testSubject,
Role: &testRole,
Expand Down Expand Up @@ -178,7 +178,7 @@ func TestBuildRequest(t *testing.T) {
tests := []struct {
description string
model *inputModel
expectedRequest membership.ApiAddMembersRequest
expectedRequest authorization.ApiAddMembersRequest
}{
{
description: "base",
Expand Down
8 changes: 4 additions & 4 deletions internal/cmd/organization/member/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import (
"github.com/stackitcloud/stackit-cli/internal/pkg/examples"
"github.com/stackitcloud/stackit-cli/internal/pkg/flags"
"github.com/stackitcloud/stackit-cli/internal/pkg/globalflags"
"github.com/stackitcloud/stackit-cli/internal/pkg/services/membership/client"
"github.com/stackitcloud/stackit-cli/internal/pkg/services/authorization/client"
"github.com/stackitcloud/stackit-cli/internal/pkg/tables"

"github.com/spf13/cobra"
"github.com/stackitcloud/stackit-sdk-go/services/membership"
"github.com/stackitcloud/stackit-sdk-go/services/authorization"
)

const (
Expand Down Expand Up @@ -122,15 +122,15 @@ func parseInput(cmd *cobra.Command) (*inputModel, error) {
}, nil
}

func buildRequest(ctx context.Context, model *inputModel, apiClient *membership.APIClient) membership.ApiListMembersRequest {
func buildRequest(ctx context.Context, model *inputModel, apiClient *authorization.APIClient) authorization.ApiListMembersRequest {
req := apiClient.ListMembers(ctx, organizationResourceType, *model.OrganizationId)
if model.Subject != nil {
req = req.Subject(*model.Subject)
}
return req
}

func outputResult(cmd *cobra.Command, model *inputModel, members []membership.Member) error {
func outputResult(cmd *cobra.Command, model *inputModel, members []authorization.Member) error {
sortFn := func(i, j int) bool {
switch model.SortBy {
case "subject":
Expand Down
8 changes: 4 additions & 4 deletions internal/cmd/organization/member/list/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/spf13/cobra"
"github.com/stackitcloud/stackit-sdk-go/services/membership"
"github.com/stackitcloud/stackit-sdk-go/services/authorization"
)

type testCtxKey struct{}

var testCtx = context.WithValue(context.Background(), testCtxKey{}, "foo")
var testClient = &membership.APIClient{}
var testClient = &authorization.APIClient{}
var testOrganizationID = "some-organization-id"

func fixtureFlagValues(mods ...func(flagValues map[string]string)) map[string]string {
Expand All @@ -43,7 +43,7 @@ func fixtureInputModel(mods ...func(model *inputModel)) *inputModel {
return model
}

func fixtureRequest(mods ...func(request *membership.ApiListMembersRequest)) membership.ApiListMembersRequest {
func fixtureRequest(mods ...func(request *authorization.ApiListMembersRequest)) authorization.ApiListMembersRequest {
request := testClient.ListMembers(testCtx, organizationResourceType, testOrganizationID)
for _, mod := range mods {
mod(&request)
Expand Down Expand Up @@ -172,7 +172,7 @@ func TestBuildRequest(t *testing.T) {
tests := []struct {
description string
model *inputModel
expectedRequest membership.ApiListMembersRequest
expectedRequest authorization.ApiListMembersRequest
}{
{
description: "base",
Expand Down
10 changes: 5 additions & 5 deletions internal/cmd/organization/member/remove/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"github.com/stackitcloud/stackit-cli/internal/pkg/examples"
"github.com/stackitcloud/stackit-cli/internal/pkg/flags"
"github.com/stackitcloud/stackit-cli/internal/pkg/globalflags"
"github.com/stackitcloud/stackit-cli/internal/pkg/services/membership/client"
"github.com/stackitcloud/stackit-cli/internal/pkg/services/authorization/client"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"

"github.com/spf13/cobra"
"github.com/stackitcloud/stackit-sdk-go/services/membership"
"github.com/stackitcloud/stackit-sdk-go/services/authorization"
)

const (
Expand Down Expand Up @@ -115,10 +115,10 @@ func parseInput(cmd *cobra.Command, inputArgs []string) (*inputModel, error) {
}, nil
}

func buildRequest(ctx context.Context, model *inputModel, apiClient *membership.APIClient) membership.ApiRemoveMembersRequest {
func buildRequest(ctx context.Context, model *inputModel, apiClient *authorization.APIClient) authorization.ApiRemoveMembersRequest {
req := apiClient.RemoveMembers(ctx, *model.OrganizationId)
payload := membership.RemoveMembersPayload{
Members: utils.Ptr([]membership.Member{
payload := authorization.RemoveMembersPayload{
Members: utils.Ptr([]authorization.Member{
{
Subject: utils.Ptr(model.Subject),
Role: model.Role,
Expand Down
16 changes: 8 additions & 8 deletions internal/cmd/organization/member/remove/remove_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (

"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/stackitcloud/stackit-sdk-go/services/membership"
"github.com/stackitcloud/stackit-sdk-go/services/authorization"
)

type testCtxKey struct{}

var testCtx = context.WithValue(context.Background(), testCtxKey{}, "foo")
var testClient = &membership.APIClient{}
var testClient = &authorization.APIClient{}
var testOrganizationID = "some-organization-id"
var testSubject = "[email protected]"
var testRole = "reader"
Expand Down Expand Up @@ -54,10 +54,10 @@ func fixtureInputModel(mods ...func(model *inputModel)) *inputModel {
return model
}

func fixtureRequest(mods ...func(request *membership.ApiRemoveMembersRequest)) membership.ApiRemoveMembersRequest {
func fixtureRequest(mods ...func(request *authorization.ApiRemoveMembersRequest)) authorization.ApiRemoveMembersRequest {
request := testClient.RemoveMembers(testCtx, testOrganizationID)
request = request.RemoveMembersPayload(membership.RemoveMembersPayload{
Members: utils.Ptr([]membership.Member{
request = request.RemoveMembersPayload(authorization.RemoveMembersPayload{
Members: utils.Ptr([]authorization.Member{
{
Subject: &testSubject,
Role: &testRole,
Expand Down Expand Up @@ -191,7 +191,7 @@ func TestBuildRequest(t *testing.T) {
tests := []struct {
description string
model *inputModel
expectedRequest membership.ApiRemoveMembersRequest
expectedRequest authorization.ApiRemoveMembersRequest
}{
{
description: "base",
Expand All @@ -204,8 +204,8 @@ func TestBuildRequest(t *testing.T) {
model.Force = true
}),
expectedRequest: testClient.RemoveMembers(testCtx, testOrganizationID).
RemoveMembersPayload(membership.RemoveMembersPayload{
Members: utils.Ptr([]membership.Member{
RemoveMembersPayload(authorization.RemoveMembersPayload{
Members: utils.Ptr([]authorization.Member{
{
Subject: &testSubject,
Role: &testRole,
Expand Down
Loading

0 comments on commit dd6e08b

Please sign in to comment.