Skip to content

Commit

Permalink
manual fixes to errors introduced by autofixes
Browse files Browse the repository at this point in the history
  • Loading branch information
William Yardley committed Aug 30, 2017
1 parent 929da03 commit 542918b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def self.users(name, vhost)
run_with_retries do
rabbitmqctl('-q', 'list_user_permissions', name)
end.split(%r{\n}).each do |line|
line = .strip_backslashes(line)
line = strip_backslashes(line)
if line =~ %r{^(\S+)\s+(\S*)\s+(\S*)\s+(\S*)$}
@users[name][Regexp.last_match(1)] =
{ configure: Regexp.last_match(2), read: Regexp.last_match(4), write: Regexp.last_match(3) }
Expand Down
56 changes: 32 additions & 24 deletions spec/classes/rabbitmq_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,10 @@
'group' => '0',
'mode' => '0644',
'notify' => 'Class[Rabbitmq::Service]',
'content' => 'rabbitmq soft nofile unlimited
rabbitmq hard nofile unlimited
'
'content' => <<-EOS
rabbitmq soft nofile unlimited
rabbitmq hard nofile unlimited
EOS
)
}
end
Expand All @@ -116,9 +117,10 @@
'group' => '0',
'mode' => '0644',
'notify' => 'Class[Rabbitmq::Service]',
'content' => 'rabbitmq soft nofile infinity
rabbitmq hard nofile infinity
'
'content' => <<-EOS
rabbitmq soft nofile infinity
rabbitmq hard nofile infinity
EOS
)
}
end
Expand All @@ -132,9 +134,10 @@
'group' => '0',
'mode' => '0644',
'notify' => 'Class[Rabbitmq::Service]',
'content' => 'rabbitmq soft nofile -1
rabbitmq hard nofile -1
'
'content' => <<-EOS
rabbitmq soft nofile -1
rabbitmq hard nofile -1
EOS
)
}
end
Expand All @@ -148,9 +151,10 @@
'group' => '0',
'mode' => '0644',
'notify' => 'Class[Rabbitmq::Service]',
'content' => 'rabbitmq soft nofile 1234
rabbitmq hard nofile 1234
'
'content' => <<-EOS
rabbitmq soft nofile 1234
rabbitmq hard nofile 1234
EOS
)
}
end
Expand Down Expand Up @@ -230,9 +234,10 @@
'group' => '0',
'mode' => '0644',
'notify' => 'Exec[rabbitmq-systemd-reload]',
'content' => '[Service]
LimitNOFILE=unlimited
'
'content' => <<-EOS
[Service]
LimitNOFILE=unlimited
EOS
)
}
end
Expand All @@ -246,9 +251,10 @@
'group' => '0',
'mode' => '0644',
'notify' => 'Exec[rabbitmq-systemd-reload]',
'content' => '[Service]
LimitNOFILE=infinity
'
'content' => <<-EOS
[Service]
LimitNOFILE=infinity
EOS
)
}
end
Expand All @@ -262,9 +268,10 @@
'group' => '0',
'mode' => '0644',
'notify' => 'Exec[rabbitmq-systemd-reload]',
'content' => '[Service]
LimitNOFILE=-1
'
'content' => <<-EOS
[Service]
LimitNOFILE=-1
EOS
)
}
end
Expand All @@ -278,9 +285,10 @@
'group' => '0',
'mode' => '0644',
'notify' => 'Exec[rabbitmq-systemd-reload]',
'content' => '[Service]
LimitNOFILE=1234
'
'content' => <<-EOS
[Service]
LimitNOFILE=1234
EOS
)
}
end
Expand Down

0 comments on commit 542918b

Please sign in to comment.