Permalink
Browse files

Rename request_tests.go to request_test.go

This is the usual convention and it is assumed by several tools like godep.
  • Loading branch information...
1 parent c90cb95 commit 60916741c8ec228e035f8229aee85452840e2c0d @MatMaul MatMaul committed Sep 20, 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 6091674

Please sign in to comment.