Commit graph

3634 commits

Author SHA1 Message Date
Christoph Hartmann
7db81fabe9 Merge pull request #462 from chef/dr/fix-targets
fix url target resolution with zip and tar
2016-02-18 15:20:03 +01:00
Christoph Hartmann
26276ca991 use ruby zip and tar for unit tests 2016-02-18 14:27:16 +01:00
Dominik Richter
17d4e1dc3c simplify url-construction of inspec-compliance 2016-02-18 14:25:55 +01:00
Dominik Richter
b8cce5d3c7 create zip for test helper in ruby
The zip command is not always there. (e.g. i dont have it on my box). just use the available zip library
2016-02-18 14:25:55 +01:00
Dominik Richter
b872c04616 bugfix: url helper loading zip and tar 2016-02-18 14:25:55 +01:00
Dominik Richter
509088ba5d share test helpers for loading profile archives 2016-02-18 14:25:55 +01:00
Dominik Richter
e354854fc9 bugfix: dont skip url target unit test 2016-02-18 14:25:55 +01:00
Dominik Richter
6bc57b2d92 bugfix: stop reading fro mzip when file is found 2016-02-18 14:25:55 +01:00
Christoph Hartmann
2c42d5ba46 Merge pull request #466 from chef/dr/cmp++
cmp for single-entry arrays; add cmp docs
2016-02-18 14:24:26 +01:00
Dominik Richter
301a39d4f0 add matchers docs 2016-02-18 13:58:46 +01:00
Dominik Richter
03bf732d82 add cmp for Arrays 2016-02-18 13:58:37 +01:00
Dominik Richter
2bbbb29a9b simplify cmp matcher checks 2016-02-18 12:07:40 +01:00
Christoph Hartmann
f0943798b6 Merge pull request #463 from chef/sr/docs-services
Service-related docs, bugs, integration tests
2016-02-17 13:03:31 +01:00
Stephan Renatus
453cd420fb fix service_ctl override logic 2016-02-17 12:55:09 +01:00
Stephan Renatus
476bd750b0 restrict service integration tests on centos to >= 6 2016-02-17 12:55:09 +01:00
Stephan Renatus
defd5b3fa6 docs for sysv runlevels and service{mgr,ctl} overrides 2016-02-17 12:55:09 +01:00
Stephan Renatus
d5a6d1000f integration tests for sysv runlevels 2016-02-17 11:41:34 +01:00
Christoph Hartmann
103dc09bb6 Merge pull request #461 from chef/sr/config-permissions
ensure permissions of inspec-compliance config.json on store
2016-02-17 11:11:33 +01:00
Stephan Renatus
d2469d9519 inspec-compliance: ensure file permissions when saving config 2016-02-17 10:46:06 +01:00
Christoph Hartmann
1585d60841 Merge pull request #457 from chef/0.11.1
0.12.0
2016-02-15 12:14:43 +01:00
Dominik Richter
294db6744f 0.12.0 2016-02-15 11:54:14 +01:00
Dominik Richter
374baf3b7f Merge pull request #454 from chef/chris-rock/generate
Add a init subcommand
2016-02-14 22:26:46 +01:00
Christoph Hartmann
48545d9a34 ignore templates in rubocop 2016-02-14 21:28:11 +01:00
Christoph Hartmann
96d02ba4a2 add inspec profile as example 2016-02-14 21:27:40 +01:00
Christoph Hartmann
b967af3c89 rename generate to init 2016-02-14 21:26:37 +01:00
Christoph Hartmann
f281f9c351 implement generate cli command 2016-02-14 19:38:58 +01:00
Christoph Hartmann
f01b865d94 Merge pull request #455 from chef/dr/runlevel
add runlevel support for System V services
2016-02-14 19:37:07 +01:00
Dominik Richter
33f58b3348 add tests for runlevel testing 2016-02-14 18:37:20 +01:00
Dominik Richter
36cbafc438 add runlevel helper object to services 2016-02-14 18:23:58 +01:00
Dominik Richter
0934948a1a support runlevels for system V + service matching
Bugfix: there were services that would get matched because of the way the regex was constructed, i.e. if the user inserted `.` or `*` or anything regexy. Even if the service only had part of the name you were interested in, it would match (e.g. `sshd` would find `my_sshdaemon`).

Apart from this, runlevels are now detected for SystemV. This is exposed in `#info`
2016-02-13 02:11:51 +01:00
Dominik Richter
820446a0aa Merge pull request #452 from chef/sr/logging-and-config-bugs
Fix two minor logging and config bugs in CLI
2016-02-12 10:43:42 +01:00
Stephan Renatus
caa0c8ce81 respect logging configuration for inspec shell
Makes it a lot easier to figure out why something fails if it fails...
2016-02-12 10:16:10 +01:00
Stephan Renatus
4c61ed3878 respect json config in inspec archive
Although I am not aware of this causing trouble anywhere right now, it
seems better to do it homogeneous.
2016-02-12 10:15:05 +01:00
jcreedcmu
861965a124 Merge pull request #449 from chef/dr/check-resolver
bugfix: verify the resolver type first
2016-02-11 10:57:05 -05:00
Dominik Richter
2426d30870 bugfix: verify the resolver type first 2016-02-11 15:40:35 +01:00
jcreedcmu
a42b19414d Merge pull request #447 from chef/dr/target-helper-dirs
rework target to resolver connection
2016-02-11 08:43:53 -05:00
Dominik Richter
137bee74ca add content resolver to dir helper 2016-02-10 23:46:55 +01:00
Dominik Richter
3efd0961f0 make sure archive resolvers return one file only 2016-02-10 22:49:51 +01:00
Dominik Richter
19a0a18db1 sync archive+tar+zip helpers to new dir-resolver 2016-02-10 22:30:13 +01:00
Dominik Richter
6bd757c585 improve documentation on target resolvers 2016-02-10 20:36:54 +01:00
Dominik Richter
d272024b01 rework resolver connection
I.e. we want to get access to the actual directory handler, with full exposure of the underlying directory resolver. e.g. Get the InspecProfileDirectory handler (which provides access to tests, metadata, libraries), but be able to get all data with that alone (e.g. an ArchiveHelper for ZIP which reads all files/folders from zip)
2016-02-10 20:36:43 +01:00
Stephan Renatus
d140335fbc Merge pull request #446 from chef/dr/dir-resolver
start directory resolver cleanup
2016-02-10 14:42:15 +01:00
Dominik Richter
293b1a4c25 unify all directory resolvers 2016-02-10 12:20:28 +01:00
Dominik Richter
2d92e164c2 create plugin interface for directory resolvers 2016-02-10 11:15:08 +01:00
Dominik Richter
575953b00c Merge pull request #442 from chef/sr/fix-420
Fix iptables on CentOS6 + more tests for iptables (plus small code improvements)
2016-02-10 10:02:45 +01:00
Stephan Renatus
7815cefded iptables: adapt integration tests
_Only_ CentOS 6 does not strip the quotes from comments.
2016-02-10 09:57:32 +01:00
Stephan Renatus
ac2584f51d iptables: strip lines if iptables -S output
As it turns out, some of the lines on CentOS 6 had a trailing space in it.

Fixes #420.
2016-02-10 09:57:32 +01:00
Stephan Renatus
4ffc72bf93 iptables integration test: split according to platform
centos puts quotes where ubuntu drops them
2016-02-10 09:57:32 +01:00
Stephan Renatus
cdad6e63c3 iptables: some simplifications 2016-02-10 09:57:32 +01:00
Stephan Renatus
81f149fd14 iptables: add integration theses 2016-02-10 09:57:32 +01:00