inspec/lib/resources
Jared Quick 2bbcdbde9b
Inspec 3.0 (#3512)
* Remove deprecated yumrepo. (#3435)

* Remove deprecations for cli `--format` and metadata.rb (#3452)

* Remove deprecated database_helpers stderr/stdout methods.
Update deprecation text for processes/apache.

* Remove deprecations for `--format` and metadata.rb
Remove deprecated `format` code.
Remove deprecated code test and change json-config format test to use
reporter.
Remove deprecated metadata.rb code
Remove deprecation notice for old supports syntax.
Deprecate metadata.rb from source_reader
Remove rubocop disables as they are no longer required for this code block.
Remove deprecated legacy metadata.rb mock profiles.
Remove deprecated metadata.rb profile tests.
Remove deprecated yumrepo test.

* Allow inspec-3.0 branch to be tested.
* Allow appveyor to test inspec-3.0 branch
* Change runner tests to use reporter rather than format.
Remove deprecated `supports: linux` tests.

* Remove skip from inherited profiles from showing up in reporting (breaking change) (#3332)

* Skip loading dependency profiles if they are unsupported on the current
platform.

Skip loading dependencies if they are unsupported on the current
platform.

Wrap our log and next in a conditional checking if the platform is
supported.

Change a `if !` into a `unless`

Check if the backend is a Train Mock Connection and if so say that the
profile does support the platform.

While iterating through tests being loaded skip when the platform is
unsupported.

We now log a WARN when a profile is skipped due to unsupported platform,
so lets check that.

Modified existing test to log that there are 0 skipped tests, instead of
2.

Add functional test that loads profile-support-skip with a json reporter
to check that our controls are not loaded and that stderr contains our
warning.

* Rather than iterating through each test return before recursion if the platform is
unsupported.

* Resolve tests using a supported platform different from testing platform

Add a control to `test/unit/mock/profiles/complete-profile` that would
work on any OS with a Internet connection. This allows the profile
to execute on any OS with success. `filesystem_spec.rb` was a control
that would only work on Linux and some BSD's.

We want profile tests to consistently work across development and testing
platforms, and not get 'skipped' in some cases.  Travis-CI tests on Linux,
Inspec Dev team uses Linux and MacOS, Appveyor tests on Windows

Also Updated `file_provider_test.rb` for `complete-profile` content changes.

If you `MockLoader.load_profile` on a unsupported platform you might not
hit the usual skip. Lets handle situations where the tests array in
Profile#load_checks_params could be nil.

* Use safe navigation rather than checking if tests is nil.
Update tests to point to unsupported_inspec and account for WARN changes.
Make unsupported_inspec profile support os-family 'unsupported_inspec'

* Fix skip bug when using include/require controls. (#3487)

* Fix skip bug when using include/require controls.
* fix test and feedback.

* Remove need for UUID detection for Automate report (#3507)
* Add json metadata for skipped profiles (#3495)

* Add skip metadata to json reports
* Unify skip messages.
* Update with status field.
* Add testing.
* Fix tests.
* lint
* Add skip exit codes for profile skips.
* Update website for 3.0 launch

Add `plugins` to sidebar.
Change 2.0 -> 3.0 in slim files.
Update 3.0 features list.
* Fix comments
* Update float to numeric.
* Change Float to numeric.
* updated feature list and impact doc
* Change "What's new in InSpec 3.0" -> "Announcing InSpec 3.0"
* Bump VERSION to 3.0.0 (#3511)

* Remove 3.0 testing checks.

* Fix azure link.
2018-10-15 18:25:27 -04:00
..
aws Change Inspec to InSpec where appropriate (#3494) 2018-10-15 12:09:46 -04:00
azure Change Inspec to InSpec where appropriate (#3494) 2018-10-15 12:09:46 -04:00
aide_conf.rb Update core resources with filtertable API changes (#3117) 2018-06-26 15:14:21 -04:00
apache.rb Inspec 3.0 (#3512) 2018-10-15 18:25:27 -04:00
apache_conf.rb Allow apache_conf include files to be empty (#3294) 2018-08-16 20:22:55 -04:00
apt.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
audit_policy.rb Correct support platform for audit_policy (#2850) 2018-03-21 13:53:24 -04:00
auditd.rb Update core resources with filtertable API changes (#3117) 2018-06-26 15:14:21 -04:00
auditd_conf.rb Unify method in which file content is read across all resources (#2359) 2018-03-22 08:25:45 -04:00
bash.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
bond.rb Unify method in which file content is read across all resources (#2359) 2018-03-22 08:25:45 -04:00
bridge.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
chocolatey_package.rb Change Inspec to InSpec where appropriate (#3494) 2018-10-15 12:09:46 -04:00
command.rb command resource: Allow redacting #to_s (#3207) 2018-07-16 08:20:57 -04:00
cpan.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
cran.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
crontab.rb Update core resources with filtertable API changes (#3117) 2018-06-26 15:14:21 -04:00
csv.rb Remove supports for generic resources. (#2848) 2018-03-21 10:45:23 -07:00
dh_params.rb Unify method in which file content is read across all resources (#2359) 2018-03-22 08:25:45 -04:00
directory.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
docker.rb Adding docker plugin support (#3074) 2018-08-09 08:20:32 -04:00
docker_container.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
docker_image.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
docker_object.rb Docker Swarm service resource (#2456) 2018-01-23 12:30:14 -08:00
docker_plugin.rb Adding docker plugin support (#3074) 2018-08-09 08:20:32 -04:00
docker_service.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
elasticsearch.rb Update core resources with filtertable API changes (#3117) 2018-06-26 15:14:21 -04:00
etc_fstab.rb Update core resources with filtertable API changes (#3117) 2018-06-26 15:14:21 -04:00
etc_group.rb Fix case where res is nil in etc_group for inspec check (#2984) 2018-04-26 12:29:12 -04:00
etc_hosts.rb Update core resources with filtertable API changes (#3117) 2018-06-26 15:14:21 -04:00
etc_hosts_allow_deny.rb Update core resources with filtertable API changes (#3117) 2018-06-26 15:14:21 -04:00
file.rb Add support for shallow link paths (#3168) 2018-06-26 07:47:00 -04:00
filesystem.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
firewalld.rb Update core resources with filtertable API changes (#3117) 2018-06-26 15:14:21 -04:00
gem.rb adding versions to the gem resource (#3398) 2018-09-18 13:17:10 -04:00
groups.rb Update core resources with filtertable API changes (#3117) 2018-06-26 15:14:21 -04:00
grub_conf.rb Unify method in which file content is read across all resources (#2359) 2018-03-22 08:25:45 -04:00
host.rb Host resource: use bash over netcat in Linux (#2607) 2018-03-07 08:39:27 -05:00
http.rb Mitigate trivial warning output on test (#2872) 2018-03-28 11:22:01 -04:00
iis_app.rb Remove os checks from initialize as this is provided by platform (#2797) 2018-03-08 16:01:50 -05:00
iis_app_pool.rb add iis_app_pool resource (#2400) 2018-08-09 09:19:49 -04:00
iis_site.rb handle nil properties in iis_site (#3040) 2018-05-31 13:36:15 -04:00
inetd_conf.rb Unify method in which file content is read across all resources (#2359) 2018-03-22 08:25:45 -04:00
ini.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
interface.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
iptables.rb iptables resource: Add support for other bin paths (#2783) 2018-03-06 08:56:15 -05:00
json.rb Makes JSON resource enumerable, despite method_missing magic (#2910) 2018-04-26 11:54:16 -04:00
kernel_module.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
kernel_parameter.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
key_rsa.rb Require a key attribute for the key_rsa resource (#2891) 2018-04-12 16:15:04 -04:00
limits_conf.rb Unify method in which file content is read across all resources (#2359) 2018-03-22 08:25:45 -04:00
login_def.rb Unify method in which file content is read across all resources (#2359) 2018-03-22 08:25:45 -04:00
mount.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
mssql_session.rb Added db_name flag (#3383) 2018-09-17 20:59:31 -04:00
mysql.rb Added desc to steer people to correct resource (#2908) 2018-04-03 11:09:13 -04:00
mysql_conf.rb Unify method in which file content is read across all resources (#2359) 2018-03-22 08:25:45 -04:00
mysql_session.rb Add windows functional tests (#3385) 2018-09-12 18:04:16 -04:00
nginx.rb Mitigate trivial warning output on test (#2872) 2018-03-28 11:22:01 -04:00
nginx_conf.rb Update core resources with filtertable API changes (#3117) 2018-06-26 15:14:21 -04:00
npm.rb support local npm package searches (#3105) 2018-06-01 10:52:46 +02:00
ntp_conf.rb Unify method in which file content is read across all resources (#2359) 2018-03-22 08:25:45 -04:00
oneget.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
oracledb_session.rb A number of bug fixes and new features for oracledb_session resource (#3170) 2018-07-09 13:57:45 -04:00
os.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
os_env.rb extend os_env resource to select between Machine and User vars on Windows (#2945) 2018-04-26 15:10:14 -04:00
package.rb Fixes #3480 (#3483) 2018-10-10 09:20:33 -04:00
packages.rb Update core resources with filtertable API changes (#3117) 2018-06-26 15:14:21 -04:00
parse_config.rb Unify method in which file content is read across all resources (#2359) 2018-03-22 08:25:45 -04:00
passwd.rb Update core resources with filtertable API changes (#3117) 2018-06-26 15:14:21 -04:00
pip.rb Pw/pip windows bug (#2883) 2018-03-29 13:01:59 -04:00
platform.rb Update inspec detect to support APIs/Families (#2634) 2018-02-14 15:06:39 -05:00
port.rb Support the Busybox variant of netstat in the port resource (#3425) 2018-09-25 22:40:05 -04:00
postgres.rb Added desc to steer people to correct resource (#2908) 2018-04-03 11:09:13 -04:00
postgres_conf.rb Unify method in which file content is read across all resources (#2359) 2018-03-22 08:25:45 -04:00
postgres_hba_conf.rb Update core resources with filtertable API changes (#3117) 2018-06-26 15:14:21 -04:00
postgres_ident_conf.rb Update core resources with filtertable API changes (#3117) 2018-06-26 15:14:21 -04:00
postgres_session.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
powershell.rb powershell resource: Add support line for Unix (#2952) 2018-04-12 17:57:56 -04:00
processes.rb Inspec 3.0 (#3512) 2018-10-15 18:25:27 -04:00
rabbitmq_conf.rb Unify method in which file content is read across all resources (#2359) 2018-03-22 08:25:45 -04:00
registry_key.rb registry_key resource was returning an incorrect value (#2871) 2018-03-26 15:44:31 -04:00
security_policy.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
service.rb Add cloudlinux under redhat family (#2935) 2018-08-22 15:58:38 -04:00
shadow.rb Add list properties back to shadow (#3140) 2018-06-14 13:42:00 -04:00
ssh_conf.rb Unify method in which file content is read across all resources (#2359) 2018-03-22 08:25:45 -04:00
ssl.rb Update core resources with filtertable API changes (#3117) 2018-06-26 15:14:21 -04:00
sys_info.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
toml.rb json resource (et. al.): allow inspec check to succeed when using command (#2317) 2017-11-27 11:13:02 -05:00
users.rb Update core resources with filtertable API changes (#3117) 2018-06-26 15:14:21 -04:00
vbscript.rb Remove os checks from initialize as this is provided by platform (#2797) 2018-03-08 16:01:50 -05:00
virtualization.rb Since /proc/xen is an empty dir in Amazon Linux, inspec falsely detects docker instances as platform='xen' (#3243) 2018-07-26 14:13:33 -04:00
windows_feature.rb windows_feature resource: Add DISM support (#3224) 2018-07-25 16:00:06 -04:00
windows_hotfix.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
windows_task.rb Remove os checks from initialize as this is provided by platform (#2797) 2018-03-08 16:01:50 -05:00
wmi.rb Remove os checks from initialize as this is provided by platform (#2797) 2018-03-08 16:01:50 -05:00
x509_certificate.rb Unify method in which file content is read across all resources (#2359) 2018-03-22 08:25:45 -04:00
xinetd.rb Update core resources with filtertable API changes (#3117) 2018-06-26 15:14:21 -04:00
xml.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
yaml.rb Remove supports for generic resources. (#2848) 2018-03-21 10:45:23 -07:00
yum.rb Inspec 3.0 (#3512) 2018-10-15 18:25:27 -04:00
zfs_dataset.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00
zfs_pool.rb Add correct supports platform to resources. (#2674) 2018-02-19 15:26:49 +01:00