summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-11-27 21:52:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-11-27 21:52:38 +0000
commite43448f6cae297b8364c0d0520daf8f0041649c7 (patch)
treee0cbb1053479b9d32c18025ff4b0b684f333d6e3 /test/integration
parent14e56006a1f83ceb70291234d7b609150446aefb (diff)
downloadredmine-e43448f6cae297b8364c0d0520daf8f0041649c7.tar.gz
redmine-e43448f6cae297b8364c0d0520daf8f0041649c7.zip
Use 8+ characters long passwords in tests.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10886 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/account_test.rb12
-rw-r--r--test/integration/api_test/users_test.rb6
-rw-r--r--test/integration/layout_test.rb4
3 files changed, 11 insertions, 11 deletions
diff --git a/test/integration/account_test.rb b/test/integration/account_test.rb
index 905beb0a9..e16cda96b 100644
--- a/test/integration/account_test.rb
+++ b/test/integration/account_test.rb
@@ -91,11 +91,11 @@ class AccountTest < ActionController::IntegrationTest
assert_select 'input[name=new_password]'
assert_select 'input[name=new_password_confirmation]'
- post "account/lost_password", :token => token.value, :new_password => 'newpass', :new_password_confirmation => 'newpass'
+ post "account/lost_password", :token => token.value, :new_password => 'newpass123', :new_password_confirmation => 'newpass123'
assert_redirected_to "/login"
assert_equal 'Password was successfully updated.', flash[:notice]
- log_user('jsmith', 'newpass')
+ log_user('jsmith', 'newpass123')
assert_equal 0, Token.count
end
@@ -107,7 +107,7 @@ class AccountTest < ActionController::IntegrationTest
assert_template 'account/register'
post 'account/register', :user => {:login => "newuser", :language => "en", :firstname => "New", :lastname => "User", :mail => "newuser@foo.bar",
- :password => "newpass", :password_confirmation => "newpass"}
+ :password => "newpass123", :password_confirmation => "newpass123"}
assert_redirected_to '/my/account'
follow_redirect!
assert_response :success
@@ -123,7 +123,7 @@ class AccountTest < ActionController::IntegrationTest
Setting.self_registration = '2'
post 'account/register', :user => {:login => "newuser", :language => "en", :firstname => "New", :lastname => "User", :mail => "newuser@foo.bar",
- :password => "newpass", :password_confirmation => "newpass"}
+ :password => "newpass123", :password_confirmation => "newpass123"}
assert_redirected_to '/login'
assert !User.find_by_login('newuser').active?
end
@@ -133,7 +133,7 @@ class AccountTest < ActionController::IntegrationTest
Token.delete_all
post 'account/register', :user => {:login => "newuser", :language => "en", :firstname => "New", :lastname => "User", :mail => "newuser@foo.bar",
- :password => "newpass", :password_confirmation => "newpass"}
+ :password => "newpass123", :password_confirmation => "newpass123"}
assert_redirected_to '/login'
assert !User.find_by_login('newuser').active?
@@ -144,7 +144,7 @@ class AccountTest < ActionController::IntegrationTest
get 'account/activate', :token => token.value
assert_redirected_to '/login'
- log_user('newuser', 'newpass')
+ log_user('newuser', 'newpass123')
end
def test_onthefly_registration
diff --git a/test/integration/api_test/users_test.rb b/test/integration/api_test/users_test.rb
index 3db7bb894..9ea1d538c 100644
--- a/test/integration/api_test/users_test.rb
+++ b/test/integration/api_test/users_test.rb
@@ -102,7 +102,7 @@ class ApiTest::UsersTest < ActionController::IntegrationTest
@parameters = {
:user => {
:login => 'foo', :firstname => 'Firstname', :lastname => 'Lastname',
- :mail => 'foo@example.net', :password => 'secret',
+ :mail => 'foo@example.net', :password => 'secret123',
:mail_notification => 'only_assigned'
}
}
@@ -113,7 +113,7 @@ class ApiTest::UsersTest < ActionController::IntegrationTest
'/users.xml',
{:user => {
:login => 'foo', :firstname => 'Firstname', :lastname => 'Lastname',
- :mail => 'foo@example.net', :password => 'secret'
+ :mail => 'foo@example.net', :password => 'secret123'
}},
{:success_code => :created})
@@ -129,7 +129,7 @@ class ApiTest::UsersTest < ActionController::IntegrationTest
assert_equal 'foo@example.net', user.mail
assert_equal 'only_assigned', user.mail_notification
assert !user.admin?
- assert user.check_password?('secret')
+ assert user.check_password?('secret123')
assert_response :created
assert_equal 'application/xml', @response.content_type
diff --git a/test/integration/layout_test.rb b/test/integration/layout_test.rb
index b1873b159..7539977f2 100644
--- a/test/integration/layout_test.rb
+++ b/test/integration/layout_test.rb
@@ -37,9 +37,9 @@ class LayoutTest < ActionController::IntegrationTest
end
test "browsing to an unauthorized page should render the base layout" do
- change_user_password('miscuser9', 'test')
+ change_user_password('miscuser9', 'test1234')
- log_user('miscuser9','test')
+ log_user('miscuser9','test1234')
get "/admin"
assert_response :forbidden