Rony Xavier
041f64a87f
New 'be_in' matcher for matching against values in a list ( #2022 )
...
* New matcher 'be_in'
Fixes #2018
Signed-off-by: Rony Xavier <rx294@nyu.edu>
* small fixes to wording.
Signed-off-by: Aaron Lippold <lippold@gmail.com>
* Added code to use be_in for with the following use case:
describe nginx do
its(module_list) { should be_in AUTHORIZED_MODULE_LIST }
end
Fixes #2018
Signed-off-by: Rony Xavier <rx294@nyu.edu>
* Updates to the matcher
Fixes #2018
Signed-off-by: Rony Xavier <rx294@nyu.edu>
* Added tests for the be_in matcher
Signed-off-by: Rony Xavier <rx294@nyu.edu>
* Requested updates completed
Signed-off-by: Rony Xavier <rx294@nyu.edu>
2017-08-07 16:05:22 +02:00
Aaron Lippold
cc7ed38d09
kernel_module resource: added blacklisting, enabled, disabled, docs and unit tests ( #1798 )
...
* Fix up methods, add command mock, do string matching in ruby instead of command
Fixes #1643
Fixes #1673
Signed-off-by: Aaron Lippold <lippold@gmail.com>
2017-07-05 11:41:44 +02:00
Nolan Davidson
52cc27dd06
Adding toml resource ( #1924 )
...
* Adding toml resource
This adds a `toml` resource that inherits from the json resource and
behaves the same way as the JSON and YAML resources.
Signed-off-by: Nolan Davidson <ndavidson@chef.io>
2017-06-15 16:54:12 -04:00
Justin Schuhmann
a69cd1efee
Adds support for iis_app InSpec testing ( #1905 )
...
Signed-off-by: Justin Schuhmann <jmschu02@gmail.com>
2017-06-15 11:13:07 +02:00
Takaaki Furukawa
4f34e3eb83
Add support for virtualization resource ( #1803 )
...
* Add support for virtualization resource
Signed-off-by: Takaaki Furukawa <takaaki.frkw@gmail.com>
* Add some methods and documentation
Signed-off-by: Takaaki Furukawa <takaaki.frkw@gmail.com>
* Refactor collect_data_linux method
Signed-off-by: Takaaki Furukawa <takaaki.frkw@gmail.com>
* Remove unnecessary hash from virtualization resource and update examples
Signed-off-by: Takaaki Furukawa <takaaki.frkw@gmail.com>
2017-06-07 14:10:29 +02:00
Christoph Hartmann
218bda9c34
Docker resource ( #1566 )
...
* add docker, docker_container, and docker_image resources
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2017-04-24 10:47:03 -04:00
Tor Magnus Rakvåg
740b84a387
use userinfo hash instead of hard coding
...
Signed-off-by: Tor Magnus Rakvåg <tm@intility.no>
2017-04-21 09:44:14 +02:00
Tor Magnus Rakvåg
96bb596bc4
fetch user groups while building user object
...
Signed-off-by: Tor Magnus Rakvåg <tm@intility.no>
2017-04-20 16:02:21 +02:00
Christoph Hartmann
6f6f3985a6
fix #1131 circumvent bug in powershell where string are not properly handled
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2017-04-07 10:57:02 +02:00
Christoph Hartmann
90b985a7c1
fix #1268 and allows registry key resource with leading backslash
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2017-04-06 23:30:10 +02:00
Doc Walker
692e660140
Fix #1617 Add dh_params resource ( #1618 )
...
* Fix #1617 Add dh_params resource
Signed-off-by: Doc Walker <4-20ma@wvfans.net>
2017-04-04 10:34:09 -04:00
Adam Leff
68a930f141
Merge pull request #1406 from carldjohnston/apache_conf-symlinks
...
Allow apache_conf to include symlinked configuration files
2017-04-03 10:38:22 -04:00
Christoph Hartmann
a96059a3eb
x509 integration tests
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2017-03-22 11:44:33 +01:00
Carl Johnston
30b4152dd2
Add integration tests for symlinked apache configuration.
...
Remove httpd helper cookbook and write out simple configuration by hand.
Signed-off-by: Carl Johnston <carldjohnston@gmail.com>
2017-03-14 14:48:19 +11:00
Christoph Hartmann
7a0b0803bd
add fallback syntax for serverspec tests
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-12-15 16:16:17 +01:00
Jeremy J. Miller
6481f00454
cmp better support for version ops
...
Signed-off-by: Jeremy J. Miller <jm@chef.io>
2016-12-14 23:45:38 -05:00
username-is-already-taken2
20de35157c
Added integration tests
2016-11-20 20:07:59 +00:00
Christoph Hartmann
2c75a2c8db
Merge pull request #1280 from grimm26/apt
...
improved regex for matching deb sources
2016-11-09 11:19:13 -06:00
Mark Keisler
bd33aa7175
improved regex for matching deb sources
...
also added tests.
Signed-off-by: Mark Keisler <mark@mitsein.net>
2016-11-09 11:10:46 -06:00
Christoph Hartmann
7d7e1efef3
move file mount test to mount_spec.rb
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-11-03 22:23:50 +01:00
Christoph Hartmann
e78d682c24
activate file integration tests in docker
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-11-03 22:13:45 +01:00
Artem Sidorenko
9d766252f7
Contain matcher maps to include matcher with warning
...
to allow easier migration from serverspec, where contain
matcher is used often
Signed-off-by: Artem Sidorenko <artem@posteo.de>
2016-11-03 20:58:34 +01:00
Jeremy J. Miller
c4abbed2a6
adding integration test
...
Signed-off-by: Jeremy J. Miller <jm@chef.io>
2016-10-26 15:57:30 +02:00
Alex Pop
10116724fc
Missing registry keys should not exist
2016-10-05 14:55:04 +02:00
Christoph Hartmann
78a47aa43b
improve windows implementation
2016-09-09 09:31:38 +02:00
Christoph Hartmann
94100d98b0
full implementation for filtable for linux and mac
2016-09-09 09:31:37 +02:00
Christoph Hartmann
1bd55f8cc4
allow direct access to iis configuration parameters
2016-09-07 11:19:34 +02:00
Christoph Hartmann
c3c648eeb9
fix integration tests for usage with winrm v2
2016-09-05 13:36:48 +02:00
Christoph Hartmann
3ddcb4c418
fix integration tests for suse 11
2016-09-05 11:22:52 +02:00
Alex Pop
fd676ceb5c
promote cmp usage as it provides results with octal mode
2016-08-30 18:23:47 +01:00
Jeremy J. Miller
3822b8ea3a
one more test for good measure
2016-08-29 19:50:03 -04:00
Jeremy J. Miller
0d817017bb
changed regex for integer to allow 0
2016-08-29 19:39:39 -04:00
Jeremy J. Miller
53dbaa9c3e
add test
2016-08-29 15:57:46 -04:00
Christoph Hartmann
efb2e08a16
add tests for users with sid on windows
2016-08-26 09:40:24 +02:00
Christoph Hartmann
1989c25b2a
add integration test for package resource
2016-08-24 14:40:26 +02:00
Christoph Hartmann
a381e406c4
add integration tests for file permissions on windows
2016-08-23 16:03:58 +02:00
Chris Evett
3df98b7a19
add iis_site tests and refactor post code review
2016-08-17 06:57:48 -04:00
Christoph Hartmann
97a9e67181
update messages for integration tests
2016-08-12 14:51:23 +02:00
Christoph Hartmann
57bdd3464c
add feature to fetch children from registry key
2016-08-12 14:51:23 +02:00
Christoph Hartmann
571bc14742
support hash params as options for registry key
2016-08-12 14:51:23 +02:00
Christoph Hartmann
92d3702043
add integration test for windows file and directory
2016-08-10 21:41:32 +02:00
Christoph Hartmann
93a068b8fa
update kitchen container, activate all in travis
2016-08-05 10:52:03 +02:00
Steven Danna
57d7275857
Update inspec for os[:family] change in Train
...
Signed-off-by: Steven Danna <steve@chef.io>
2016-08-04 13:32:35 +01:00
Steven Danna
f76bc6b7b4
Be a bit louder when skipping an entire integration suite
2016-08-03 16:41:27 +01:00
Dominik Richter
68cf88f701
add suid sgid and sticky support for file resource
2016-07-10 23:08:42 +02:00
Christoph Hartmann
9bdb01f1d5
improve wmi resource
2016-06-19 23:40:45 +02:00
Christoph Hartmann
f87f25fb07
add boolean support for cmp matcher
2016-06-18 20:33:08 +02:00
Stephan Renatus
0a00d21113
integer?("0300") should not be true
2016-06-15 18:34:42 +02:00
Christoph Hartmann
ba95e461d3
run integration tests in docker
2016-05-16 18:25:17 +02:00
Christoph Hartmann
1f470971d2
Revert "Add all_match to matchers"
...
This reverts commit 29cf4522e4
.
2016-05-11 23:47:24 +02:00
Christoph Hartmann
48d8694789
Revert "fix contain_match, add none_match"
...
This reverts commit 54b397f3a5
.
2016-05-11 23:47:24 +02:00
Alex Pop
54b397f3a5
fix contain_match, add none_match
...
update matchers doc and add more integration tests
allow non-string data types and non-arrays
2016-05-11 12:47:36 +01:00
Victoria Jeffrey
29cf4522e4
Add all_match to matchers
2016-05-10 10:00:55 -04:00
Alex Pop
9ded3b8835
Provide service params as a mash, empty unless systemd for now
2016-05-09 14:54:09 +02:00
Alex Pop
f78afe0d75
Use only strings in resource examples, docs and tests
2016-05-03 23:27:18 +01:00
Alex Pop
56d856531b
support basename parameter and add tests
2016-04-29 13:40:32 -04:00
Alex Pop
34a22a290e
add more cmp matcher tests
2016-04-20 11:57:31 -04:00
Dominik Richter
5d58fa267b
feature: cmp < / > / <= / >= / == / != sth
matcher
2016-04-15 19:19:15 -04:00
Christoph Hartmann
a0529075d3
add integration tests
2016-03-26 22:49:32 +01:00
Christoph Hartmann
7e7196db77
add wmi integration tests
2016-03-20 11:53:56 +01:00
Christoph Hartmann
e8aa426846
add vbscript integration test
2016-03-19 19:04:31 +01:00
Christoph Hartmann
f50255486b
add support for addresses in port resource
2016-03-19 11:48:14 +01:00
Christoph Hartmann
32a065239c
update unit test, add integration test
2016-03-18 15:47:00 +01:00
Christoph Hartmann
1d043bfebc
move kitchen integration tests to top-level
2016-03-18 11:30:54 +01:00
Christoph Hartmann
8433b55fc4
do not install postgres on ubuntu 15.10
2016-03-18 11:30:54 +01:00
Christoph Hartmann
ea085ef7c0
place empty iso in tmp directory
2016-03-18 11:30:54 +01:00
Dominik Richter
2fc0994f4c
add cmp int->string tests
2016-02-23 22:31:10 +01:00
Dominik Richter
03bf732d82
add cmp for Arrays
2016-02-18 13:58:37 +01:00
Stephan Renatus
476bd750b0
restrict service integration tests on centos to >= 6
2016-02-17 12:55:09 +01:00
Stephan Renatus
d5a6d1000f
integration tests for sysv runlevels
2016-02-17 11:41:34 +01:00
Stephan Renatus
7815cefded
iptables: adapt integration tests
...
_Only_ CentOS 6 does not strip the quotes from comments.
2016-02-10 09:57:32 +01:00
Stephan Renatus
4ffc72bf93
iptables integration test: split according to platform
...
centos puts quotes where ubuntu drops them
2016-02-10 09:57:32 +01:00
Stephan Renatus
81f149fd14
iptables: add integration theses
2016-02-10 09:57:32 +01:00
Christoph Hartmann
03856d6941
add apache cookbook to integration tests
2016-02-09 17:35:33 +01:00
Stephan Renatus
4b6eced92a
auditd_rules: access by key, tests + documentation
2016-02-09 11:51:52 +01:00
Stephan Renatus
cd5f47ed33
auditd_rules: unit tests, meet the real world
2016-02-09 11:51:52 +01:00
Stephan Renatus
07fb5caa9b
resources/auditd_rules: add integration tests
2016-02-09 11:51:52 +01:00
Stephan Renatus
eecb295377
add tests for upstart on centos
...
...which are failing
2016-02-05 13:49:18 +01:00
Alex Pop
dd02d5985f
ec2 name tag instances for easier cleanup
2016-02-05 13:26:37 +01:00
Stephan Renatus
6fbd28c2bb
runit_service: fix resource, improve integration tests
...
Turns out using `/usr/bin/yes` to imitate a daemon process is a TERRIBLE idea.
2016-01-29 17:03:05 +01:00
Christoph Hartmann
52ed18f9d5
update ec2 kitchen yml
2016-01-29 13:20:39 +01:00
Christoph Hartmann
500ac1c41a
update integration tests
2016-01-28 18:30:39 +01:00
Stephan Renatus
56f22a1d2a
resource/postgres_session: add integration tests, change error handling
...
this makes it work (tested with default-ubuntu-1404), but doesn't
improve the error handling (i.e., the skip_resource doesn't really
prevent the failure)
2016-01-25 16:44:53 +01:00
Christoph Hartmann
b30720f926
Merge pull request #380 from chef/sr/service-override
...
add service overrides for picking specific service managers, add runit_service
2016-01-21 13:35:23 +01:00
Stephan Renatus
21224abd10
integration tests: stop using alpine iso
2016-01-21 10:39:03 +01:00
Stephan Renatus
f2f2db120d
fix runit_service tests, replace socat with a proper mock daemon
2016-01-21 09:53:59 +01:00
Stephan Renatus
492c7f8146
runit_service: cleanup; fix "non-running-runit-service" test + recipe
2016-01-21 09:05:29 +01:00
Stephan Renatus
a4e9a34c5d
add runit_service integration tests
2016-01-20 17:54:04 +01:00
Jeremy W. Chalfant
f9b5ba1505
account for AIX 7.2 etc.
2016-01-14 23:03:24 -05:00
Jeremy W. Chalfant
59d1849607
aix service tests
2016-01-14 23:03:23 -05:00
Jeremy W. Chalfant
aac258218c
more tests
2016-01-14 23:00:10 -05:00
Jeremy W. Chalfant
821e95db05
add aix test
2016-01-14 23:00:10 -05:00
Jeremy W. Chalfant
bc503f080d
rename etc_group to etc_group_spec and etc_group test success on AIX
2016-01-14 23:00:10 -05:00
Jeremy W. Chalfant
db43739951
AIX packages
2016-01-14 23:00:10 -05:00
Jeremy W. Chalfant
5f7dccc1b4
aix group tests
2016-01-14 23:00:09 -05:00
Jeremy W. Chalfant
26afecf857
add aix user support
2016-01-14 23:00:09 -05:00
Jeremy W. Chalfant
ec8ee25028
aix support for file tests was added to train
2016-01-14 23:00:09 -05:00
Dominik Richter
5c5ed106dd
dummy holder for ex2 creds in kitchen
2016-01-04 03:45:58 +01:00
Christoph Hartmann
b1d6906d16
update readme for aws integration tests
2016-01-04 03:45:58 +01:00
Christoph Hartmann
b24ed632a1
add yml, csv, json and ini to windows integration tests
2016-01-04 03:43:21 +01:00