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

Commit

Permalink
Merge pull request #614 from MatMaul/rename_test_file
Browse files Browse the repository at this point in the history
Rename request_tests.go to request_test.go
  • Loading branch information
jrperritt authored Oct 13, 2016
2 parents c90cb95 + 6091674 commit e00690e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func authTokenPost(t *testing.T, options gophercloud.AuthOptions, scope *tokens.

client := gophercloud.ServiceClient{
ProviderClient: &gophercloud.ProviderClient{
TokenID: "12345abcdef",
TokenID: options.TokenID,
},
Endpoint: testhelper.Endpoint(),
}
Expand Down Expand Up @@ -64,7 +64,7 @@ func authTokenPostErr(t *testing.T, options gophercloud.AuthOptions, scope *toke
}

func TestTrustIDTokenID(t *testing.T) {
options := gophercloud.AuthOptions{TokenID: "old_trustee"}
options := gophercloud.AuthOptions{TokenID: "trustee_token"}
var scope *tokens.Scope
authTokenPost(t, options, scope, `
{
Expand All @@ -74,7 +74,7 @@ func TestTrustIDTokenID(t *testing.T) {
"token"
],
"token": {
"id": "12345abcdef"
"id": "trustee_token"
}
},
"scope": {
Expand All @@ -89,7 +89,7 @@ func TestTrustIDTokenID(t *testing.T) {
}

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

0 comments on commit e00690e

Please sign in to comment.