Commit graph

2177 commits

Author SHA1 Message Date
Dominik Richter
b14495051a prevent duplicate profile-loading
this happens when the profile is run (exec) and also interpreted (via profile.params). It will load 2 profile context calls (both via Runner) which in turn gets 2 rounds of interpreter+runner executions. This is an issue with auto-generated IDs, due to their random component, which changes in this case
2016-05-06 13:14:40 +02:00
Dominik Richter
20d08a63b5 inspec --format [json|fulljson|rspecjson] overhaul
Full rewrite of all formatters. Create a minimal JSON, a full JSON, and a fallback RSpec formatter. The latter is only needed for corner cases and should not really be used. The former 2 are for (1) running `inspec json` followed by `inspec exec` (`--format json`) and (2) running just `inspec exec --format fulljson`.
2016-05-06 13:14:40 +02:00
Dominik Richter
a809097d12 simplify full_id generation 2016-05-06 13:14:40 +02:00
Dominik Richter
8ba859fe92 remove legacy global DSL code 2016-05-06 13:14:40 +02:00
Dominik Richter
4d28fd8f31 remove inspec [exec|json|...] --id flag 2016-05-06 13:14:40 +02:00
Christoph Hartmann
29e6523e66 Merge pull request #714 from chef/dr/expose-ortest
export #tests() from OrTest object
2016-05-06 09:23:35 +02:00
Dominik Richter
b9543241eb export #tests() from OrTest object
make these inner tests accessible
2016-05-06 02:10:33 +02:00
Christoph Hartmann
f4ed2850b3 Merge pull request #699 from chef/dr/passwd
use filtertable with passwd resource
2016-05-04 15:43:00 +02:00
Dominik Richter
67fccc1246 expose deprecated fields in passwd 2016-05-04 15:27:58 +02:00
Dominik Richter
fc718267c4 extend filter table to handle soft variable lookup 2016-05-04 15:27:58 +02:00
Dominik Richter
fb91b788a6 use filtertable with passwd resource 2016-05-04 15:27:58 +02:00
Dominik Richter
d2518c95dd Merge pull request #708 from chef/ap/string-examples
Use only strings in resource examples, docs and tests
2016-05-03 23:42:27 +01:00
Alex Pop
f78afe0d75 Use only strings in resource examples, docs and tests 2016-05-03 23:27:18 +01:00
Dominik Richter
c5afdf46ce Merge pull request #707 from chef/vj/sym-to-string
use strings instead of symbols
2016-05-03 22:52:16 +01:00
Victoria Jeffrey
33e35a1e94 use strings instead of symbols 2016-05-03 15:39:34 -04:00
Christoph Hartmann
80d27cfa46 Merge pull request #706 from Anirudh-Gupta/hpux
hpux support for basic port properties
2016-05-03 18:32:35 +02:00
Anirudh Gupta
738ef69bcf prefixed hpux to cmd file name 2016-05-03 21:38:39 +05:30
Anirudh Gupta
d839f218bf hpux support for basic port properties 2016-05-03 14:30:59 +05:30
Dominik Richter
f61c9d030e Merge pull request #705 from chef/dr/train-errors
bugfix: handle train errors in inspec execution
2016-05-03 06:47:28 +02:00
Dominik Richter
f30b6fb6f5 bugfix: handle train errors in inspec execution 2016-05-02 08:34:45 -04:00
Christoph Hartmann
0fb88e2647 Merge pull request #702 from chef/0.20.1
0.20.1
2016-04-30 14:11:37 +02:00
Alex Pop
e24772e4b7 releasing 0.20.1 2016-04-30 02:02:29 +01:00
Dominik Richter
7a8f6c13f6 Merge pull request #700 from chef/dr/appveyor
fix appveyor caching
2016-04-30 01:33:08 +02:00
Dominik Richter
7ed8a508a5 fix appveyor config 2016-04-29 19:23:46 -04:00
Dominik Richter
e681040d34 Merge pull request #701 from chef/ap/file-basename
Add basename parameter and add tests
2016-04-30 00:32:36 +02:00
Alex Pop
56d856531b support basename parameter and add tests 2016-04-29 13:40:32 -04:00
Alex Pop
3d4b07f534 Merge pull request #698 from chef/0.20.0
0.20.0
2016-04-29 15:54:46 +01:00
Dominik Richter
6b5b592c03 0.20.0 2016-04-29 09:13:10 -04:00
Christoph Hartmann
426922c88a Merge pull request #697 from chef/dr/appveyor-caching
update appveyor ruby to 2.2 + fix caching
2016-04-29 08:45:43 +02:00
Dominik Richter
279af1aa14 update appveyor ruby to 2.2 + fix caching 2016-04-28 21:04:49 -04:00
Dominik Richter
ab9a82ccfa Merge pull request #688 from chef/dr/fail-on-missing-backend
validate target backend
2016-04-29 03:04:19 +02:00
Dominik Richter
8ee6a14bc5 validate target backend 2016-04-28 20:44:36 -04:00
Dominik Richter
86b79035b8 Merge pull request #694 from chef/ap/symlinks-refactor2
update to train's new file interface: symlink + uid + gid
2016-04-29 02:26:03 +02:00
Dominik Richter
83b4dfbf4d use the source_path instead of path for file internal reporting 2016-04-28 20:11:21 -04:00
Dominik Richter
3e8974d243 update to new train interface 2016-04-28 19:55:34 -04:00
Alex Pop
3ab53e940d make file resource follow links and provide method to get to the original link object 2016-04-28 19:55:34 -04:00
Dominik Richter
dd7ba570f3 Merge pull request #695 from chef/chris-rock/compliance
update compliance plugin
2016-04-29 01:42:48 +02:00
Christoph Hartmann
46f38b51d0 add integration tests for compliance plugin 2016-04-29 01:12:53 +02:00
Christoph Hartmann
8678ab6625 fix compliance plugin 2016-04-29 00:39:25 +02:00
Christoph Hartmann
95de29cd83 Merge pull request #684 from chef/dr/where
`where { field op value }` for filter table
2016-04-28 23:53:40 +02:00
Dominik Richter
6f612dc948 WIP add block support to where conditionals (1) passwd.users { != 2 } (2) add tests 2016-04-28 23:10:52 +02:00
Christoph Hartmann
c0dc10e06a Merge pull request #681 from chef/dr/altfilter
Add table-style filter utility
2016-04-28 23:08:05 +02:00
Dominik Richter
0c8e891ee1 add #entries to filter table + remodel configuration 2016-04-28 22:46:39 +02:00
Dominik Richter
048a1584b9 encapsulated filters 2016-04-28 22:46:39 +02:00
Dominik Richter
652f10ad9a use Inspec::Filter in xinetd resource 2016-04-28 22:46:39 +02:00
Dominik Richter
d86161c616 add general filter utility for resources 2016-04-28 22:46:39 +02:00
Christoph Hartmann
8fec08e6d7 Merge pull request #683 from chef/dr/cmd
add `shell -c` for executing calls against the inspec api
2016-04-27 06:56:49 -07:00
Dominik Richter
01caf05020 add cmd for executing calls against the inspec api 2016-04-27 06:31:01 -07:00
Christoph Hartmann
ab9f5f9c1a Merge pull request #682 from Anirudh-Gupta/hpux
Hpux
2016-04-27 06:29:05 -07:00
Anirudh Gupta
045d8c6572 added file permission by user check for hp-ux 2016-04-26 15:08:01 +05:30