File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
require 'spec_helper_acceptance'
2
2
require 'beaker/i18n_helper'
3
3
4
- describe 'mysql localization' , if : ( fact ( 'osfamily' ) == 'Debian' || fact ( 'osfamily' ) == 'RedHat' ) && puppet_version =~ %r{(^4 \ . 10\. [56789]|5 \. \d \. \d )} do
4
+ describe 'mysql localization' , if : ( fact ( 'osfamily' ) == 'Debian' || fact ( 'osfamily' ) == 'RedHat' ) && ( Gem :: Version . new ( puppet_version ) >= Gem :: Version . new ( '4 .10.5' ) ) do
5
5
before :all do
6
6
hosts . each do |host |
7
7
on ( host , "sed -i \" 96i FastGettext.locale='ja'\" /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb" )
Original file line number Diff line number Diff line change 28
28
29
29
# Configure all nodes in nodeset
30
30
c . before :suite do
31
- run_puppet_access_login ( user : 'admin' ) if pe_install? && puppet_version =~ %r{(5 \. \d \. \d )}
31
+ run_puppet_access_login ( user : 'admin' ) if pe_install? && ( Gem :: Version . new ( puppet_version ) >= Gem :: Version . new ( '5.0.0' ) )
32
32
hosts . each do |host |
33
33
# This will be removed, this is temporary to test localisation.
34
- if ( fact ( 'osfamily' ) == 'Debian' || fact ( 'osfamily' ) == 'RedHat' ) && ( Gem ::Version . new ( puppet_version ) >= Gem ::Version . new ( '4.10.5' ) &&
34
+ if ( fact ( 'osfamily' ) == 'Debian' || fact ( 'osfamily' ) == 'RedHat' ) &&
35
+ ( Gem ::Version . new ( puppet_version ) >= Gem ::Version . new ( '4.10.5' ) &&
35
36
Gem ::Version . new ( puppet_version ) < Gem ::Version . new ( '5.2.0' ) )
36
37
on ( host , 'mkdir /opt/puppetlabs/puppet/share/locale/ja' )
37
38
on ( host , 'touch /opt/puppetlabs/puppet/share/locale/ja/puppet.po' )
You can’t perform that action at this time.
0 commit comments