19 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
Sous Chefs Bot
fedcb94f91
Automated PR: Cookstyle Changes (#174)
* Cookstyle 7.26.1 Fixes

Issues found and resolved with: test/integration/helpers/serverspec/spec_helper.rb

 - 9:21 convention: Style/FileRead - Use File.read. https://rubystyle.guidefile-read

Signed-off-by: kitchen-porter <board@sous-chefs.org>

* Update CHANGELOG.md

* Use correct path for systemd on OpenSUSE

Signed-off-by: Lance Albertson <lance@osuosl.org>

Co-authored-by: Jason Field <Jason@avon-lea.co.uk>
Co-authored-by: Lance Albertson <lance@osuosl.org>
2022-01-07 17:46:17 -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
Bram Gillemon
7df2c36125 add testing 2017-07-28 13:35:04 +02:00
Tim Smith
6d9defeba5 Update copyrights
Signed-off-by: Tim Smith <tsmith@chef.io>
2017-04-05 22:23:03 -07:00
Tim Smith
2ffa7386b8 Update copyright headers
Signed-off-by: Tim Smith <tsmith@chef.io>
2016-11-25 11:41:14 -08:00
Tim Smith
87f7c652fe
Update tests for new config comment blocks
Signed-off-by: Tim Smith <tsmith@chef.io>
2016-09-09 00:13:56 -07:00
Tim Smith
861b7a2a5d Cookstyle cleanups
Signed-off-by: Tim Smith <tsmith@chef.io>
2016-09-08 10:13:47 -07:00
Tim Smith
4d071581fa Remove encoding
There's no need for this

Signed-off-by: Tim Smith <tsmith@chef.io>
2016-09-08 10:12:47 -07:00
Tim Smith
dde7bba9c1 Update copyrights
Signed-off-by: Tim Smith <tsmith@chef.io>
2016-09-07 21:55:46 -07:00
Tim Smith
770e65103f Rubocop fixes 2015-09-24 15:07:56 -07:00
Thom May
aebec52404 Fix up OmniOS tests 2015-06-23 14:50:15 +01:00
Thom May
d696316f71 fix up state of testing 2015-06-23 12:22:33 +01:00
Thom May
ea6441eb57 Upgrade to latest serverspec/specinfra 2015-06-23 11:30:55 +01:00
Sean OMeara
aa1f845864 opscode2chef 2015-02-18 15:49:35 -05:00
Patrick Moore
0a42b0722b [COOK-4619] - no way to unset recipient_delimiter
Signed-off-by: Sean OMeara <someara@opscode.com>
2014-05-09 13:51:12 -04:00
Mick Brooks
67a294f223 [COOK-4329] Migrate minitest PITs to latest test-kitchen + serverspec
Signed-off-by: Sean OMeara <someara@opscode.com>
2014-02-27 23:35:20 -05:00