Commit graph

3918 commits

Author SHA1 Message Date
Dominik Richter
5f1d83f196 Merge pull request #912 from chef/ap/port-win-process
Windows ports with pid and process name
2016-08-12 20:59:28 +02:00
Alex Pop
353dcf10ec make netstat default for getting ports and get only listening ones 2016-08-12 16:02:56 +01:00
Dominik Richter
b8569e6923 0.30.0 2016-08-12 16:23:38 +02:00
Dominik Richter
b0f35d0888 Merge pull request #892 from chef/chris-rock/registry-pattern-match
Support regular expressions for Windows registry key
2016-08-12 16:20:14 +02: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
1faa68732e use powershell function for 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
8a94ca3161 Merge pull request #911 from chef/dr/auto-doc
auto-generate inspec cli docs
2016-08-12 14:50:05 +02:00
Dominik Richter
e637067c43 auto-genreate inspec cli docs 2016-08-12 13:40:59 +02:00
Christoph Hartmann
81563b80e4 Merge pull request #891 from chef/dr/depends
introduce dependency resolution (experimental)
2016-08-11 20:36:54 +02:00
Steven Danna
92fb4dbedf
Unlock rack to make CI happier?
Signed-off-by: Steven Danna <steve@chef.io>
2016-08-11 17:51:08 +01:00
Steven Danna
9957138909
Fix inheritance tests to account for dependency spike
Signed-off-by: Steven Danna <steve@chef.io>
2016-08-11 16:41:09 +01:00
Steven Danna
90be4acab1
Fix rubocop violation, lock rack to avoid dependency madness
Signed-off-by: Steven Danna <steve@chef.io>
2016-08-11 16:41:05 +01:00
Dominik Richter
cac89dc6dd add missing errors file to collect inspec error classes 2016-08-10 22:41:32 +02:00
Dominik Richter
7e569669aa introduce dependency resolution
This commit is the foundation of the dependency resolution as described in https://github.com/chef/inspec/issues/888 .

It currently only works with local dependencies, as seen in the example inheritance profile.

Tests and full resolution are coming next on the path to an MVP implementation.
2016-08-10 22:41:32 +02:00
Christoph Hartmann
d4850a072c Merge pull request #890 from chef/ksubrama/win_omnibus
Improve windows support of omnibus installer
2016-08-10 22:38:19 +02:00
Christoph Hartmann
016e970bb9 add description for windows builds 2016-08-10 22:31:58 +02:00
Kartik Null Cating-Subramanian
ce2b0949ac Improve windows support of omnibus installer - fix #889 2016-08-10 22:31:58 +02:00
Christoph Hartmann
3c389acc75 Merge pull request #880 from chef/chris-rock/win-file-version
add integration test for windows file and directory
2016-08-10 22:26:59 +02:00
Christoph Hartmann
92d3702043 add integration test for windows file and directory 2016-08-10 21:41:32 +02:00
Christoph Hartmann
18079f5fc8 Merge pull request #901 from chef/ssd/pgconf-location
Improve detection of postgresql conf dir and data dir
2016-08-10 19:04:50 +02:00
Steven Danna
c71f5cdb30 Improve detection of postgresql conf dir and data dir
Redhat conf_dir detection was regressed in 57d7275 which inadvertently
removed the setting of @conf_dir. Any attempt to use the postgres
resource on RHEL would rain an exception:

    inspec> postgres.data_dir
    TypeError: no implicit conversion of nil into String

Further, the redhat detection code appears to assume that RHEL always
uses versioned data directories. This however, does not appear to be the
case:

    $ cat /etc/redhat-release
    CentOS release 6.7 (Final)
    $ sudo ls /var/lib/pgsql/
    backups  data  pgstartup.log

The code now can handle both versioned and un-versioned directory
formats on RHEL. Further, it provides diagnostic warnings about
uncertainty in the discovered data directories and configuration
directories.

Signed-off-by: Steven Danna <steve@chef.io>
2016-08-10 18:44:15 +02:00
Christoph Hartmann
9138c7d04e Merge pull request #904 from chef/chris-rock/temporary-disable-travis-tests
move test suites to allowed failures until travis is fixed
2016-08-10 18:07:37 +02:00
Christoph Hartmann
96968171f2 allowed failures for unit/functional tests until travis is fixed 2016-08-10 17:00:50 +02:00
Christoph Hartmann
c1e6478a94 Merge pull request #900 from chef/ssd/shell-readline
Add readline ignore markers to color escape codes in the shell
2016-08-10 16:25:15 +02:00
Steven Danna
b4b6792878 Add readline ignore markers to color escape codes in the shell
Previously, if you typed more than 20 characters at the prompt and
attempted pressed Ctrl+a (readline's "Move to start of line" command),
your prompt would appear at the ~11th character from the start of the
line, unable to go further back.

This was a result readline counting the terminal escape sequences we use
for color output as part of the line.

Wrapping these sequences in \001 and \002 instructs readline to ignore
them when doing calculations regarding line-length, resolving the
problem.
2016-08-10 14:26:56 +02:00
Christoph Hartmann
0fc2a07ce6 Merge pull request #902 from chef/ssd/lower-concurrency-test
travis experiment: lower docker concurrency
2016-08-10 14:25:43 +02:00
Steven Danna
9346f5dd34
travis experiment: lower docker concurrency
Signed-off-by: Steven Danna <steve@chef.io>
2016-08-10 12:52:21 +01:00
Steven Danna
e073a63565 Merge pull request #896 from chef/ssd/tab-complete
Add `inspec env` command to configure shell tab-completion
2016-08-10 10:52:41 +01:00
Steven Danna
afddebaf3f
Add inspec env command to configure shell tab-completion
This adds a new subcommand:

   inspec env [SHELL]

which outputs a shell-appropriate completion script that the user can
source into their shell:

   eval "$(inspec env SHELL)"

Currently, we provide completions for ZSH and Bash. The completion
scripts are generated from the data Thor collects.

If the user doesn't provide SHELL we attempt to detect what the user's
shell may be using a number of methods.

Signed-off-by: Steven Danna <steve@chef.io>
2016-08-10 02:07:53 +01:00
Steven Danna
776adc1b22 Merge pull request #658 from chef/chris-rock/omnibus
Add omnibus for inspec
2016-08-08 14:58:06 +01:00
Steven Danna
07f7485423 [omnibus] Appbundle inspec and cleanup style issues
- Removes resource files which matched the default implementations
  contained in omnibus.

- Removes software definition for train which will be installed via the
  gem dependecies in the inspec defintion.

- Appbundle inspec to match our other ruby-based projects

- Update rubocop style violations

- Update copyright notices

Signed-off-by: Steven Danna <steve@chef.io>
2016-08-08 13:34:33 +02:00
Christoph Hartmann
5a8ee8c896 add omnibus for inspec 2016-08-08 13:34:33 +02:00
Christoph Hartmann
85bba1a809 0.29.0 2016-08-08 13:32:36 +02:00
Christoph Hartmann
aafd0095c9 Merge pull request #881 from chef/chris-rock/train-0.16
Require train 0.16
2016-08-08 13:29:03 +02:00
Christoph Hartmann
da3d6f0f2d require train 0.16
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-08-08 13:19:28 +02:00
Christoph Hartmann
ae3827e457 Merge pull request #887 from chef/dr/json-restructure
revert control_summary field in output
2016-08-08 12:38:10 +02:00
Dominik Richter
16bd6a14d5 revert control_summary field in output
(1) The field is not yet optimal, the calculations are great!
(2) Changing this field should go together with all other breaking json changes, especially if https://github.com/chef/inspec/pull/811 results in a change.
2016-08-08 11:54:27 +02:00
Steven Danna
0e3b661200 Merge pull request #883 from chef/ssd/a-test-too-far
Remove some platforms from travis config
2016-08-05 18:48:04 +01:00
Kartik Null Cating-Subramanian
470b7bb7d2 Merge pull request #860 from chef/vj/inspec-controls-count
Count controls in the summary output. Fix #852
2016-08-05 13:47:45 -04:00
Kartik Null Cating-Subramanian
8094add5b3 Test summary JSON schema 2016-08-05 13:27:30 -04:00
Steven Danna
b979579e5f
Remove some platforms from travis config
We can run these platforms before the release, but running them on every
commit means we wait a long time for travis builders.
2016-08-05 18:16:55 +01:00
Steven Danna
9baf01cfb0 Merge pull request #882 from chef/ssd/autofail
Explicitly require docker transport to avoid autoload bug
2016-08-05 18:16:28 +01:00
Steven Danna
dea19846a3
Explicitly require docker transport to avoid autoload bug
Ruby's autoload feature is not threadsafe.  We are hoping requiring the
docker plugin early will fix odd failures we have been seeing.

Signed-off-by: Steven Danna <steve@chef.io>
2016-08-05 17:58:20 +01:00
Victoria Jeffrey
6c91183995 count controls in the summary output. Fix #852 2016-08-05 11:43:29 -04:00
Kartik Null Cating-Subramanian
31a7d58473 Merge pull request #879 from chef/ksubrama/json_fix
Generate test labels for multi-test controls
2016-08-05 10:11:15 -04:00
Kartik Null Cating-Subramanian
0f572df4be Fix integration test 2016-08-05 10:01:29 -04:00
Kartik Null Cating-Subramanian
c5556e65f8 Cleanup to fix some formatting. Fix #872 2016-08-05 09:41:47 -04:00
Kartik Null Cating-Subramanian
742037c29d Generate test labels for multi-test controls: Fix #812 2016-08-05 09:41:47 -04:00