summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-12-17 23:48:58 +0000
committerGo MAEDA <maeda@farend.jp>2018-12-17 23:48:58 +0000
commit55ef1f4585cf979949a4c8329f2cba57341b5392 (patch)
treeb780d79d14cc856d12ca2c524144cfc49a55a73d
parent312c067b32557b7875462b468a57a4801a3c5a9e (diff)
downloadredmine-55ef1f4585cf979949a4c8329f2cba57341b5392.tar.gz
redmine-55ef1f4585cf979949a4c8329f2cba57341b5392.zip
Merged r17764 from trunk to 3.4-stable (#30171).
git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@17768 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/unit/lib/redmine/ciphering_test.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/lib/redmine/ciphering_test.rb b/test/unit/lib/redmine/ciphering_test.rb
index 76b0e3743..38f87b419 100644
--- a/test/unit/lib/redmine/ciphering_test.rb
+++ b/test/unit/lib/redmine/ciphering_test.rb
@@ -21,8 +21,9 @@ class Redmine::CipheringTest < ActiveSupport::TestCase
def test_password_should_be_encrypted
Redmine::Configuration.with 'database_cipher_key' => 'secret' do
- r = Repository::Subversion.create!(:password => 'foo', :url => 'file:///tmp', :identifier => 'svn')
- assert_equal 'foo', r.password
+ plaintext_password = "THIS_IS_A_32_BYTES_LONG_PASSWORD"
+ r = Repository::Subversion.create!(:password => plaintext_password, :url => 'file:///tmp', :identifier => 'svn')
+ assert_equal plaintext_password, r.password
assert r.read_attribute(:password).match(/\Aaes-256-cbc:.+\Z/)
end
end