inspec/test/unit/resources
Bryan McLellan dada8ea074 Add the generic 'darwin' to the service resource
macOS 11 Big Sur will be released later this year. Current beta versions
return 10.16 as the version, but the product name has changed from 'Mac
OS X' to 'macOS'. Train probably needs to be modified to deprecate
'mac_os_x' as a platform in favor of 'macos' but that would be a
significant downstream change. Train does fall back to 'darwin' on macOS
10.16, so by adding darwin to the list of platform names for the service
resource we are able to work around this for the moment.

This is the only location where mac_os_x is currently being used in
InSpec. Because we're in a case statement on platform rather than the
more generic platform family, we can't simply remove mac_os_x in favor
of darwin.

Signed-off-by: Bryan McLellan <btm@loftninjas.org>
2020-07-02 09:36:27 -04:00
..
aide_conf_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
apache_conf_test.rb Fix platform on apache_conf to include all unix. 2020-01-28 14:53:37 -08:00
apt_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
audit_policy_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
auditd_conf_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
auditd_test.rb Fix deprecation warning on auditd test 2020-03-11 17:24:39 +00:00
aws_billing_report_test.rb Corresponding fixes for the move from test/unit/mock to test/fixtures. 2019-11-08 19:20:12 -08:00
aws_billing_reports_test.rb Corresponding fixes for the move from test/unit/mock to test/fixtures. 2019-11-08 19:20:12 -08:00
aws_cloudtrail_trail_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_cloudtrail_trails_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
aws_cloudwatch_alarm_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_cloudwatch_log_metric_filter_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_config_delivery_channel_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_config_recorder_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_ebs_volume_test.rb chefstyle -a cleanup 2019-06-11 18:52:38 -07:00
aws_ebs_volumes_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
aws_ec2_instance_test.rb chefstyle -a cleanup 2019-06-11 18:52:38 -07:00
aws_ec2_instances_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
aws_ecs_cluster_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_eks_cluster_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_elb_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_elbs_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_flow_log_test.rb Switched chefstyle back to Layout/AlignArguments=with_first_argument. 2019-11-08 12:57:43 -08:00
aws_iam_access_key_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
aws_iam_access_keys_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_iam_group_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
aws_iam_groups_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
aws_iam_password_policy_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
aws_iam_policies_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
aws_iam_policy_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_iam_role_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_iam_root_user_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
aws_iam_user_test.rb Tweak for aws resources to determine if they're still under test. 2020-02-03 14:41:37 -08:00
aws_iam_users_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_kms_key_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_kms_keys_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
aws_rds_instance_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
aws_route_table_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_route_tables_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_s3_bucket_object_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_s3_bucket_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_s3_buckets_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
aws_security_group_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_security_groups_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
aws_sns_subscription_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_sns_topic_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
aws_sns_topics_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_sqs_queue_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
aws_subnet_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
aws_subnets_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
aws_vpc_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
aws_vpcs_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
bash_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
bond_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
bridge_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
chocolatey_package_test.rb Um. No. 2019-07-24 18:06:25 -07:00
command_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
cpan_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
cran_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
crontab_test.rb Minor test improvements 2020-02-03 13:18:56 -08:00
csv_test.rb chefstyle -a cleanup 2019-06-11 18:52:38 -07:00
dh_params_test.rb chefstyle -a cleanup 2019-06-11 18:52:38 -07:00
docker_container_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
docker_image_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
docker_plugin_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
docker_service_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
docker_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
elasticsearch_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
etc_fstab_test.rb chefstyle -a cleanup 2019-06-11 18:52:38 -07:00
etc_group_test.rb Automated chefstyle application for rubocop 0.72 compatibility 2019-07-03 17:24:41 -04:00
etc_hosts_allow_deny_test.rb Add #to_s to etc_hosts_allow, and add tests 2019-10-24 12:07:26 -07:00
etc_hosts_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
file_test.rb Corresponding fixes for the move from test/unit/mock to test/fixtures. 2019-11-08 19:20:12 -08:00
filesystem_test.rb Fix up platform on filesystem resource. 2020-01-27 15:34:33 -08:00
firewalld_test.rb chefstyle -a cleanup 2019-06-11 18:52:38 -07:00
gem_test.rb chefstyle -a cleanup 2019-06-11 18:52:38 -07:00
group_test.rb Add the generic 'darwin' to the service resource 2020-07-02 09:36:27 -04:00
groups_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
grub_conf_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
host_test.rb Add the generic 'darwin' to the service resource 2020-07-02 09:36:27 -04:00
http_test.rb Address and fix all our ruby 2.7 warnings & errors. 2019-11-27 15:42:52 -08:00
iis_app_pool_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
iis_site_test.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
inetd_conf_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
ini_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
interface_test.rb Add the generic 'darwin' to the service resource 2020-07-02 09:36:27 -04:00
interfaces_test.rb Add an heuristic-based IP lookup property 2020-06-18 15:37:19 -04:00
ip6tables_test.rb Add ip6tables resource 2019-06-24 17:01:34 -07:00
iptables_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
json_test.rb Address and fix all our ruby 2.7 warnings & errors. 2019-11-27 15:42:52 -08:00
kernel_module_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
kernel_parameter_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
key_rsa_test.rb chefstyle -a cleanup 2019-06-11 18:52:38 -07:00
ksh_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
limits_conf_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
login_def_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
mount_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
mssql_session_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
mysql_conf_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
mysql_session_test.rb Switched chefstyle back to Layout/AlignArguments=with_first_argument. 2019-11-08 12:57:43 -08:00
nginx_conf_test.rb nginx_conf: Fix commented/empty file parsing 2019-06-17 21:57:26 -08:00
nginx_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
npm_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
ntp_conf_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
oneget_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
oracledb_session_test.rb update unit test 2020-02-12 18:17:04 +00:00
os_env_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
os_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
package_test.rb Add the generic 'darwin' to the service resource 2020-07-02 09:36:27 -04:00
packages_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
parse_config_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
passwd_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
pip_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
platform_test.rb Overhaul Platform#supported? 2020-02-03 13:18:56 -08:00
port_linuxports_test.rb Switched chefstyle back to Layout/AlignArguments=with_first_argument. 2019-11-08 12:57:43 -08:00
port_test.rb Add the generic 'darwin' to the service resource 2020-07-02 09:36:27 -04:00
postfix_conf_test.rb Fix for postfix_conf when using a non-standard config location 2019-09-03 15:28:44 -07:00
postgres_conf_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
postgres_hba_conf_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
postgres_ident_conf_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
postgres_session_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
powershell_test.rb Add the generic 'darwin' to the service resource 2020-07-02 09:36:27 -04:00
processes_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
rabbitmq_conf_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
registry_key_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
security_identifier_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
security_policy_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
service_test.rb Add the generic 'darwin' to the service resource 2020-07-02 09:36:27 -04:00
shadow_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
ssh_conf_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
ssl_test.rb Update sslshake test for sslshake 1.13.1 2020-06-18 11:25:35 +01:00
sys_info_test.rb Add the generic 'darwin' to the service resource 2020-07-02 09:36:27 -04:00
toml_test.rb chefstyle -a cleanup 2019-06-11 18:52:38 -07:00
user_test.rb Add the generic 'darwin' to the service resource 2020-07-02 09:36:27 -04:00
vbscript_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
virtualization_test.rb Improve virtualization resource 2020-03-11 17:46:32 +01:00
windows_feature_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
windows_hotfix_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
windows_task_test.rb Appease RuboCop 2019-07-01 22:45:04 -07:00
wmi_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
x509_certificate_test.rb Add: content option for x509_certificate 2020-01-22 13:49:35 +05:30
xinetd_conf_test.rb chefstyle -a cleanup 2019-06-11 18:52:38 -07:00
xml_test.rb chefstyle -a cleanup 2019-06-11 18:52:38 -07:00
yaml_test.rb chefstyle -a cleanup 2019-06-11 18:52:38 -07:00
yum_test.rb Corresponding fixes for the move from test/unit/mock to test/fixtures. 2019-11-08 19:20:12 -08:00
zfs_dataset_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
zfs_pool_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00