Skip to content

Commit eb1377b

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ def puppet_version
3838
end
3939
# Required for binding tests.
4040
if fact('osfamily') == 'RedHat'
41+
change_locale_on(host, "ja_JP.utf-8")
4142
if fact('operatingsystemmajrelease') =~ %r{7} || fact('operatingsystem') =~ %r{Fedora}
4243
shell('yum install -y bzip2')
4344
end
4445
end
45-
4646
on host, puppet('module', 'install', 'stahnma/epel')
4747
end
4848
end

0 commit comments

Comments
 (0)