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

Commit e00690e

Browse files
authored
Merge pull request #614 from MatMaul/rename_test_file
Rename request_tests.go to request_test.go
2 parents c90cb95 + 6091674 commit e00690e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

openstack/identity/v3/extensions/trust/request_tests.go renamed to openstack/identity/v3/extensions/trust/request_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func authTokenPost(t *testing.T, options gophercloud.AuthOptions, scope *tokens.
1717

1818
client := gophercloud.ServiceClient{
1919
ProviderClient: &gophercloud.ProviderClient{
20-
TokenID: "12345abcdef",
20+
TokenID: options.TokenID,
2121
},
2222
Endpoint: testhelper.Endpoint(),
2323
}
@@ -64,7 +64,7 @@ func authTokenPostErr(t *testing.T, options gophercloud.AuthOptions, scope *toke
6464
}
6565

6666
func TestTrustIDTokenID(t *testing.T) {
67-
options := gophercloud.AuthOptions{TokenID: "old_trustee"}
67+
options := gophercloud.AuthOptions{TokenID: "trustee_token"}
6868
var scope *tokens.Scope
6969
authTokenPost(t, options, scope, `
7070
{
@@ -74,7 +74,7 @@ func TestTrustIDTokenID(t *testing.T) {
7474
"token"
7575
],
7676
"token": {
77-
"id": "12345abcdef"
77+
"id": "trustee_token"
7878
}
7979
},
8080
"scope": {
@@ -89,7 +89,7 @@ func TestTrustIDTokenID(t *testing.T) {
8989
}
9090

9191
func TestFailurePassword(t *testing.T) {
92-
options := gophercloud.AuthOptions{TokenID: "fakeidnopass"}
92+
options := gophercloud.AuthOptions{TokenID: ""}
9393
//Service Client must have tokenId or password,
9494
//setting include tokenId to false
9595
//scope := &Scope{TrustID: "notenough"}

0 commit comments

Comments
 (0)