Permalink
Browse files

Merge "Remove the token filter such that all tokens are tested to be …

…jwt tokens."
  • Loading branch information...
2 parents d0bd45f + 24ab9d9 commit 85342ddacd53c078a0f077b53e48b2fb91009f27 @joeldsa joeldsa committed with Gerrit Code Review Jun 5, 2012
Showing with 3 additions and 6 deletions.
  1. +2 −5 features/step_definitions/appcloud_steps.rb
  2. +1 −1 features/user_management.feature
@@ -49,11 +49,8 @@
@token.should_not == nil
end
-Then /^the token should be a jwt token if the user has a vmware email address$/ do
- user = AppCloudHelper.instance.get_registered_user
- if user.end_with?("@vmware.com") || user.end_with?("@rbcon.com")
- /(^bearer\s\S+[.]\S+[.]\S+$)/.match(@token).should_not == nil
- end
+Then /^the token should be a jwt token$/ do
+ /(^bearer\s\S+[.]\S+[.]\S+$)/.match(@token).should_not == nil
end
Then /^I should be able to change my password$/ do
@@ -15,7 +15,7 @@ Feature: User registration with and establishment of an authentication token wit
When I login
Then I should get an authentication token that I need to use with all subsequent AppCloud requests
Then I should be able to change my password
- Then the token should be a jwt token if the user has a vmware email address
+ Then the token should be a jwt token
Scenario: Reset user authentication token
Given I have registered and logged in

0 comments on commit 85342dd

Please sign in to comment.