Victoria Jeffrey
d8b512ec8c
refactor headers retrieval into get_headers method
...
Signed-off-by: Victoria Jeffrey <vjeffrey@chef.io>
2016-11-30 18:10:33 +01:00
Victoria Jeffrey
60009b292b
address comments
...
Signed-off-by: Victoria Jeffrey <vjeffrey@chef.io>
2016-11-30 13:27:50 +01:00
Victoria Jeffrey
bdf5eae15e
Extend inspec compliance cli to support automate backend
...
Signed-off-by: Victoria Jeffrey <vjeffrey@chef.io>
2016-11-30 13:27:50 +01:00
Christoph Hartmann
d07e597f68
Merge pull request #1336 from burtlo/burtlo/add_junit_help
...
Adds junit to the inspec help exec
2016-11-30 10:14:17 +01:00
Christoph Hartmann
8346d2acfd
Merge pull request #1333 from Wing924/fix_regexp_in_processes
...
fix bug: RegExp in processes resource can't match long-run process #1332
2016-11-30 10:13:38 +01:00
Franklin Webber
9d30628213
Adds junit to the inspec help exec
...
While rebasing the branch where I was working on the cli formatter I
noticed the addition of junit. However, it was not in the help.
Signed-off-by: Franklin Webber <franklin@chef.io>
2016-11-30 01:17:44 -06:00
Alex Pop
4c60a69eae
Provide inspec.lock for archives as well
...
Signed-off-by: Alex Pop <apop@chef.io>
2016-11-29 23:59:39 +01:00
Christoph Hartmann
5bfc9745e3
move default cache creation to profile implementation
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-11-29 14:28:03 +01:00
Alex Pop
b01440b7c8
pass default cache path to for_target, enable log change
...
Signed-off-by: Alex Pop <apop@chef.io>
2016-11-29 12:35:56 +01:00
Juan Carlos Castillo Cano
58ef61f1f4
Show process name during inspec output
...
Signed-off-by: Juan Carlos Castillo Cano <jccastillocano@gmail.com>
2016-11-29 11:00:43 +00:00
Wei, He
861856fbd9
fix bug: RegExp in processes resource can't match long-run process #1332
...
Signed-off-by: Wei, He <weihe924stephen@gmail.com>
2016-11-29 17:01:03 +09:00
Victoria Jeffrey
2e2502777c
move methods around, separate into sections
...
Signed-off-by: Victoria Jeffrey <vjeffrey@chef.io>
2016-11-28 15:42:26 +01:00
Victoria Jeffrey
e4efbf6efe
remove some unnecessary vars; comment methods
2016-11-28 15:42:26 +01:00
Christoph Hartmann
b0ed0806bb
1.6.0
2016-11-28 12:45:21 +01:00
Christoph Hartmann
9db1e6958c
do not load controls from test directory
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-11-25 15:51:31 -07:00
Christoph Hartmann
a990d20fcd
Merge pull request #1306 from username-is-already-taken2/digitalgaz/windows_task
...
Adding windows_task resource
2016-11-25 11:46:42 -07:00
Christoph Hartmann
ded7d4c3c4
Merge pull request #1304 from jkerry/AddJUnitFormatterSupport
...
Adding JUnit formatter support
2016-11-25 11:33:45 -07:00
hannah-radish
91fe22f044
Replaced Colors for output
...
Signed-off-by: hannah-radish <hannah@radish-life.com>
2016-11-23 20:19:18 -07:00
Dominik Richter
b86f8cdeba
Merge pull request #1308 from jerryaldrichiii/fix-extra-quote-typo
...
Remove extra `'` in registry key examples
2016-11-23 20:15:18 -07:00
hannah-radish
ebb3bc729a
Introduce new (awesome) CLI icons for results
...
Signed-off-by: Hannah Maddy hannah@radish-life.com
2016-11-23 20:06:17 -07:00
Victoria Jeffrey
444d5ea1bc
revert style changes temporarily
...
Signed-off-by: Victoria Jeffrey <vjeffrey@chef.io>
2016-11-23 10:58:28 -05:00
hannah-radish
1338c39e1c
Fixing what I broke
...
Declared var for labels when logic was not in place
2016-11-22 20:26:02 -08:00
hannah-radish
ff165834a5
Updated color palettes, label colors and icons
...
Added color palettes for helper, input, command and automate text.
2016-11-22 15:55:02 -08:00
jkerry
e5830c2c56
Adding my name to the authors on the rspec formatter file
...
Signed-off-by: jkerry <john@kerryhouse.net>
2016-11-22 15:06:19 -05:00
Jerry Aldrich III
66a47ce8b9
Remove extra '
in registry key examples
...
Signed-off-by: Jerry Aldrich III <jerry@chef.io>
2016-11-21 10:18:01 -06:00
Christoph Hartmann
c7e15f7fad
1.5.0
2016-11-20 21:39:11 -07:00
username-is-already-taken2
f4410c3fa6
Fixing errors reported in Travis
...
Signed-off-by: username-is-already-taken2 <digitalgaz@hotmail.com>
2016-11-20 20:32:48 +00:00
username-is-already-taken2
b6b4525379
Amended method after unit testing
2016-11-20 20:07:59 +00:00
username-is-already-taken2
269890ad3b
Added windows_task to runtime
2016-11-20 20:07:59 +00:00
username-is-already-taken2
9b818aff5d
Added windows_task resource
...
Signed-off-by: username-is-already-taken2 <digitalgaz@hotmail.com>
2016-11-20 20:07:59 +00:00
Christoph Hartmann
e3347f0ef0
ensure metadata release entry is a string, even if yml thinks it is a float
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-11-20 12:38:27 -07:00
jkerry
e5038e1e5d
adding a shell extension class of the rspec_junit_formatter gem formatter and including it in the formatters list with key 'junit'
...
Signed-off-by: jkerry <john@kerryhouse.net>
2016-11-20 00:18:34 -05:00
Robb Kidd
ae474b894e
update supermarket profile search to use new type param
...
Reverts the work-around that pulls down the latest 100 tools
and filters for type == 'compliance_profile' in the client.
Go back to using tool-search with the new type parameter.
Omit start:0 because that's the default.
Keep the number of items returned at 100, which is more than the
default 10.
Signed-off-by: Robb Kidd <robb@thekidds.org>
2016-11-12 15:45:19 -05:00
Christoph Hartmann
793f842e33
copy vendored dependencies into cache
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-11-09 11:49:51 -06:00
Christoph Hartmann
bf8ec8348d
Merge pull request #1290 from chef/chris-rock/fix-double-log
...
fix double-log-level
2016-11-09 11:36:11 -06: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
1a01eac776
fix double-log-level
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-11-09 10:05:38 -06:00
Dominik Richter
caf6df4fd8
Merge pull request #1285 from chef/chris-rock/vendor-cli
...
improve vendor command
2016-11-09 10:38:06 -05:00
Christoph Hartmann
3bdf1952b4
improve inspec vendor cli to vendor dependent profile in vendor directory
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-11-09 09:12:01 -06:00
Jerry Aldrich III
cafa35e5ce
Change Inpsec
to Inspec
...
Signed-off-by: Jerry Aldrich III <jerry@chef.io>
2016-11-08 11:20:32 -06:00
Christoph Hartmann
542da4f7fb
1.4.1
2016-11-04 18:20:36 +01:00
Christoph Hartmann
4668403519
pass attributes to dependent profiles
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-11-04 18:01:28 +01:00
Christoph Hartmann
7694a1a3a3
use symbol for attribute accessors
2016-11-04 16:03:21 +01:00
Christoph Hartmann
0cdd2a1611
1.4.0
2016-11-04 10:33:38 +01:00
Christoph Hartmann
64ce762d6d
Merge pull request #1276 from artem-sidorenko/include-matcher
...
Contain matcher maps to include matcher with warning
2016-11-03 22:07:23 +01:00
Christoph Hartmann
6a1ed49bd6
Merge pull request #1274 from hj70ft/hj70ft/windowsservice-enabledcheck-fix
...
Windows Service Check for service enabled state.
2016-11-03 21:59:06 +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
Douglas
5e56bd4635
Updated Windows Service check for Enabled state to allow both Auto and
...
Manual to be considered valid states for a service to be enabled.
Signed-off-by: Douglas <bdougl6@ms.ds.uhc.com>
2016-11-03 11:28:38 -05:00
Christoph Hartmann
0eb9de0089
fix file permission check by mask
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-11-03 12:46:48 +01:00
Jere Julian
f8a9eab443
Change path to opts
...
Signed-off-by: Jere Julian <jere@arista.com>
2016-11-02 16:04:59 -04:00
Jere Julian
0565d9084b
Update example
...
Signed-off-by: Jere Julian <jere@arista.com>
2016-11-02 14:44:13 -04:00
Jere Julian
a2dd8fe791
Add examples
...
Signed-off-by: Jere Julian <jere@arista.com>
2016-11-02 13:21:46 -04:00
Jere Julian
d855b5e7a7
Add support for JSON blobs and commands that produce JSON output.
...
Signed-off-by: Jere Julian <jere@arista.com>
2016-11-02 12:25:26 -04:00
Christoph Hartmann
83a860c039
1.3.0
2016-10-28 15:35:36 +02:00
Christoph Hartmann
a25d3e8fae
overwrite exec for inetd because respec its is executing exec
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-10-28 12:10:45 +03:00
Dave Parfitt
51378d326b
adds profile signing/verification
...
Signed-off-by: Dave Parfitt <dparfitt@chef.io>
2016-10-27 14:44:10 +02:00
Jonathan Morley
1af7a22991
Remove wildcard from windows package detection
...
This allows stricter checks on windows software, and keeps it in line with the package resource on other platforms
2016-10-27 14:30:32 +02:00
Alex Pop
08427f1dec
fix nil timeout and retries
...
Signed-off-by: Alex Pop <apop@chef.io>
2016-10-26 20:43:46 +01:00
Jeremy J. Miller
0a042eb360
added 'by_user' example to resource
...
Signed-off-by: Jeremy J. Miller <jm@chef.io>
2016-10-26 15:57:30 +02:00
Jeremy J. Miller
3db0deefb1
putting quotes around path in PS command
...
Signed-off-by: Jeremy J. Miller <jm@chef.io>
2016-10-26 15:57:30 +02:00
Jeremy J. Miller
fe18e3090d
implementing changes requested in review
...
Signed-off-by: Jeremy J. Miller <jm@chef.io>
2016-10-26 15:57:30 +02:00
Jeremy J. Miller
1288f90247
changing module name
...
Signed-off-by: Jeremy J. Miller <jm@chef.io>
2016-10-26 15:57:30 +02:00
Jeremy J. Miller
5cd9cec0c0
adding by_user permissions support for windows
...
Signed-off-by: Jeremy J. Miller <jm@chef.io>
2016-10-26 15:57:30 +02:00
Alex Pop
d40ee684f8
supermarket tools get and filter by tool_type ( #1254 )
...
Signed-off-by: Alex Pop <apop@chef.io>
2016-10-26 15:42:43 +02:00
Artem Sidorenko
489f314a79
Use include instead of match in the error message ( #1248 )
...
as include behaves like contain and not match
Signed-off-by: Artem Sidorenko <artem@posteo.de>
2016-10-25 22:45:57 +02:00
Christoph Hartmann
c67ff8b4a2
extend the attributes object with helper methods
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-10-18 17:17:00 +02:00
Alex Pop
70416a35b4
use command instead of comm and set user column width on linux
...
Signed-off-by: Alex Pop <apop@chef.io>
2016-10-17 15:39:13 +01:00
Anirudh Gupta
8efec7ac6c
fix processes resource for os's where username is long to avoid truncation
2016-10-17 11:46:16 +01:00
Dominik Richter
0ac1467ac1
1.2.1
2016-10-15 11:42:55 -07:00
Alex Pop
5d51b7a0aa
dot inspect actual value to match the expected string one
2016-10-13 07:13:51 -07:00
Victoria Jeffrey
ae8ba9ca9f
fix kitchen-inspec integration-1187
2016-10-13 06:45:24 -07:00
Dominik Richter
11b58efa2f
1.2.0
2016-10-10 06:56:09 -07:00
Alex Pop
de58a2588d
fix cmp code description
2016-10-10 05:40:22 -07:00
Artem Sidorenko
aa725fe2df
Linux Mint support for service resource
2016-10-08 23:34:56 +02:00
Dominik Richter
4b032a2b42
1.1.0
2016-10-05 15:28:22 +02:00
Dominik Richter
4d8a272d30
Merge pull request #1192 from cvent/shell
...
Add shell options
2016-10-05 15:11:24 +02:00
Alex Pop
10116724fc
Missing registry keys should not exist
2016-10-05 14:55:04 +02:00
Dominik Richter
f6ddbea363
use mock backend for inspec vendor/check/json
...
we dont run these against a real backend
2016-10-05 14:29:08 +02:00
Dominik Richter
441967510f
bugfix: support nil entries in filter table
2016-10-05 13:04:00 +02:00
Dominik Richter
2ee7988d18
bugfix: always use the mock backend for inspec archive
2016-10-05 12:54:35 +02:00
Dominik Richter
c93ae2d323
bugfix: use correct logger in cli
2016-10-05 11:24:35 +02:00
Morley, Jonathan
efc7eba050
Add shell options
2016-09-30 15:18:14 -04:00
Victoria Jeffrey
47c6427082
print profile info before test results (inherited profiles)
2016-09-27 10:39:35 -04:00
Christoph Hartmann
6113bb82a8
1.0.0
2016-09-26 15:59:54 +02:00
Steven Danna
7aa4c6da8e
Fix require_controls DSL method
...
Previous, require_controls was including all controls from the named
profile, despite the documented behavior being that it only includes
controls explicitly pulled in by the user. The cause was two-fold:
1) A previous refactor meant that we weren't removing the rule from the
correct context, and
2) We weren't descending down the dependency tree when filtering rules.
This commit fixes the require_controls DSL method and adds a test to
help prevent future regressions.
Signed-off-by: Steven Danna <steve@chef.io>
2016-09-26 15:20:56 +02:00
Steven Danna
57ff8c5e3c
Fix minor typo in sys_info documentation
...
Signed-off-by: Steven Danna <steve@chef.io>
2016-09-26 10:56:16 +01:00
Steven Danna
f23a0d1098
Bump lockfile version to 1.0
...
Signed-off-by: Steven Danna <steve@chef.io>
2016-09-26 09:51:04 +01:00
Steven Danna
76ef897d80
Improve error messages from compliance fetcher
...
Signed-off-by: Steven Danna <steve@chef.io>
2016-09-26 01:57:58 +02:00
Christoph Hartmann
2aab753d9b
return empty array for known privileges
2016-09-26 01:48:59 +02:00
Christoph Hartmann
dab8ff5c13
replace wmi win32_useraccount with adsi users
2016-09-26 01:31:44 +02:00
Christoph Hartmann
3bc7fa3a39
remove whitespace
2016-09-26 01:29:18 +02:00
Michał Sochoń
cdf6f647ac
Update parse_config.rb
...
Extend example section.
2016-09-25 14:02:40 +02:00
Christoph Hartmann
1768d952a4
1.0.0.beta3
2016-09-25 13:27:25 +02:00
Christoph Hartmann
3757ee2483
add variables to each loops
2016-09-23 18:32:47 +02:00
Alex Pop
13da437dcc
Show skip_message and correct title
2016-09-23 07:47:21 +01:00
Christoph Hartmann
f7ec24a337
implement filter table for group/groups resource
2016-09-23 00:53:24 +02:00
Christoph Hartmann
71d119f88d
fix minor typos in user resource
2016-09-23 00:31:32 +02:00
Steven Danna
50b27c4b32
Avoid spurious downloads during dependency management
...
Before, a URL based source might be downloaded multiple times during the
dependency fetching and lockfile creation. This commit tries to avoid
this by:
1) Memoizing data about the archive to avoid re-fetching the archive
2) Adding a CachedFetcher wrapper around the fetcher class to help
ensure that callers always consult the cache before fetching.
Signed-off-by: Steven Danna <steve@chef.io>
2016-09-22 18:36:00 +02:00
Christoph Hartmann
0e7c534ea7
1.0.0.beta2
2016-09-22 11:33:43 +02:00