4 Commits

Author SHA1 Message Date
Lance Albertson
1cd55ab40d
Correctly fix aliases quoting logic (#206)
We were previously incorrectly adding double quotes for the alias values.
According to the man page it's not required. However, there is a requirement if
its a command being pipe.

In addition, the man page mentions this for the alias name:

  The  name  is  a  local  address (no domain part).  Use double quotes when the
  name contains any special characters such as whitespace, `#', `:', or `@'. The
  name is folded to lowercase, in order to make database lookups case
  insensitive.

This includes logic to support this automatically.

- Add new tests for aliases testing all types
- Convert all serverspec tests to inspec
- Add Github actions
- Update platforms to test

Signed-off-by: Lance Albertson <lance@osuosl.org>
2025-01-29 14:51:57 -08:00
Cookstyle Bot
04439af12e Cookstyle Bot Auto Corrections with Cookstyle 6.18.8
This change is automatically generated by the Cookstyle Bot using the latest version of Cookstyle (6.18.8). Adopting changes suggested by Cookstyle improves cookbook readability, avoids common coding mistakes, and eases upgrades to newer versions of the Chef Infra Client.

### Style/Encoding
  - **/recipes/maps.rb:1**: Unnecessary utf-8 encoding comment.
  - **/test/integration/sasl_auth_multiple/serverspec/sasl_auth_multiple_spec.rb:1**: Unnecessary utf-8 encoding comment.
  - **/test/integration/sasl_auth_one/serverspec/sasl_auth_one_spec.rb:1**: Unnecessary utf-8 encoding comment.

Signed-off-by: Cookstyle <cookbooks@chef.io>
2020-09-17 12:26:32 -07:00
Tim Smith
632191521e Update copyrights
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-11-10 18:11:24 -08:00
Felix Wong
1bb847e735
support multiple sasl_passwd entries
with tests

Signed-off-by: Felix Wong <gnowxilef@gmail.com>
2017-11-15 11:44:04 -08:00