Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit 475668a

Browse files
committed
fix token unit test
1 parent 95b74c8 commit 475668a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

openstack/identity/v2/tokens/requests_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package tokens
22

33
import (
4+
"fmt"
45
"testing"
56

67
"github.com/rackspace/gophercloud"
@@ -22,7 +23,7 @@ func tokenPostErr(t *testing.T, options gophercloud.AuthOptions, expectedErr err
2223
HandleTokenPost(t, "")
2324

2425
actualErr := Create(client.ServiceClient(), AuthOptions{options}).Err
25-
th.CheckEquals(t, expectedErr, actualErr)
26+
th.CheckDeepEquals(t, expectedErr, actualErr)
2627
}
2728

2829
func TestCreateWithPassword(t *testing.T) {
@@ -128,7 +129,7 @@ func TestRequireUsername(t *testing.T) {
128129
Password: "thing",
129130
}
130131

131-
tokenPostErr(t, options, ErrUsernameRequired)
132+
tokenPostErr(t, options, fmt.Errorf("You must provide either username/password or tenantID/token values."))
132133
}
133134

134135
func TestRequirePassword(t *testing.T) {

0 commit comments

Comments
 (0)