Skip to content
Browse files

Remove the token filter such that all tokens are

tested to be jwt tokens.

Change-Id: I86faa9d1780b40d88365c20e03e030f0315fe6a3
  • Loading branch information...
1 parent f8db36a commit 24ab9d9ae670024cd458af83da4f34b7bf0c43a8 @joeldsa joeldsa committed
Showing with 3 additions and 6 deletions.
  1. +2 −5 features/step_definitions/appcloud_steps.rb
  2. +1 −1 features/user_management.feature
View
7 features/step_definitions/appcloud_steps.rb
@@ -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
View
2 features/user_management.feature
@@ -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 24ab9d9

Please sign in to comment.
Something went wrong with that request. Please try again.