inspec/test/unit/resources
Keith Walters c2bd0616fe Allow http resource to follow redirects
By specifying a `max_redirects` attribute, the `http` resource worker
will follow any HTTP Redirect response (301, 302, etc...) up to the
limit defined by this attribute. For a local worker, exceeding that
limit will raise a `FaradayMiddleware::RedirectLimitReached` exception.
For a remote worker, the curl command will exit without populating the
`status` and `body` properties.

Signed-off-by: Keith Walters <keith.walters@cattywamp.us>
2019-03-16 20:54:52 -04:00
..
aide_conf_test.rb aide_conf resource: test configuration of the AIDE file integrity tool (#2063) 2017-08-25 22:13:43 +02:00
apache_conf_test.rb apache_conf resource: Strip quotes from values (#3142) 2018-06-26 07:48:48 -04:00
apt_test.rb Remove test that uses deprecated ppa resource 2019-01-22 13:09:17 -08:00
audit_policy_test.rb rename vulcanosec -> inspec 2015-10-26 12:34:15 +01:00
auditd_conf_test.rb rename vulcanosec -> inspec 2015-10-26 12:34:15 +01:00
auditd_test.rb auditd resource: test active auditd configuration against the audit daemon (#2133) 2017-09-18 21:47:18 +02:00
aws_billing_backend.rb Replace most mentions of attribute with input in test/ 2019-02-20 20:41:10 -05:00
aws_billing_report_test.rb Add resources for aws_billing_report and aws_billing_reports. (#2838) 2019-01-09 16:06:48 -08:00
aws_billing_reports_test.rb Add resources for aws_billing_report and aws_billing_reports. (#2838) 2019-01-09 16:06:48 -08:00
aws_cloudtrail_trail_test.rb aws_cloudtrail_trail feature: test how many days ago logs were delivered (#2887) 2018-04-06 14:04:57 -04:00
aws_cloudtrail_trails_test.rb Merge branch 'aws-merge-prep' into aws-merge 2018-02-08 10:09:57 -05:00
aws_cloudwatch_alarm_test.rb Merge branch 'aws-merge-prep' into aws-merge 2018-02-08 10:09:57 -05:00
aws_cloudwatch_log_metric_filter_test.rb Merge branch 'aws-merge-prep' into aws-merge 2018-02-08 10:09:57 -05:00
aws_config_delivery_channel_test.rb Make names for AWS Config service objects optional (#2928) 2018-04-19 13:08:16 -04:00
aws_config_recorder_test.rb Make names for AWS Config service objects optional (#2928) 2018-04-19 13:08:16 -04:00
aws_ebs_volume_test.rb Add new resource: aws_ebs_volume (#3381) 2018-09-21 11:49:28 -04:00
aws_ebs_volumes_test.rb Add new resource: aws_ebs_volume (#3381) 2018-09-21 11:49:28 -04:00
aws_ec2_instance_test.rb Rely on unit test helper to load resources, not individual AWS tests 2018-02-07 12:09:08 -05:00
aws_ec2_instances_test.rb Skeletal aws_ec2_instances resource (#3023) 2018-05-10 14:54:33 -04:00
aws_ecs_cluster_test.rb Add new resource: aws_ecs_cluster (#3213) 2018-08-09 09:19:27 -04:00
aws_eks_cluster_test.rb Add aws_eks_cluster resource (#3582) 2018-11-27 16:54:47 -05:00
aws_elb_test.rb Fix AWS tests found during ChefStyle spike 2019-01-21 13:05:46 -08:00
aws_elbs_test.rb Add aws_elb and aws_elbs resources (#3079) 2018-06-07 15:06:05 -04:00
aws_flow_log_test.rb Adds a aws_flow_log resource with unit and integration testing. (#2906) 2018-06-07 14:41:46 -04:00
aws_iam_access_key_test.rb Merge branch 'release-2.0' into aws-merge-release-merge-try 2018-02-08 10:44:11 -05:00
aws_iam_access_keys_test.rb Merge branch 'aws-merge-prep' into aws-merge 2018-02-08 10:09:57 -05:00
aws_iam_group_test.rb Fix AWS tests found during ChefStyle spike 2019-01-21 13:05:46 -08:00
aws_iam_groups_test.rb Add common methods to FilterTable automatically (#3104) 2018-06-05 22:35:09 -04:00
aws_iam_password_policy_test.rb Improvements and matcher renaming on aws_iam_password_policy (#2638) 2018-02-14 15:59:57 -05:00
aws_iam_policies_test.rb Merge branch 'aws-merge-prep' into aws-merge 2018-02-08 10:09:57 -05:00
aws_iam_policy_test.rb Accept symbols and downcased criteria in aws_iam_policy have_statement matcher (#3129) 2018-06-21 14:19:56 -04:00
aws_iam_role_test.rb Merge branch 'aws-merge-prep' into aws-merge 2018-02-08 10:09:57 -05:00
aws_iam_root_user_test.rb Add AWS hardware MFA matcher (#2892) 2018-04-03 09:13:52 -04:00
aws_iam_user_test.rb Change Inspec to InSpec where appropriate (#3494) 2018-10-15 12:09:46 -04:00
aws_iam_users_test.rb Inline and attached policies for aws_iam_user and aws_iam_users (#2947) 2018-04-17 13:22:28 -04:00
aws_kms_key_test.rb New Skeletal Resource aws_kms_key (#2746) 2018-03-23 08:29:45 -04:00
aws_kms_keys_test.rb Merge branch 'aws-merge-prep' into aws-merge 2018-02-08 10:09:57 -05:00
aws_rds_instance_test.rb Porting over the singular rds resource from the aws-inspec git repo (#2866) 2018-03-28 11:23:44 -04:00
aws_route_table_test.rb Fix AWS tests found during ChefStyle spike 2019-01-21 13:05:46 -08:00
aws_route_tables_test.rb Plugins: Add support for 'bundles' migration (#3384) 2018-09-18 00:00:54 -04:00
aws_s3_bucket_object_test.rb Skelatal resource: aws_s3_bucket_object (#2620) 2018-03-19 13:10:17 -04:00
aws_s3_bucket_test.rb #2810 - Add check if aws s3 bucket is encrypted. (#2937) 2018-05-03 09:55:29 -04:00
aws_s3_buckets_test.rb New Skeletal Resource aws_s3_buckets (#2653) 2018-04-05 12:49:30 -04:00
aws_security_group_test.rb Fix AWS tests found during ChefStyle spike 2019-01-21 13:05:46 -08:00
aws_security_groups_test.rb Merge branch 'aws-core-onramp' into aws-merge 2018-02-09 00:56:28 -05:00
aws_sns_subscription_test.rb New Skeletal Resource aws_sns_subscription (#2697) 2018-03-22 13:38:40 -04:00
aws_sns_topic_test.rb Merge branch 'aws-merge-prep' into aws-merge 2018-02-08 10:09:57 -05:00
aws_sns_topics_test.rb New Skeletal Resource aws_sns_topics (#2696) 2018-03-22 12:55:23 -04:00
aws_sqs_queue_test.rb aws_sqs_queue - new resource (#3674) 2018-12-20 14:33:21 -05:00
aws_subnet_test.rb Merge branch 'aws-core-onramp' into aws-merge 2018-02-09 00:56:28 -05:00
aws_subnets_test.rb Merge branch 'aws-core-onramp' into aws-merge 2018-02-09 00:56:28 -05:00
aws_vpc_test.rb Add 17 hexadecimal characters support aws_vpc (#3518) (#3564) 2018-11-05 10:01:16 -05:00
aws_vpcs_test.rb Basic fields for aws_vpcs (#2930) 2018-04-12 15:48:55 -04:00
bash_test.rb remodel bash and shell wrappers 2016-04-18 11:48:42 -04:00
bond_test.rb Add bonding mode matcher to bond resource (#2414) 2017-12-22 15:02:40 +01:00
bridge_test.rb Update minitest nil assertions (#1916) 2017-06-11 12:16:10 +02:00
chocolatey_package_test.rb Remove nil check in chocolatey_package test 2019-01-22 13:09:17 -08:00
command_test.rb command resource: Allow redacting #to_s (#3207) 2018-07-16 08:20:57 -04:00
cpan_test.rb cpan resource: check for Perl module installation (#2254) 2017-10-25 16:01:26 +02:00
cran_test.rb cran resource: check for R module installation (#2255) 2017-10-25 16:14:29 +02:00
crontab_test.rb Ensure resources fail that target something that isn't supported (#3231) 2018-07-19 08:16:54 -04:00
csv_test.rb Fix ObjectTraverser when accessing array values 2017-03-15 11:35:55 +01:00
dh_params_test.rb Fix #1617 Add dh_params resource (#1618) 2017-04-04 10:34:09 -04:00
docker_container_test.rb Fix labels on Docker containers (#3673) 2018-12-20 12:31:13 -05:00
docker_image_test.rb docker_image resource: properly handle registries in image strings (#2356) 2017-12-01 10:24:15 +01:00
docker_plugin_test.rb Adding docker plugin support (#3074) 2018-08-09 08:20:32 -04:00
docker_service_test.rb Docker Swarm service resource (#2456) 2018-01-23 12:30:14 -08:00
docker_test.rb Fix labels on Docker containers (#3673) 2018-12-20 12:31:13 -05:00
elasticsearch_test.rb new resource: elasticsearch resource, test cluster/node state (#2261) 2017-10-20 17:28:48 -04:00
etc_fstab_test.rb etc_fstab resource: test contents of the /etc/fstab file (#2064) 2017-09-11 15:55:03 +02:00
etc_group_test.rb Fix gid filtering for etc_group resource (#2297) 2017-11-14 05:03:50 +01:00
etc_hosts_allow_deny_test.rb Replace most mentions of attribute with input in test/ 2019-02-20 20:41:10 -05:00
etc_hosts_test.rb Revise /etc/hosts for correctness and clarity (#2863) 2018-03-22 09:58:22 -07:00
file_test.rb Bumping train to 0.29.1 (#2306) 2017-11-13 16:02:27 -05:00
filesystem_test.rb Rename free to free_kb 2019-02-06 14:01:04 -05:00
firewalld_test.rb firewalld resource: prepend rule string only when necessary (#2430) 2018-01-16 14:20:58 -08:00
gem_test.rb Fix gem tests from recent merge. (#3409) 2018-09-18 15:00:26 -04:00
group_test.rb Add missing tests for groups resource, document members property, and assorted fixes. (#3467) 2018-10-18 16:48:30 -04:00
groups_test.rb Add missing tests for groups resource, document members property, and assorted fixes. (#3467) 2018-10-18 16:48:30 -04:00
grub_conf_test.rb grub_conf resource: fix menuentry detection (#2408) 2018-01-18 13:20:48 -08:00
host_test.rb Host resource: use bash over netcat in Linux (#2607) 2018-03-07 08:39:27 -05:00
http_test.rb Allow http resource to follow redirects 2019-03-16 20:54:52 -04:00
iis_app_pool_test.rb Fixes unit test for to_s of iis_app_pool 2019-01-22 15:08:25 -08:00
iis_site_test.rb Update iis_site bindingInformation construction and add tests. (#3490) (#3492) 2018-11-08 13:42:59 -05:00
inetd_conf_test.rb Update minitest nil assertions (#1916) 2017-06-11 12:16:10 +02:00
ini_test.rb implement unit tests for ini resource 2015-11-24 16:46:17 +01:00
interface_test.rb Update minitest nil assertions (#1916) 2017-06-11 12:16:10 +02:00
iptables_test.rb iptables unit test: add comment examples 2016-02-10 09:57:32 +01:00
json_test.rb Makes JSON resource enumerable, despite method_missing magic (#2910) 2018-04-26 11:54:16 -04:00
kernel_module_test.rb kernel_module resource: added blacklisting, enabled, disabled, docs and unit tests (#1798) 2017-07-05 11:41:44 +02:00
kernel_parameter_test.rb rename vulcanosec -> inspec 2015-10-26 12:34:15 +01:00
key_rsa_test.rb refactor x509 resources and rsa key 2017-03-22 11:44:32 +01:00
ksh_test.rb ksh support (#3533) 2018-10-23 09:16:24 -04:00
limits_conf_test.rb rename vulcanosec -> inspec 2015-10-26 12:34:15 +01:00
login_def_test.rb Update minitest nil assertions (#1916) 2017-06-11 12:16:10 +02:00
mount_test.rb mount resource: fix for Device-/Sharenames and Mountpoints including … (#2257) 2017-11-01 12:01:21 +01:00
mssql_session_test.rb mssql_session default port and local_mode (#3031) 2018-05-31 13:47:28 -04:00
mysql_conf_test.rb rename vulcanosec -> inspec 2015-10-26 12:34:15 +01:00
mysql_session_test.rb quote password when generating mysql command string (#2685) 2018-03-09 08:41:21 -05:00
nginx_conf_test.rb Mock missing_file in NGINX resource tests 2019-01-22 13:09:17 -08:00
nginx_test.rb nginx resource: audit the nginx binary and how it was compiled (#1958) 2017-09-13 08:15:09 -04:00
npm_test.rb support local npm package searches (#3105) 2018-06-01 10:52:46 +02:00
ntp_conf_test.rb rename vulcanosec -> inspec 2015-10-26 12:34:15 +01:00
oneget_test.rb Update minitest nil assertions (#1916) 2017-06-11 12:16:10 +02:00
oracledb_session_test.rb oracle_session and mssql_session improvement (#1857) 2017-06-29 11:01:32 -04:00
os_env_test.rb Add Windows support to the os_env resource 2015-11-19 15:41:00 +01:00
os_test.rb Some further tests for Mint 2016-10-08 23:34:56 +02:00
package_test.rb alpine resource: Fix small style issues (#3238) 2018-07-25 15:57:51 -04:00
packages_test.rb packages resource: Add architectures support (#2469) 2018-01-25 23:57:34 -08:00
parse_config_test.rb rename SimpleConfig / parse_config / parse_config_file options 2017-04-26 23:18:40 +02:00
passwd_test.rb Remove deprecations for InSpec 2.0 (#2506) 2018-02-08 11:05:21 +01:00
pip_test.rb pip resource: support non-default pip locations, such as virtualenvs (#2097) 2017-08-30 22:04:22 +02:00
platform_test.rb Set backend cache to defualt true. (#2827) 2018-03-15 15:08:34 -04:00
port_test.rb Support the Busybox variant of netstat in the port resource (#3425) 2018-09-25 22:40:05 -04:00
postgres_conf_test.rb Fixes the postgres_conf parsing of complex paramerters (#1938) 2017-06-23 08:31:27 -07:00
postgres_hba_conf_test.rb Replace most mentions of attribute with input in test/ 2019-02-20 20:41:10 -05:00
postgres_ident_conf_test.rb New postgres_ident_conf resource (#1963) 2017-07-03 20:01:40 +02:00
postgres_session_test.rb updated postgres_session resource properly escape queries (#1939) 2017-07-03 08:10:27 +02:00
powershell_test.rb powershell resource: Add support other OSs (#2894) 2018-03-29 11:57:15 -04:00
processes_test.rb Replace most mentions of attribute with input in test/ 2019-02-20 20:41:10 -05:00
rabbitmq_conf_test.rb add rabbitmq config resource 2017-04-12 20:51:12 +02:00
registry_key_test.rb Support array syntax for registry_key resource (#2160) 2017-09-19 18:26:53 +02:00
security_identifier_test.rb New resource to work with Windows security identifiers (SIDs) (#3405) 2018-10-19 09:01:00 -04:00
security_policy_test.rb Update security_policy resource to return Names, not SIDs (#2462) 2018-01-23 12:31:57 -08:00
service_test.rb Add cloudlinux under redhat family (#2935) 2018-08-22 15:58:38 -04:00
shadow_test.rb Remove deprecated methods from shadow test 2019-01-22 13:09:17 -08:00
ssh_conf_test.rb Unify method in which file content is read across all resources (#2359) 2018-03-22 08:25:45 -04:00
ssl_test.rb Fix SSL tests by allowing multiple cipher counts 2019-01-21 15:02:58 -08:00
sys_info_test.rb add unit tests 2016-09-09 12:43:03 +02:00
toml_test.rb Adding toml resource (#1924) 2017-06-15 16:54:12 -04:00
user_test.rb Wrap deprecated ServerSpec matchers in procs 2019-01-22 13:09:17 -08:00
vbscript_test.rb fix powershell based unit tests 2016-09-05 13:36:48 +02:00
virtualization_test.rb Mock files used for virtualization resource tests 2019-01-22 13:09:17 -08:00
windows_feature_test.rb windows_feature resource: Add DISM support (#3224) 2018-07-25 16:00:06 -04:00
windows_hotfix_test.rb windows_hotfix resource: test whether a Windows HotFix is installed (#2178) 2017-09-25 19:09:22 +02:00
windows_task_test.rb Added unit tests, only took most of the night :) 2016-11-20 20:07:59 +00:00
wmi_test.rb Ensure resources fail that target something that isn't supported (#3231) 2018-07-19 08:16:54 -04:00
x509_certificate_test.rb Change Inspec to InSpec where appropriate (#3494) 2018-10-15 12:09:46 -04:00
xinetd_test.rb derive xinetd protocol from socket_type when not defined in the config file 2017-02-01 11:19:24 +00:00
xml_test.rb Added xml resource support for ints, bools, and string responses (#3583) 2018-11-08 12:47:18 -05:00
yaml_test.rb Support symbol keys in ObjectTraverser (#2221) 2017-10-06 19:24:31 +02:00
yum_test.rb Inspec 3.0 (#3512) 2018-10-15 18:25:27 -04:00
zfs_dataset_test.rb Add FreeBSD support for ZFS datasets and pools 2017-02-22 10:29:49 -07:00
zfs_pool_test.rb Add FreeBSD support for ZFS datasets and pools 2017-02-22 10:29:49 -07:00