Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Icerzack committed Jul 24, 2024
1 parent 9ee8a1f commit a7aa362
Showing 1 changed file with 23 additions and 15 deletions.
38 changes: 23 additions & 15 deletions iam_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package iam

import (
"github.com/selectel/iam-go/service/federations"
"github.com/selectel/iam-go/service/federations/certificates"
"net/http"
"testing"
"time"
Expand Down Expand Up @@ -57,11 +59,13 @@ func TestNew(t *testing.T) {
authOpts: &AuthOpts{
KeystoneToken: testToken,
},
baseClient: baseClient,
Users: users.New(baseClient),
ServiceUsers: serviceusers.New(baseClient),
Groups: groups.New(baseClient),
S3Credentials: s3credentials.New(baseClient),
baseClient: baseClient,
Users: users.New(baseClient),
ServiceUsers: serviceusers.New(baseClient),
Groups: groups.New(baseClient),
S3Credentials: s3credentials.New(baseClient),
Federations: federations.New(baseClient),
FederationsCertificates: certificates.New(baseClient),
}
},
expectedError: nil,
Expand Down Expand Up @@ -99,11 +103,13 @@ func TestNew(t *testing.T) {
authOpts: &AuthOpts{
KeystoneToken: testToken,
},
baseClient: baseClient,
Users: users.New(baseClient),
ServiceUsers: serviceusers.New(baseClient),
Groups: groups.New(baseClient),
S3Credentials: s3credentials.New(baseClient),
baseClient: baseClient,
Users: users.New(baseClient),
ServiceUsers: serviceusers.New(baseClient),
Groups: groups.New(baseClient),
S3Credentials: s3credentials.New(baseClient),
Federations: federations.New(baseClient),
FederationsCertificates: certificates.New(baseClient),
}
},
expectedError: nil,
Expand Down Expand Up @@ -134,11 +140,13 @@ func TestNew(t *testing.T) {
authOpts: &AuthOpts{
KeystoneToken: testToken,
},
baseClient: baseClient,
Users: users.New(baseClient),
ServiceUsers: serviceusers.New(baseClient),
Groups: groups.New(baseClient),
S3Credentials: s3credentials.New(baseClient),
baseClient: baseClient,
Users: users.New(baseClient),
ServiceUsers: serviceusers.New(baseClient),
Groups: groups.New(baseClient),
S3Credentials: s3credentials.New(baseClient),
Federations: federations.New(baseClient),
FederationsCertificates: certificates.New(baseClient),
}
},
expectedError: nil,
Expand Down

0 comments on commit a7aa362

Please sign in to comment.