# Cookbook Name:: openldap
# Recipe Spec:: nss-ldapd_spec
#
-# Copyright 2015, whitestar
+# Copyright 2015-2018, whitestar
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
describe 'openldap::nss-ldapd' do
let(:chef_run_on_debian) {
ChefSpec::SoloRunner.new(platform: 'debian', version: '7.6') {|node|
- node.set['openldap']['nss-ldapd']['base'] = 'dc=example,dc=net'
- node.set['openldap']['nss-ldapd']['invalid_key'] = 'value'
+ node.override['openldap']['nss-ldapd']['base'] = 'dc=example,dc=net'
+ node.override['openldap']['nss-ldapd']['invalid_key'] = 'value'
}.converge(described_recipe)
}
let(:chef_run_on_rhel) {
ChefSpec::SoloRunner.new(platform: 'centos', version: '7.0') {|node|
- node.set['openldap']['nss-ldapd']['base'] = 'dc=example,dc=net'
- node.set['openldap']['nss-ldapd']['invalid_key'] = 'value'
+ node.override['openldap']['nss-ldapd']['base'] = 'dc=example,dc=net'
+ node.override['openldap']['nss-ldapd']['invalid_key'] = 'value'
}.converge(described_recipe)
}