Permalink
Browse files

Merge pull request #614 from MatMaul/rename_test_file

Rename request_tests.go to request_test.go
  • Loading branch information...
2 parents c90cb95 + 6091674 commit e00690e87603abe613e9f02c816c7c4bef82e063 @jrperritt jrperritt committed on GitHub Oct 13, 2016
Showing with 4 additions and 4 deletions.
  1. +4 −4 openstack/identity/v3/extensions/trust/{request_tests.go → request_test.go}
@@ -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(),
}
@@ -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, `
{
@@ -74,7 +74,7 @@ func TestTrustIDTokenID(t *testing.T) {
"token"
],
"token": {
- "id": "12345abcdef"
+ "id": "trustee_token"
}
},
"scope": {
@@ -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"}

0 comments on commit e00690e

Please sign in to comment.