Commit graph

9181 commits

Author SHA1 Message Date
Christoph Hartmann
8656e673ef Merge pull request #619 from chef/dr/only_if_control
Support only_if on controls
2016-04-06 11:27:49 +02:00
Dominik Richter
c55fb0b587 prevent only_ifs from getting overwritten 2016-04-06 10:46:36 +02:00
Dominik Richter
a72fee6623 add only_if for controls 2016-04-06 10:46:36 +02:00
Dominik Richter
c73afd4c1c overhault rule/control internals
instead of keeping them as flat variables, prefix all internals with `__` to create consistency. Also add accessors on the class-level to expose these values in all rules. This way we keep all variable-names in one location and get some safety on access.
2016-04-06 10:46:36 +02:00
Christoph Hartmann
bf8a09b864 Merge pull request #618 from chef/dr/only_if
don't remove controls with only_if
2016-04-06 10:45:51 +02:00
Dominik Richter
598e8be07f don't remove controls with only_if
instead mark them as skipped, but don't just remove them.

This also introduced a number of tests around only_if on the global level
2016-04-06 10:15:53 +02:00
Stephan Renatus
2d34c7ca75 Merge pull request #621 from chef/chris-rock/clean
remove unused profile.tar.gz
2016-04-06 10:13:21 +02:00
Christoph Hartmann
bb2814fbd2 remove unused profile.tar.gz 2016-04-06 09:54:42 +02:00
Christoph Hartmann
4ab190afa6 Merge pull request #610 from chef/ap/super_gordon
Extended gordon_config with more examples
2016-04-04 15:49:07 +02:00
Alex Pop
070c5bb0e9 update tests with 5 examples 2016-04-04 14:19:13 +01:00
Alex Pop
9e1c9862bd extended gordon_config with more examples 2016-04-04 14:03:26 +01:00
Dominik Richter
0cffb21b97 0.17.1 2016-03-31 20:06:02 +01:00
Dominik Richter
c2ca6a0ff2 Merge pull request #608 from chef/dr/objects
add inspec objects (not exposed by default)
2016-03-31 20:04:04 +01:00
Dominik Richter
8150a67e4a add inspec objects (not exposed by default) 2016-03-31 19:50:44 +01:00
Dominik Richter
d5bc997ce4 Merge pull request #604 from chef/0.17.0
0.17.0
2016-03-31 13:38:48 +01:00
Dominik Richter
f845a16442 0.17.0 2016-03-31 14:23:07 +02:00
Christoph Hartmann
6fba237848 Merge pull request #580 from mulesoft-ops/amazon-linux-support
Amazon linux support for service resource
2016-03-31 09:55:36 +01:00
Christoph Hartmann
2b2a9793a6 Merge pull request #603 from chef/dr/file-uid-gid
add file uid and gid accessors
2016-03-31 09:52:35 +01:00
Dominik Richter
419b6a087c add file uid and gid accessors 2016-03-31 02:23:30 +02:00
Dominik Richter
d086102c79 Merge pull request #602 from chef/dr/passwd-filter
add advanced passwd filters (experimental)
2016-03-31 01:23:10 +01:00
Dominik Richter
2cad553de8 add advanced passwd filters (experimental) 2016-03-31 02:03:20 +02:00
Joshua Bussdieker
7a185f02dc Amazon linux support for service resource 2016-03-29 08:32:50 -07:00
Christoph Hartmann
ef9a4ed966 Merge pull request #537 from JTabel/fix-compliance-api-calls
Fixed API calls for inspec compliance
2016-03-29 15:59:04 +02:00
Julian Tabel
bd594f3608 added apipath cli option to inspec compliance with default to /api 2016-03-29 10:49:48 +02:00
Dominik Richter
f6578baf26 Merge pull request #594 from chef/chris-rock/fix-docs-update
fix errors introduced in #593
2016-03-28 01:21:23 +02:00
Christoph Hartmann
bc3be2f302 fix functional tests 2016-03-28 01:15:48 +02:00
Christoph Hartmann
7112ebbfec fix errors introduced in #593 2016-03-28 00:48:15 +02:00
Christoph Hartmann
ceb7286175 Merge pull request #593 from aaronlippold/al/documentation-updates
Updated documentation and examples to include tags and references
2016-03-28 00:44:07 +02:00
Aaron Lippold
e846385866 Updated documentation and examples to include tags and references 2016-03-27 12:40:34 -04:00
Dominik Richter
1c60908bcf Merge pull request #592 from chef/chris-rock/strip
Ease removal of whitespace for Powershell Write-Output and VBScript Echo
2016-03-26 23:20:27 +01:00
Christoph Hartmann
a0529075d3 add integration tests 2016-03-26 22:49:32 +01:00
Christoph Hartmann
ca0506b6a3 eases the removal of leading and trailing whitespace for powershell and vbscript 2016-03-26 22:25:53 +01:00
Dominik Richter
13e9a18946 Merge pull request #591 from chef/0.16.4
0.16.4
2016-03-25 14:50:26 +01:00
Dominik Richter
41fb327e20 0.16.4 2016-03-25 14:25:44 +01:00
Dominik Richter
5f905a6732 Merge pull request #589 from chef/dr/fun-tests
support --controls for inspec json
2016-03-25 03:04:47 +01:00
Dominik Richter
ee170cc526 support --controls for json 2016-03-25 01:58:59 +01:00
Dominik Richter
17840e0299 split up functional tests 2016-03-25 01:32:03 +01:00
Dominik Richter
1a9ce9b941 Merge pull request #561 from chef/chris-rock/tags-docs
document tags and refs
2016-03-25 01:31:44 +01:00
Christoph Hartmann
f4180780d1 document tags and refs 2016-03-25 00:58:27 +01:00
Dominik Richter
0db3a389aa Merge pull request #574 from chef/sr/fix-url-encode-profiles
inspec-compliance: url_encode profile names
2016-03-25 00:08:42 +01:00
Stephan Renatus
be93f25e6e inspec-compliance: url_encode profile names 2016-03-24 23:47:41 +01:00
Dominik Richter
62cadd0aab Merge pull request #588 from chef/dr/connection-errors
dont fail with stacktrace on connection errors
2016-03-24 23:46:44 +01:00
Dominik Richter
856460054f dont fail with stacktrace on connection errors 2016-03-24 23:24:58 +01:00
Dominik Richter
ed9ad28afb Merge pull request #583 from chef/ap/long-live-gordon
Improvements to gordon example and docs
2016-03-24 22:20:57 +01:00
Alex Pop
53c7683ff7 update tests based on resource changes 2016-03-24 21:50:51 +01:00
Alex Pop
825702014c update gordon with a bit of ruby and update README 2016-03-24 21:50:47 +01:00
Alex Pop
1dce2037b3 use unix family for wider compatibility 2016-03-24 19:50:52 +00:00
Dominik Richter
e7a2d9b763 Merge pull request #582 from chef/ap/fix-inspec-shell-missing-resources
bugfix: fix rare inspec shell missing all resources
2016-03-24 20:46:15 +01:00
Alex Pop
3c3d711dfd bugfix: fix rare inspec shell missing all resources
In some instances, when running inspec shell, you dont get any resources inside of it. i.e. `inspec shell` and then `os` will lead to

```ruby
NameError: undefined local variable or method `os' for
from (pry):1:in `add_content'
```

This is because of instance_eval loading withing the given source/line
information and not attaching to the profile context which actually has
all the resources. Fix it by making sure that inspec shell always
attaches to the profile context with resources by providing nil for
source and line information.
2016-03-24 20:37:46 +01:00
Dominik Richter
0624227004 Merge pull request #575 from chef/sr/0.16.3
0.16.3
2016-03-23 16:56:56 +01:00