Jerry Aldrich
84817366a1
Remove deprecations for InSpec 2.0 ( #2506 )
...
* Add `release-2.0` target branch to AppVeyor/Travis (#2510 )
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
* simpleconfig: Remove deprecated config keys
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
* cli (exec): Remove `--cache` command line argument
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
* platform: Remove lowercase os name protection
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
* matcher: Remove `contain_legacy_plus` matcher
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
* matcher: Remove `contain_match` matcher
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
* matcher: Remove `with_version` matcher
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
* matcher: Remove `belong_to_group` matcher
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
* matcher: Remove `belong_to_primary_group` matcher
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
* matcher: Remove `contain` matcher
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
* passwd: Remove deprecated properties
This removes:
- `passwd.count`
- `passwd.username`
- `passwd.usernames`
- `passwd.uid`
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
* auditd_rules: Remove in favor of `auditd` resource
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
* cli: Remove `login_automate` command
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
* Remove `resource_skipped` message method
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-02-08 11:05:21 +01:00
Adam Leff
a6582bea9b
Remove any "All Rights Reserved" references ( #1969 )
...
* Remove any "All Rights Reserved" references
InSpec is licensed and released under the Apache 2.0 license. This
change removes all reference to legacy code files that still had
any Copyright or License lines referring to "All Rights Reserved".
Signed-off-by: Adam Leff <adam@leff.co>
* fix functional tests
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2017-06-28 04:14:19 -07:00
Dominik Richter
1dafe50bd9
rename SimpleConfig / parse_config / parse_config_file options
...
See https://github.com/chef/inspec/issues/1709
Fixes https://github.com/chef/inspec/issues/1709
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2017-04-26 23:18:40 +02:00
Adam Leff
ea7c0c493e
Provide a method-based accessor for SimpleConfig hashes
...
When SimpleConfig parses a config file that has sections, such as a mysqld
config file, the values within that section are returned via a Hash. However,
we do not provide an easy way to write tests for those deep hash values:
```
describe mysql_conf('/tmp/my.cnf') do
its('mysqld.expire_logs_days') { should cmp 10 }
end
MySQL Configuration
∅ undefined method `expire_logs_days' for #<Hash:0x007fe463795a00>
```
This change provides a method-based accessor for Hashes that are built via
SimpleConfig.
```
describe mysql_conf('/tmp/my.cnf') do
its('mysqld.expire_logs_days') { should cmp 10 }
end
MySQL Configuration
✔ mysqld.expire_logs_days should cmp == 10
```
Fixes #1541 by changing the way the attributes are fetched.
Signed-off-by: Adam Leff <adam@leff.co>
2017-03-15 14:49:16 -05:00
Tom Duffield
1ea83f526c
Address rubocop violations
...
Signed-off-by: Tom Duffield <tom@chef.io>
2017-02-08 16:49:16 -06:00
Christoph Hartmann
19ed6be39f
more fine-grained utils parser
2016-01-02 22:41:58 +01:00
Dominik Richter
6cbe3466fb
update rubocop 0.35.1
2015-11-13 01:03:15 +01:00
Dominik Richter
0ac3c412aa
bugfix: support empty content in simpleconfig
2015-10-26 16:16:42 +01:00
Christoph Hartmann
949496776e
move comment parser to utils
2015-10-07 18:45:07 +02:00
Christoph Hartmann
8fff2ee989
add author header
2015-10-06 18:55:44 +02:00
Christoph Hartmann
77f48cfcf3
move line-split to simple config
2015-10-05 11:42:20 +02:00
Dominik Richter
8b97bdbaa7
expose simpleconfig groups
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-30 12:18:09 +02:00
Dominik Richter
2d8b63cb22
feature: support simple config groups
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-30 12:00:38 +02:00
Dominik Richter
f1cc7cbf9b
lint utils
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 02:15:42 +02:00
Christoph Hartmann
0e8651bf26
fix rubocop issues
2015-09-05 16:07:54 +02:00
Christoph Hartmann
36c9de7529
more rubocop fixes
2015-09-04 09:59:30 +02:00
Christoph Hartmann
349d5bf9f1
harmonize method definition style
2015-09-03 20:43:58 +02:00
Dominik Richter
7e9c8fe289
bugfix: get comment_char for simple_config
...
Signed-off-by: Dominik Richter <dominik@vulcanosec.com>
2015-08-01 09:23:52 +02:00
Dominik Richter
f2fed3fa6d
api: change default of multiple_values true -> false in SimpleConfig
...
Signed-off-by: Dominik Richter <dominik@vulcanosec.com>
2015-08-01 09:23:02 +02:00
Christoph Hartmann
17476fd634
add limits.conf resource
2015-07-26 12:30:46 +02:00
Dominik Richter
c1522ed98c
feature: multi-assignments for simpleconfig
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-04-17 15:36:18 +02:00
Dominik Richter
985552731a
import resources
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-04-09 22:01:23 +02:00