
- Switch to Stein release - Cookstyle fixes - Update cookbook etcd to ~> 5.6 - Update README - Add myself to author list and OSU Copyright - Properly fix completions recipe and ensure it works - Create and start the etcd service in the etcd recipe - Update delivery configuration to exclude integration cookbooks - Refactor and update RenderConfigFileMatcher to work with newer ChefSpec. This fixes output which was passing but showing error messages. Depends-On: https://review.opendev.org/701027 Change-Id: Iba3eeabe85ab9303147e43eeb550212a46d190f3
24 lines
646 B
Ruby
24 lines
646 B
Ruby
# encoding: UTF-8
|
|
require_relative 'spec_helper'
|
|
|
|
describe 'openstack-common::sysctl' do
|
|
describe 'ubuntu' do
|
|
sysctl_kv = {
|
|
'sysctl_key1' => 'sysctl_value1',
|
|
'sysctl_key2' => 'sysctl_value2',
|
|
}
|
|
let(:runner) { ChefSpec::SoloRunner.new(UBUNTU_OPTS) }
|
|
let(:node) { runner.node }
|
|
cached(:chef_run) do
|
|
node.override['openstack']['sysctl'] = sysctl_kv
|
|
runner.converge(described_recipe)
|
|
end
|
|
it do
|
|
expect(chef_run).to apply_sysctl('sysctl_key1').with(value: 'sysctl_value1')
|
|
end
|
|
it do
|
|
expect(chef_run).to apply_sysctl('sysctl_key2').with(value: 'sysctl_value2')
|
|
end
|
|
end
|
|
end
|