Skip to content

Commit 90f2078

Browse files
author
Helen Campbell
committed
Addition of RedHat for locales tests
1 parent 037eb3d commit 90f2078

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

spec/acceptance/locales_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'spec_helper_acceptance'
22
require 'beaker/i18n_helper'
33

4-
describe 'mysql localization', if: fact('osfamily') == 'Debian' && puppet_version =~ %r{(^4\.10\.[56789]|5\.\d\.\d)} do
4+
describe 'mysql localization', if: (fact('osfamily') == 'Debian' || fact('osfamily') == 'RedHat') && puppet_version =~ %r{(^4\.10\.[56789]|5\.\d\.\d)} do
55
before :all do
66
hosts.each do |host|
77
on(host, "sed -i \"96i FastGettext.locale='ja'\" /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb")

spec/spec_helper_acceptance.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ def puppet_version
3838
end
3939
# Required for binding tests.
4040
if fact('osfamily') == 'RedHat'
41+
on(host, 'mkdir /opt/puppetlabs/puppet/share/locale/ja')
42+
on(host, 'touch /opt/puppetlabs/puppet/share/locale/ja/puppet.po')
4143
if fact('operatingsystemmajrelease') =~ %r{7} || fact('operatingsystem') =~ %r{Fedora}
4244
shell('yum install -y bzip2')
4345
end
4446
end
45-
4647
on host, puppet('module', 'install', 'stahnma/epel')
4748
end
4849
end

0 commit comments

Comments
 (0)