Commit graph

92 commits

Author SHA1 Message Date
Ryan Larson
0e187f6117 Feature/fix ability to pass in supermarket url (#1595)
* Enable customization of supermarket_url

It looks like this was originally supposed to work, but at some point
the default value was put in the method body rather than in the method
parameters.

This change allows you to configure the supermarket_url in test kitchen
like so:

```
verifier:
  inspec_tests:
  - name: linux-hardening
    supermarket: som3guy/apache-disa-stig
    supermarket_url: https://my.supermarket.com
```

Signed-off-by: Ryan Larson <ryan.mango.larson@gmail.com>
2017-03-29 12:42:24 -04:00
Adam Leff
073fd99637 Require Ruby 2.1
InSpec now depends on nokogiri which has a dependency of Ruby 2.1 or
later. If someone tries to `gem install inspec` using Ruby 2.0, it
will fail on the nokogiri dependency rather than InSpec itself.

Additionally, Ruby 2.0 is already EOL.

Signed-off-by: Adam Leff <adam@leff.co>
2017-03-27 12:59:56 -04:00
John Kerry
dd9ec61199 moving the nokogiri reference into the gemspec file
Signed-off-by: John Kerry <john@kerryhouse.net>
2017-03-19 21:56:14 -04:00
Adam Leff
0342cca62e Adding a Habitat profile artifact creator
Two new commands have been created:

 * inspec habitat profile create /path/to/profile
 * inspec habitat profile upload /path/to/profile

The `create` command creates a Habitat artifact that contains the contents
of the Habitat profile found at the provided path. This will be used later
in some Habitat + InSpec integrations.

The `upload` command does the same create process but then uploads the
resulting artifact to the Habitat Depot.

Signed-off-by: Adam Leff <adam@leff.co>
2017-02-23 18:25:22 -05:00
Christoph Hartmann
58585e3455 switch to faraday as http backend
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2017-02-02 22:13:36 +01:00
Guilhem Lettron
51ca98c468 Add an http test method
Signed-off-by: Guilhem Lettron <g.lettron@criteo.com>
2017-01-26 12:02:54 +01:00
Alex Pop
aea77880c3 use train 0.22.0 for SSH agent support
Signed-off-by: Alex Pop <apop@chef.io>
2016-12-02 16:34:46 +00: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
Dominik Richter
46d9d39e8d update train to fix empty target URIs 2016-10-15 07:12:01 -07: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
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
2dbcbb6cb1 update train and kitchen-inspec version to support winrm v2 2016-09-05 13:36:48 +02:00
John Keiser
16e759c834 add support for json2 2016-08-24 11:15:17 +02:00
Steven Danna
d64b72d71d
Replace Molinillo-based resolver
The Molinillo library is a good library for systems that need a
constraint solver that will solve dependency problems requiring a single
version of each named dependency.

In our case, the eventual goal is to allow libraries to have conflicting
transitive dependencies at runtime. Isolation will be provided by
restricting all calls within a given profile to scope which can only see
that profile's dependencies.

To facilitate working on the isolation feature, I've replaced the
Molinillo-based resolver with a minimal resolver which will allow us to
load multiple versions of the same library.

Since we will likely want a good amount of logging around this feature
in the future, I've added a Inspec::Log singleton-style class, replacing
the previous Inpsec::Log which appeared unused in the code base.

Signed-off-by: Steven Danna <steve@chef.io>
2016-08-23 14:27:57 +01:00
Dominik Richter
161bd637f3 move mocha to test group in Gemfile
group test gems together.
2016-08-16 06:20:42 -07:00
Dominik Richter
11933ef305 remove tests and tasks from release gems
Developers use the github repo to get full access to the development of this gem. The fixed (non git-ls-files) approach to packaging files has led to a 30mb gem recently, this will prevent that from happening again.
2016-08-16 06:20:42 -07:00
Dominik Richter
c4282ab6b2 add ssl resource (early access) 2016-08-15 07:49:41 -07:00
Dominik Richter
aed68f9a29 update dependencies and loosen molinillo
This prevents gecode from being pulled in as a gem dependency
2016-08-15 07:30:57 -07: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
da3d6f0f2d require train 0.16
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-08-08 13:19:28 +02:00
Dominik Richter
68cf88f701 add suid sgid and sticky support for file resource 2016-07-10 23:08:42 +02:00
Christoph Hartmann
8a6ace77bd use train instead of r-train 2016-06-16 11:35:13 +02:00
Christoph Hartmann
1dd4da8d08 update train dependency to 0.12.0 2016-05-16 15:33:12 +02:00
Alex Pop
9ded3b8835 Provide service params as a mash, empty unless systemd for now 2016-05-09 14:54:09 +02:00
Dominik Richter
3e8974d243 update to new train interface 2016-04-28 19:55:34 -04:00
Stephan Renatus
f7272f746c 0.19.1 2016-04-18 11:39:52 +02:00
Dominik Richter
ebd094fbb0 bugfix: rspec world handling on rspec 3.5
This accessor is designed to work with rspec 3.0 - 3.5 (and potentially up).
2016-04-16 20:33:01 -04:00
Dominik Richter
f845a16442 0.17.0 2016-03-31 14:23:07 +02:00
Christoph Hartmann
593df248b4 0.14.5 2016-02-29 13:47:55 +01:00
Julian C. Dunn
dee0b32c2f Fix warning:
WARNING:  WARNING: license value 'Apache 2.0' is invalid.  Use a license identifier from
http://spdx.org/licenses or 'Nonstandard' for a nonstandard license.
WARNING:  See http://guides.rubygems.org/specification-reference/ for help
2016-02-27 22:24:21 -05:00
Christoph Hartmann
e466ec4e90 0.13.0 2016-02-19 14:50:03 +01:00
Christoph Hartmann
f23e463bc6 require train 0.9.6 for solaris support 2016-01-29 18:33:58 +01:00
Dominik Richter
fbd8ca45df Improve the description and summary of the InSpec gem. 2016-01-16 01:59:53 +01:00
Christoph Hartmann
0ca7e47ac7 update train dependency to 0.9.3 2016-01-03 00:16:27 +01:00
Adam Leff
c146a76679 File permission checks should return false unless file exists
Currently, #readable?, #writeable?, and #executable? will incorrectly
return true if the file does not exist.

In addition, I took the opportunity to refactor the File resource to
make it easier to write unit tests and supplied a full unit test
suite for this resource.
2015-12-08 19:57:34 +01:00
Dominik Richter
007594eef7 lint 2015-11-13 00:48:52 +01:00
tyler-ball
6b4aaf8423 Not using git in the gemspec file because inside the ChefDK the folder isn't a git directory, it is just installed from a gem 2015-11-04 16:36:44 -07:00
Christoph Hartmann
1726e49656 relax pry version 2015-11-03 09:15:20 +00:00
Dominik Richter
7fe379c654 update gemspec for push 2015-11-03 09:58:26 +01:00
James Casey
36cf960cec Apache 2.0 LICENSE 2015-11-03 08:25:24 +00:00
Dominik Richter
dbbf7041de bugfix: ignore delivery when building the gem 2015-11-02 02:23:39 +01:00
Dominik Richter
b58a4b3f43 rename vulcanosec -> inspec 2015-10-26 12:34:15 +01:00
Renamed from vulcano.gemspec (Browse further)