File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 98
98
it { is_expected . to contain_file ( '/tmp/error.log' ) }
99
99
end
100
100
context 'default bind-address' do
101
- let ( :params ) { }
102
-
103
- it { is_expected . to contain_file ( 'mysql-config-file' ) . with_content ( /^bind-address = 127.0.0.1/ ) }
101
+ it { is_expected . to contain_file ( 'mysql-config-file' ) . with_content ( %r{^bind-address = 127.0.0.1} ) }
104
102
end
105
103
context 'with defined bind-address' do
106
104
let ( :params ) { { override_options : { 'mysqld' => { 'bind-address' => '1.1.1.1' } } } }
107
105
108
- it { is_expected . to contain_file ( 'mysql-config-file' ) . with_content ( / ^bind-address = 1.1.1.1/ ) }
106
+ it { is_expected . to contain_file ( 'mysql-config-file' ) . with_content ( %r{ ^bind-address = 1.1.1.1} ) }
109
107
end
110
108
context 'without bind-address' do
111
109
let ( :params ) { { override_options : { 'mysqld' => { 'bind-address' => :undef } } } }
112
110
113
- it { is_expected . to contain_file ( 'mysql-config-file' ) . without_content ( / ^bind-address/ ) }
111
+ it { is_expected . to contain_file ( 'mysql-config-file' ) . without_content ( %r{ ^bind-address} ) }
114
112
end
115
113
end
116
114
Original file line number Diff line number Diff line change 6
6
<% v.sort.map do |ki, vi| -%>
7
7
<% if ki == 'ssl-disable' or (ki =~ /^ssl/ and v['ssl-disable'] == true) -%>
8
8
<% next %>
9
- <% elsif ki == 'bind-address' and vi == :undef -%>
10
- <% next %>
11
9
<% elsif vi == true or vi == '' -%>
12
10
<%= ki %>
13
11
<% elsif vi.is_a?(Array) -%>
You can’t perform that action at this time.
0 commit comments