inspec/test/integration/default/controls
Vern Burton 175c3e1189 xml resource: support fetching attributes (#2423)
* adding database.xml with attributes to files and mocking it in the helper.rb

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

* adding logic to test class returned by XPATH and using functions from respective classes to fill a array for return, and unit and integration tests to ensure functionality

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

* updating docs to show how attributes are used

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

* 'and' instead of 'or' makes more sense

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

* adding default else for capturing unknown classes from REXML

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

* removing extra newline

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

* adding fail case with enough information to debug in future case

Signed-off-by: Vern Burton <me@vernburton.com>
2018-01-16 14:26:39 -08: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
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