Commit graph

2412 commits

Author SHA1 Message Date
Alex Pop
9f156bb36b update file resource example to use cmd matcher for better failure output in octal 2016-04-20 11:57:34 -04:00
Alex Pop
7a3b4736b8 fix the shadow password example now that cmp can handle arrays 2016-04-20 11:57:34 -04:00
Alex Pop
34a22a290e add more cmp matcher tests 2016-04-20 11:57:31 -04:00
Alex Pop
b38e71b6f2 allow integers to be cmp regexed 2016-04-20 11:57:31 -04:00
Dominik Richter
9b199c9223 add regexp to cmp matcher
i.e. `123 should { cmp /2+/ }`
2016-04-20 11:57:31 -04:00
Stephan Renatus
bc8cebde73 Merge pull request #668 from chef/dr/format-cmp
bugfix: fix formatting of cmp expectations
2016-04-20 10:55:16 +02:00
Dominik Richter
07f17a3f8d bugfix: fix formatting of cmp expectations
E.g. for regex it will print a very cryptic `(?-mix:123)` for `/123/` instead of the pure regex
2016-04-20 02:11:00 -04:00
Dominik Richter
f6bbec6138 Merge pull request #662 from chef/dr/shells
remodel bash and shell wrappers
2016-04-20 02:02:33 -04:00
Dominik Richter
9da23f9cbc remodel bash and shell wrappers 2016-04-18 11:48:42 -04:00
Stephan Renatus
703e77563b Merge pull request #663 from chef/dr/travis-push
release via travis + test via rubygems
2016-04-18 17:06:47 +02:00
Dominik Richter
890ce1921f release via travis + test via rubygems 2016-04-18 10:46:12 -04:00
Alex Pop
a19944009e Merge pull request #661 from chef/sr/0.19.1
version bump: 0.19.1
2016-04-18 11:04:54 +01:00
Stephan Renatus
d297b3dc6f travis/Gemfile: use train from github 2016-04-18 11:53:30 +02:00
Stephan Renatus
f7272f746c 0.19.1 2016-04-18 11:39:52 +02:00
Alex Pop
3ef64af166 Merge pull request #659 from chef/dr/command-shells
configure command execution shells to sh/bash/zsh
2016-04-18 10:00:20 +01:00
Dominik Richter
0631779412 configure command execution shells to sh/bash/zsh 2016-04-18 01:09:37 -04:00
Christoph Hartmann
a40c6735ec Merge pull request #657 from chef/dr/filter-each
be descriptive on shadow.entries
2016-04-17 23:37:39 -04:00
Dominik Richter
fa6143d6d4 be descriptive on shadow.entries
When used in combination: `shadow[.filter(...)].entries.each { |entry| ... }`, these entries would not  be very descriptive at all. You would basically only retrieve the full filter chain e.g. 20 times, without any information about what entry you are currently looking at. This fixes it, by providing the entry identified by the user name
2016-04-17 19:12:14 -04:00
Christoph Hartmann
ea5a96fc8a Merge pull request #656 from chef/dr/cmp-info
bugfix: print cmp expectations
2016-04-17 18:57:34 -04:00
Dominik Richter
0cb03e8726 bugfix: print cmp expectations 2016-04-17 18:50:21 -04:00
Dominik Richter
5487457984 Merge pull request #655 from chef/dr/readme-requirements
add requirements for gem installation to readme
2016-04-17 18:10:45 -04:00
Dominik Richter
091d1ec02d add requirements for gem installation to readme
Fixes https://github.com/chef/inspec/issues/641
Fixes https://github.com/chef/inspec/issues/653
2016-04-17 18:02:55 -04:00
Dominik Richter
53f855e681 0.19.0 2016-04-17 14:19:37 -04:00
Dominik Richter
27788ba712 Merge pull request #652 from chef/resource-grub_conf
Resource grub conf
2016-04-17 11:13:44 -04:00
Dominik Richter
8da3157098 add grub_conf to docs 2016-04-17 10:57:31 -04:00
Thomas Cate
e6d98968c9 first pass at working legacy-grub/grub2 config 2016-04-17 10:46:35 -04:00
Thomas Cate
0f8aff0b91 added default and per kernel checking 2016-04-17 10:46:35 -04:00
Thomas Cate
3051ead64d added tests for grub_conf resource 2016-04-17 10:46:29 -04:00
Thomas Cate
19333f0ece handle unsupported OSs 2016-04-17 10:46:29 -04:00
Thomas Cate
1b1690a3e3 improve examples 2016-04-17 10:46:29 -04:00
Thomas Cate
3559ba4aeb convert single entry arrays to strings 2016-04-17 10:46:24 -04:00
Thomas Cate
fc811518e8 remove troubleshooting output 2016-04-17 10:45:22 -04:00
Thomas Cate
96536db318 first pass at a grub_config resource 2016-04-17 10:45:22 -04:00
Christoph Hartmann
1f51856386 Merge pull request #651 from chef/dr/supports-exits
fail on unsupported os/platform
2016-04-17 00:22:48 -04:00
Dominik Richter
2a0ccbfd76 fail on unsupported os/platform 2016-04-17 00:04:37 -04:00
Christoph Hartmann
8071fe4a66 Merge pull request #650 from chef/dr/rspec-world
bugfix: rspec world handling on rspec 3.5
2016-04-17 00:03:41 -04:00
Dominik Richter
ebd094fbb0 bugfix: rspec world handling on rspec 3.5
This accessor is designed to work with rspec 3.0 - 3.5 (and potentially up).
2016-04-16 20:33:01 -04:00
Dominik Richter
9c63a8300e Merge pull request #647 from chef/chris-rock/fix-docs-json
update documentation for json resource
2016-04-16 20:31:04 -04:00
Christoph Hartmann
27357c8630 update documentation for json resource 2016-04-16 20:16:32 -04:00
Dominik Richter
dfdae3474d Merge pull request #649 from chef/chris-rock/explain-inspec-docker
add usage instructions for inspec container
2016-04-16 20:14:33 -04:00
Christoph Hartmann
971725dd68 add usage instructions for inspec container 2016-04-16 20:07:33 -04:00
Christoph Hartmann
b9b3428e63 Merge pull request #648 from chef/dr/supports_inspec
specify required inspec version in inspec.yml
2016-04-16 19:14:57 -04:00
Dominik Richter
f54195408f simplify key symbolization in metadata 2016-04-16 18:47:59 -04:00
Dominik Richter
14995534cd skip profiles if the platform isnt supported 2016-04-16 15:34:23 -04:00
Dominik Richter
a1188b26ce add supports_runtime? to metadata 2016-04-16 15:25:59 -04:00
Dominik Richter
1faf6d6370 Merge pull request #643 from chef/dr/cmp-op
feature: `cmp < / > / <= / >= / == / != sth` matcher
2016-04-15 22:33:01 -04:00
Dominik Richter
5d58fa267b feature: cmp < / > / <= / >= / == / != sth matcher 2016-04-15 19:19:15 -04:00
Dominik Richter
c68edb5857 Merge pull request #639 from chef/ap/no-its-to_i
Prevent its(:to_i) from generated tests
2016-04-15 01:11:04 -04:00
Alex Pop
dec217a8ce prevent its(:to_i) from generated tests 2016-04-15 01:03:39 -04:00
Christoph Hartmann
aede111f93 Merge pull request #638 from spuranam/suse-service
Add support for suse 11 to service resource
2016-04-15 00:41:46 -04:00