Revision a79b7ae3
Added by Daniel Lobato Garcia about 8 years ago
test/units/docker_registry_test.rb | ||
---|---|---|
18 | 18 |
end |
19 | 19 |
|
20 | 20 |
test 'password is stored encrypted' do |
21 |
registry = as_admin { FactoryGirl.create(:docker_registry) } |
|
21 |
registry = as_admin { FactoryGirl.build(:docker_registry) } |
|
22 |
registry.password = 'encrypted-whatever' |
|
23 |
DockerRegistry.any_instance.expects(:encryption_key).at_least_once.returns('fakeencryptionkey') |
|
22 | 24 |
assert registry.is_decryptable?(registry.password_in_db) |
23 | 25 |
end |
24 | 26 |
|
Also available in: Unified diff
Fixes #9897 - Stub encryption key in registry test
Currently CI is broken as it needs the encryption key to be set. In the
past core provided a key for the Rails test environment but that's no
longer the case