Project

General

Profile

« Previous | Next » 

Revision 6340ec56

Added by Evgeni Golov 10 months ago

Fixes #36660 - drop value from settings dsl

also update plugin docs to use a seed instead of a migration if they
need a value

View differences:

test/unit/setting_registry_test.rb
registry.load_values
end
describe '#load' do
it 'loads initial value from the inventory, tho deprecates it' do
uuid = Foreman.uuid
registry.stubs(:load_definitions)
Foreman::Deprecation.expects(:deprecation_warning)
registry._add('test_uuid', type: :string, category: 'general', default: 'uuid', value: uuid, full_name: 'test uuid', description: 'test uuid', context: :test)
registry.load
assert_equal uuid, Setting['test_uuid'], 'The initial value was not set'
end
end
describe '#load_values' do
it "doesn't update definitions for unchanged settings" do
registry.expects(:find).never

Also available in: Unified diff