File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
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
+ require 'pry'
3
4
4
5
describe 'mysql localization' , if : ( fact ( 'osfamily' ) == 'Debian' || fact ( 'osfamily' ) == 'RedHat' ) && puppet_version =~ %r{(^4\. 10\. [56789]|5\. \d \. \d )} do
5
6
before :all do
@@ -53,9 +54,8 @@ class { 'mysql::server::backup':
53
54
end
54
55
55
56
it 'displays Japanese failure' do
56
- pending 'waiting on japanese translation in the po file'
57
57
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 )
59
59
end
60
60
end
61
61
end
@@ -82,14 +82,16 @@ class { 'mysql::server::backup':
82
82
context 'when triggering ruby interpolated string error' do
83
83
let ( :pp ) do
84
84
<<-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
87
89
end
88
90
89
91
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 )
93
95
end
94
96
end
95
97
end
You can’t perform that action at this time.
0 commit comments