inspec/test/unit/resources
Clinton Wolfe 2955aabf7f DRY up AWS resource implementation and test backend implementations (#121)
* Standardize requires in unit tests

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Standardize requires in resources

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Move AWS connection hook into non-resource library area

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Add an AWS resource mixin, pushing constructor out to it

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Push resource param name recognition into mixin

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Push exists predicate up to mixin

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Rename base.rb to be resource_mixin for clarity

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Separate the backend from its factory, and push it out into a class mixin

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Push BackendFactory up into the resource mixin

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* De-linting

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Remove aws_conn require from LMF and CloudWatch Alarm filters

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Use resource mixin for Cloudwatch Alarm

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Rework LMF to use the resource mixin

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Rubocop.

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Remove SDK load from connection.rb; that happens in aws.rb now

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Mixin should default to allowing empty resource params

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Update LMF to enforce params being required

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2017-12-04 19:32:13 +01:00
..
aws_cloudwatch_alarm_test.rb DRY up AWS resource implementation and test backend implementations (#121) 2017-12-04 19:32:13 +01:00
aws_cloudwatch_log_metric_filter_test.rb DRY up AWS resource implementation and test backend implementations (#121) 2017-12-04 19:32:13 +01:00
aws_ec2_instance_test.rb Add has_roles to aws_ec2_instance (#90) 2017-10-26 15:56:32 -04:00
aws_iam_access_key_test.rb DRY up AWS resource implementation and test backend implementations (#121) 2017-12-04 19:32:13 +01:00
aws_iam_access_keys_test.rb Add aws_iam_access_keys resource (#112) 2017-11-22 14:17:36 -05:00
aws_iam_password_policy_test.rb DRY up AWS resource implementation and test backend implementations (#121) 2017-12-04 19:32:13 +01:00
aws_iam_root_user_test.rb Add has_mfa_enabled? to aws_iam_root_account (#80) 2017-08-16 11:53:44 +02:00
aws_iam_user_details_provider_test.rb DRY up AWS resource implementation and test backend implementations (#121) 2017-12-04 19:32:13 +01:00
aws_iam_user_provider_test.rb DRY up AWS resource implementation and test backend implementations (#121) 2017-12-04 19:32:13 +01:00
aws_iam_user_test.rb DRY up AWS resource implementation and test backend implementations (#121) 2017-12-04 19:32:13 +01:00
aws_iam_users_test.rb DRY up AWS resource implementation and test backend implementations (#121) 2017-12-04 19:32:13 +01:00
aws_sns_topic_test.rb DRY up AWS resource implementation and test backend implementations (#121) 2017-12-04 19:32:13 +01:00