OSDN Git Service

improves CA certificates and server key pair deployment.
[metasearch/grid-chef-repo.git] / cookbooks / openldap-grid / spec / recipes / nss-ldapd_spec.rb
index 565eb5f..6dfa9a0 100644 (file)
@@ -2,7 +2,7 @@
 # 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.
@@ -22,8 +22,8 @@ require_relative '../spec_helper'
 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)
   }
 
@@ -61,8 +61,8 @@ describe 'openldap::nss-ldapd' do
 
   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)
   }