Skip to content

Commit 485aebe

Browse files
committed
(FM-6471) - Updating tests to include translations
1 parent e8ca172 commit 485aebe

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

spec/acceptance/locales_spec.rb

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require 'spec_helper_acceptance'
22
require 'beaker/i18n_helper'
3+
require 'pry'
34

45
describe 'mysql localization', if: (fact('osfamily') == 'Debian' || fact('osfamily') == 'RedHat') && puppet_version =~ %r{(^4\.10\.[56789]|5\.\d\.\d)} do
56
before :all do
@@ -53,9 +54,8 @@ class { 'mysql::server::backup':
5354
end
5455

5556
it 'displays Japanese failure' do
56-
pending 'waiting on japanese translation in the po file'
5757
apply_manifest(pp, catch_failures: true) do |r|
58-
expect(r.stderr).not_to match(%r{The 'prescript' option is not currently implemented for the mysqldump backup provider.}i)
58+
expect(r.stderr).to match(%r{'prescript'オプションは、現在、mysqldumpバックアッププロバイダ向けには実装されていません。}i)
5959
end
6060
end
6161
end
@@ -82,14 +82,16 @@ class { 'mysql::server::backup':
8282
context 'when triggering ruby interpolated string error' do
8383
let(:pp) do
8484
<<-EOS
85-
$password_hash = mysql_password('new_password', 'should not have second parameter')
86-
EOS
85+
mysql_user{ '"name@localhost':
86+
ensure => 'present',
87+
}
88+
EOS
8789
end
8890

8991
it 'displays Japanese error' do
90-
pending 'waiting on japanese translation in the po file'
91-
apply_manifest(pp, catch_error: true) do |r|
92-
expect(r.stderr).not_to match(%r{mysql_password(): Wrong number of arguments given (2 for 1)}i)
92+
binding.pry
93+
apply_manifest(pp, expect_failures: true) do |r|
94+
expect(r.stderr).to match(%r{無効なデータベースのユーザ"name@localhost}i)
9395
end
9496
end
9597
end

0 commit comments

Comments
 (0)