inspec/test/integration/default/controls
Vern Burton 55abdebdc9 filesystem resource: inspect linux filesystems (#2441)
* adding df resource

Signed-off-by: Vern Burton <me@vernburton.com>

* adding unit tests and required mocks for them, created integration test

Signed-off-by: Vern Burton <me@vernburton.com>

* cleaning up skip test to include only the filename and not full path

Signed-off-by: Vern Burton <me@vernburton.com>

* adding docs

Signed-off-by: Vern Burton <me@vernburton.com>

* size makes more sense than space

Signed-off-by: Vern Burton <me@vernburton.com>

* removing unneeded author lines

Signed-off-by: Vern Burton <me@vernburton.com>

* as the command changed, changing mock to the new sha

Signed-off-by: Vern Burton <me@vernburton.com>

* updating to address comments from #2441

* removing author lines
* using attr_reader functions
* using ruby string functions rather than pipe to sed
* adding os family detection
* using ResourceFailed as the pattern already existed for OS family detection
* using if for future case support for unix and unix-like (FreeBSD)

Signed-off-by: Vern Burton <me@vernburton.com>

* adding supports to resource metadata, and adding tests that show that resource says that it is not supported on windows/unix.

Signed-off-by: Vern Burton <me@vernburton.com>

* focusing on linux os family and removing logic for assumed future cases

Signed-off-by: Vern Burton <me@vernburton.com>

* changing df to filesystem

Signed-off-by: Vern Burton <me@vernburton.com>
2018-01-25 09:29:31 -05:00
..
_debug_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
apache_conf_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
apt_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
auditd_rules_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
cmp_matcher_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
csv_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
dh_params_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
docker_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
etc_group_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
file_spec.rb Extend Windows ACL matchers (#1744) 2017-10-17 15:01:51 +02:00
filesystem.rb filesystem resource: inspect linux filesystems (#2441) 2018-01-25 09:29:31 -05:00
group_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
iis_site_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
ini_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
iptables_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
json_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
kernel_module_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
kernel_parameter_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
matcher_test.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
mount_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
mssql_session_spec.rb mssql_session resource: add port parameter (#2429) 2018-01-16 14:04:00 -08:00
os_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
package_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
port_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
postgres_session_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
powershell_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
registry_key_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
secpol_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
service_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
toml_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
user_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
vbscript_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
virtualization_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
windows_hotfix_spec.rb windows_hotfix resource: test whether a Windows HotFix is installed (#2178) 2017-09-25 19:09:22 +02:00
windows_task_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
wmi_spec.rb wmi resource: properly escape quotes in WMI query (#2342) 2017-11-29 12:01:44 +01:00
x509_spec.rb Fix x509_certificate integration tests (#2431) 2018-01-02 12:27:30 -05:00
xml_spec.rb xml resource: support fetching attributes (#2423) 2018-01-16 14:26:39 -08:00
yaml_spec.rb add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00