Christoph Hartmann
85aae8d29f
fix double-space in pip to_s resource
2016-09-21 12:02:36 +02:00
Steven Danna
8d63db9a2b
Change :shasum key to :sha256 for future upgrade
...
Signed-off-by: Steven Danna <steve@chef.io>
2016-09-21 10:51:04 +01:00
Steven Danna
6814d6ad2b
Fail if a remote source content doesn't match lockfile
...
If a URL based source does not match the shasum recorded in the
lockfile, it likely means a new version has been pushed to the remote
source. In this case, we fail to help ensure that when using a lockfile
we always run the same code as when the lockfile was created.
Signed-off-by: Steven Danna <steve@chef.io>
2016-09-21 10:15:52 +01:00
Anirudh Gupta
a355af670f
fixup! fixing the debian package manager - when the package is removed but not purged
2016-09-21 13:41:59 +05:30
Anirudh Gupta
024027a3a1
fixing the debian package manager - when the package is removed but not purged
2016-09-21 13:11:23 +05:30
Anirudh Gupta
1cfa3252ce
making the examples in the code consistent with rst docs
2016-09-21 11:33:17 +05:30
Alex Pop
161386f50d
Use parenthesis when passing regular expressions
2016-09-21 00:51:23 +02:00
David Pell
155995adfd
In ApacheConf#include_files, check for abs paths
...
If the path is absolute, just use what was passed, otherwise build an
absolute path using `@conf_dir`.
Fixes #1013
2016-09-20 09:11:09 -04:00
Alex Pop
e1faebd527
Include code description in the output of failed controls
2016-09-20 10:10:08 +01:00
Alex Pop
624849d418
removed unsupported legacy login and replaced it with the current username/password login option. a bit of refactoring around error checking and error/success output content
2016-09-19 23:08:42 +02:00
Steven Danna
b2146d8758
Allow users to reference resources from dependencies
...
All resources from deps are added into the control_eval_context used by
the current profile. However, if there is a name conflict, the last
loaded resource wins. The new `require_resource` dsl method allows the
user to do the following:
require_resource(profile: 'profile_name',
resource: 'other',
as: 'renamed')
describe renamed do
...
end
Signed-off-by: Steven Danna <steve@chef.io>
2016-09-19 19:08:43 +02:00
Christoph Hartmann
1796b91846
1.0.0-beta1
2016-09-19 17:51:25 +02:00
Dominik Richter
6792550f8c
adopt new json formatting
2016-09-19 13:45:03 +02:00
Victoria Jeffrey
ecac8ae9cb
print profile summary and test summary
2016-09-18 21:53:16 -04:00
Dominik Richter
6234e9c1eb
Merge pull request #1084 from chef/ap/ssl-hostname
...
ssl resource to use inspec.backend.hostname and require train 0.19.1
2016-09-16 14:05:28 +02:00
Christoph Hartmann
b4a3debeec
0.35.0
2016-09-16 12:00:07 +02:00
Alex Pop
8a470c16f1
ssl resource to use inspec.backend.hostname and require train 0.19.1
2016-09-16 10:41:22 +01:00
Steven Danna
be1a61f2e5
Process transitive dependencies from lock file
...
This is a regression introduced by the changes from string to symbol
keys in v0.34.0. It seems that our test cookbook that had a nested
dependency example wasn't actually wired up to run.
This adds a basic functional test and corrects the typo.
Signed-off-by: Steven Danna <steve@chef.io>
2016-09-15 09:41:40 +02:00
Christoph Hartmann
178156499f
Merge pull request #1076 from chef/ssd/issue-1074
...
Ensure resources are visible inside its blocks
2016-09-14 17:48:26 +02:00
Steven Danna
8024eea8b7
Ensure resources are visible inside its blocks
...
The recent changes to provide isolated views of the available resources
was not extended to Rspec::ExampleGroups. This ensures that
ExampleGroups have access to the same resources as the enclosing
Inspec::Rule.
Signed-off-by: Steven Danna <steve@chef.io>
2016-09-14 16:27:59 +01:00
Steven Danna
f2e587f6d5
Skip controls from profile's that don't support the current platform
...
Any controls included from profiles that don't support our current
platform are now marked as skipped.
Fixes #1049
2016-09-14 09:57:53 +01:00
Steven Danna
8f10ee53c5
Provide inspec.yml shortcut syntax
...
- Allow users to elide the `name` attributes
- Assume a default source of supermarket
Fixes #1048
Signed-off-by: Steven Danna <steve@chef.io>
2016-09-14 08:46:06 +02:00
Christoph Hartmann
ad2faecffd
0.34.1
2016-09-13 17:17:51 +02:00
Christoph Hartmann
60360f267d
move force encoding to binary only, so that it does not affect the use of inspec in lib mode
2016-09-13 16:18:40 +02:00
Christoph Hartmann
b591f0c6ca
0.34.0
2016-09-12 19:36:09 +02:00
Christoph Hartmann
9c7d06c167
use simple config for security policy resource
2016-09-12 12:20:57 +02:00
Steven Danna
b48b9edae9
Improve duplicate and cycle detection in resolver
...
Signed-off-by: Steven Danna <steve@chef.io>
2016-09-12 10:57:55 +01:00
Christoph Hartmann
a2143b8249
identify enabled/disabled accounts for windows
2016-09-12 11:40:25 +02:00
Steven Danna
1836e6daeb
Add Inspec::Fetcher#relative_target for compatibility
...
Signed-off-by: Steven Danna <steve@chef.io>
2016-09-12 09:54:57 +01:00
Steven Danna
4d2d0f2b67
Typo supermarket -> compliance
...
Signed-off-by: Steven Danna <steve@chef.io>
2016-09-09 14:46:36 +01:00
Steven Danna
120b3d895a
Allow supermarket:// and compliance:// in inspec.yml
...
Signed-off-by: Steven Danna <steve@chef.io>
2016-09-09 14:14:37 +01:00
Steven Danna
85cbe713d7
Add GitFetcher and rework Fetchers+SourceReaders
...
This adds a new git fetcher. In doing so, it also refactors how the
fetchers work a bit to better support fetchers that need to resolve
user-provided sources to fully specified sources appropriate for a
lockfile.
Signed-off-by: Steven Danna <steve@chef.io>
2016-09-09 14:14:36 +01:00
Steven Danna
f431794917
Clean up Inspec::Profile initialize to make it clear what options we use
2016-09-09 14:14:36 +01:00
Christoph Hartmann
e61f71143d
add unit tests
2016-09-09 12:43:03 +02:00
Christoph Hartmann
82a4e21cf7
add sys_info resource to get information about the hostname
2016-09-09 10:36:02 +02:00
Christoph Hartmann
fb416bfdf8
added further comments highlight that the users research is focussed on local users
2016-09-09 09:31:38 +02:00
Christoph Hartmann
23cfc3c4bd
fix for solaris
2016-09-09 09:31:38 +02:00
Christoph Hartmann
78a47aa43b
improve windows implementation
2016-09-09 09:31:38 +02:00
Christoph Hartmann
74c3904844
improve performance for single user requests
2016-09-09 09:31:37 +02:00
Christoph Hartmann
94100d98b0
full implementation for filtable for linux and mac
2016-09-09 09:31:37 +02:00
Kartik Null Cating-Subramanian
42fd3fc51a
first iteration fitlertable for user resource
2016-09-09 09:31:37 +02:00
Christoph Hartmann
fe58fa16bb
0.33.2
2016-09-07 13:03:15 +02:00
Christoph Hartmann
80fd288f44
Merge pull request #1020 from chef/chris-rock/iis_direct_matcher
...
allow direct access to iis configuration parameters
2016-09-07 11:34:47 +02:00
Christoph Hartmann
1bd55f8cc4
allow direct access to iis configuration parameters
2016-09-07 11:19:34 +02:00
Alex Pop
f65ceeb900
handled hostname differently for WinRM::Connection
...
parallelize protocol checks to speed up the scan
2016-09-07 11:04:01 +02:00
Christoph Hartmann
123ddd2a6c
0.33.1
2016-09-07 10:50:48 +02:00
Steven Danna
210dbc9425
Remove SourceReader::Inspec#prepare_load_path
...
We already monkeypatch require so that it is redirected through the
require_loader. All of the tests pass with this removal. We might
cause some breakage with this removal that we aren't testing, but given
that we are mucking with `require` it seems preferable to have one
mechanism by which we do that and solve any bugs with that single path.
Signed-off-by: Steven Danna <steve@chef.io>
2016-09-07 10:35:58 +02:00
Steven Danna
74e712854e
Pass attributes from command line into profile context
...
We broke attributes with the dependency work. Minimally fix them. TODO:
Maximally fix them.
Signed-off-by: Steven Danna <steve@chef.io>
2016-09-07 10:29:47 +02:00
Christoph Hartmann
59989d7f83
0.33.0
2016-09-05 17:43:19 +02:00
Christoph Hartmann
0a34ffef5a
always display error message
2016-09-05 17:23:14 +02:00