35 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
Lance Albertson
72ad232d03 Enable IPv6 for lo for the canonical suite
This is needed to ensure it converges correctly.

Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-10-19 12:34:12 -07: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
3ea284d576 Merge branch 'master' of git://github.com/voroniys/postfix into voroniys-master 2017-01-17 23:50:55 -08:00
Tim Smith
82aec2f311 Fix wrapper cookbook in the specs completely failing
It’s still broken, but now it actually tests

Signed-off-by: Tim Smith <tsmith@chef.io>
2017-01-17 23:32:22 -08: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
2a76f18fba Remove carriage returns
Signed-off-by: Tim Smith <tsmith@chef.io>
2016-09-08 10:13:11 -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
648c488172 Testing updates
Signed-off-by: Tim Smith <tsmith@chef.io>
2016-09-07 21:55:32 -07:00
Tim Smith
35adb30264
Update wrapper test 2016-04-29 21:22:18 -07:00
Stanislav Voroniy
89a411f828 fix test for travis 2015-12-22 13:24:56 +01:00
Stanislav Voroniy
65df142b24 Merge branch 'master' of git://github.com/chef-cookbooks/postfix into chef-cookbooks-master 2015-12-22 13:09:40 +01:00
Tim Smith
6c612a50a4 Fix test cookbook 2015-10-23 16:48:52 -07:00
Tim Smith
122762ee3c Exclude test 2015-09-24 15:10:10 -07:00
Tim Smith
770e65103f Rubocop fixes 2015-09-24 15:07:56 -07:00
Stanislav Voroniy
c9613ac670 Fixes for Travis CI 2015-09-11 14:56:12 +02:00
Matthieu Vachon
3445567364 Using node.default_unless instead of node.default in _attributes
* Wrapper cookbook usually uses default level to override attributes
   of the wrapped cookbook. Here, we had a problem because if the
   wrapper cookbook was enabling sasl and was setting a relayhost
   and a user/password combination using the default level, this was
   not working because _attributes resets those attributes.

   To fix this, we now use node.default_unless which will set the
   attribute only if it's not already set ensuring that wrapper
   cookbook overriden attributes using default level are correctly
   kept when computing derived attributes.
2015-08-27 17:17:30 -04: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
Joshua Timberman
14612d63fd COOK-4086, add omnios support
Signed-off-by: Sean OMeara <someara@opscode.com>
2014-02-19 01:13:02 -05:00
jtimberman
f39f037128 update test kitchen support for v1.0 2013-05-16 11:41:39 -06:00
jtimberman
d2f29085a3 [COOK-1792] - add minitest-chef tests
* Create minitest-chef tests
* Also use better style (don't specify action if its the default, use
  5 digit modes, update notification syntax)
2012-10-20 20:41:00 -06:00
jtimberman
c37ed18cea add test kitchen support 2012-08-28 17:13:47 -06:00