Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions auth_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,6 @@ func (opts *AuthOptions) ToTokenV3CreateMap(scope map[string]interface{}) (map[s
if opts.UserID != "" {
return nil, ErrUserIDWithToken{}
}
if opts.DomainID != "" {
return nil, ErrDomainIDWithToken{}
}
if opts.DomainName != "" {
return nil, ErrDomainNameWithToken{}
}

// Configure the request for Token authentication.
req.Auth.Identity.Methods = []string{"token"}
Expand Down
8 changes: 0 additions & 8 deletions openstack/identity/v3/tokens/testing/requests_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,14 +318,6 @@ func TestCreateFailureTokenIDUserID(t *testing.T) {
authTokenPostErr(t, tokens.AuthOptions{UserID: "something", TokenID: "12345"}, nil, true, golangsdk.ErrUserIDWithToken{})
}

func TestCreateFailureTokenIDDomainID(t *testing.T) {
authTokenPostErr(t, tokens.AuthOptions{DomainID: "something", TokenID: "12345"}, nil, true, golangsdk.ErrDomainIDWithToken{})
}

func TestCreateFailureTokenIDDomainName(t *testing.T) {
authTokenPostErr(t, tokens.AuthOptions{DomainName: "something", TokenID: "12345"}, nil, true, golangsdk.ErrDomainNameWithToken{})
}

func TestCreateFailureMissingUser(t *testing.T) {
options := tokens.AuthOptions{Password: "supersecure"}
authTokenPostErr(t, options, nil, false, golangsdk.ErrUsernameOrUserID{})
Expand Down