[DRE-commits] [hiera] 03/03: patch also unit tests

Jonas Genannt genannt at moszumanska.debian.org
Tue May 24 18:33:14 UTC 2016


This is an automated email from the git hooks/post-receive script.

genannt pushed a commit to branch master
in repository hiera.

commit 7a9ca59ed4c479fbab4361d24e7c08317991f577
Author: Jonas Genannt <jonas at brachium-system.net>
Date:   Tue May 24 20:29:52 2016 +0200

    patch also unit tests
---
 debian/patches/use_puppet_conf.patch | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/debian/patches/use_puppet_conf.patch b/debian/patches/use_puppet_conf.patch
index b508018..3d469be 100644
--- a/debian/patches/use_puppet_conf.patch
+++ b/debian/patches/use_puppet_conf.patch
@@ -38,3 +38,34 @@ index d21246c..ae53a07 100644
        end
      end
  
+diff --git a/spec/unit/util_spec.rb b/spec/unit/util_spec.rb
+index 9f654fe..a198b40 100644
+--- a/spec/unit/util_spec.rb
++++ b/spec/unit/util_spec.rb
+@@ -23,7 +23,7 @@ describe Hiera::Util do
+   describe 'Hiera::Util.config_dir' do
+     it 'should return the correct path for posix systems' do
+       Hiera::Util.expects(:file_alt_separator).returns(nil)
+-      expect(Hiera::Util.config_dir).to eq('/etc/puppetlabs/puppet')
++      expect(Hiera::Util.config_dir).to eq('/etc/puppet')
+     end
+ 
+     it 'should return the correct path for microsoft windows systems' do
+@@ -36,7 +36,7 @@ describe Hiera::Util do
+   describe 'Hiera::Util.code_dir' do
+     it 'should return the correct path for posix systems' do
+       Hiera::Util.expects(:file_alt_separator).returns(nil)
+-      expect(Hiera::Util.code_dir).to eq('/etc/puppetlabs/code')
++      expect(Hiera::Util.code_dir).to eq('/etc/puppet')
+     end
+ 
+     it 'should return the correct path for microsoft windows systems' do
+@@ -49,7 +49,7 @@ describe Hiera::Util do
+   describe 'Hiera::Util.var_dir' do
+     it 'should return the correct path for posix systems' do
+       Hiera::Util.expects(:file_alt_separator).returns(nil)
+-      expect(Hiera::Util.var_dir).to eq('/etc/puppetlabs/code/environments/%{environment}/hieradata')
++      expect(Hiera::Util.var_dir).to eq('/etc/puppet/environments/%{environment}/hieradata')
+     end
+ 
+     it 'should return the correct path for microsoft windows systems' do

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/hiera.git



More information about the Pkg-ruby-extras-commits mailing list