GitLab steht Mittwoch, den 08. Juli, zwischen 09:00 und 13:00 Uhr aufgrund von Wartungsarbeiten nicht zur Verfügung.

Commit d53618aa authored by maeda's avatar maeda

Test for r17763 (#30171).

Patch by Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@17764 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 2a9c7caa
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment