mirror of
https://github.com/inspec/inspec
synced 2025-02-18 15:08:44 +00:00
Rely on unit test helper to load resources, not individual AWS tests
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
f7a11ee2df
commit
0ca012891b
24 changed files with 1 additions and 35 deletions
|
@ -6,5 +6,4 @@ require 'minitest/pride'
|
||||||
require 'json'
|
require 'json'
|
||||||
require 'ostruct'
|
require 'ostruct'
|
||||||
|
|
||||||
require 'inspec/resource'
|
require_relative 'lib/resource_support/aws'
|
||||||
require_relative '../../libraries/_aws'
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_cloudtrail_trail'
|
|
||||||
|
|
||||||
# MACTTSB = MockAwsCloudTrailTrailSingularBackend
|
# MACTTSB = MockAwsCloudTrailTrailSingularBackend
|
||||||
# Abbreviation not used outside this file
|
# Abbreviation not used outside this file
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_cloudtrail_trails'
|
|
||||||
|
|
||||||
# MACTTPB = MockAwsCloudTrailTrailsPluralBackend
|
# MACTTPB = MockAwsCloudTrailTrailsPluralBackend
|
||||||
# Abbreviation not used outside this file
|
# Abbreviation not used outside this file
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
require 'ostruct'
|
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_cloudwatch_alarm'
|
|
||||||
|
|
||||||
# MCWAB = MockCloudwatchAlarmBackend
|
# MCWAB = MockCloudwatchAlarmBackend
|
||||||
# Abbreviation not used outside this file
|
# Abbreviation not used outside this file
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
require 'ostruct'
|
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_cloudwatch_log_metric_filter'
|
|
||||||
|
|
||||||
# CWLMF = CloudwatchLogMetricFilter
|
# CWLMF = CloudwatchLogMetricFilter
|
||||||
# Abbreviation not used outside this file
|
# Abbreviation not used outside this file
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_ec2_instance'
|
|
||||||
|
|
||||||
class TestEc2 < Minitest::Test
|
class TestEc2 < Minitest::Test
|
||||||
Id = 'instance-id'.freeze
|
Id = 'instance-id'.freeze
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
require 'ostruct'
|
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_ec2_security_group'
|
|
||||||
|
|
||||||
# MESGSB = MockEc2SecurityGroupSingleBackend
|
# MESGSB = MockEc2SecurityGroupSingleBackend
|
||||||
# Abbreviation not used outside this file
|
# Abbreviation not used outside this file
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
require 'ostruct'
|
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_ec2_security_groups'
|
|
||||||
|
|
||||||
# MESGB = MockEc2SecurityGroupBackend
|
# MESGB = MockEc2SecurityGroupBackend
|
||||||
# Abbreviation not used outside this file
|
# Abbreviation not used outside this file
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
# author: Chris Redekop
|
# author: Chris Redekop
|
||||||
|
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_iam_access_key'
|
|
||||||
|
|
||||||
class AwsIamAccessKeyTest < Minitest::Test
|
class AwsIamAccessKeyTest < Minitest::Test
|
||||||
Username = 'test'.freeze
|
Username = 'test'.freeze
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
|
|
||||||
require 'aws-sdk'
|
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_iam_access_keys'
|
|
||||||
|
|
||||||
#==========================================================#
|
#==========================================================#
|
||||||
# Constructor Tests #
|
# Constructor Tests #
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_iam_group'
|
|
||||||
require 'date'
|
|
||||||
|
|
||||||
# MAIGSB = MockAwsIamGroupSingularBackend
|
# MAIGSB = MockAwsIamGroupSingularBackend
|
||||||
# Abbreviation not used outside this file
|
# Abbreviation not used outside this file
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_iam_groups'
|
|
||||||
require 'date'
|
|
||||||
|
|
||||||
# MAIGPB = MockAwsIamGroupsPluralBackend
|
# MAIGPB = MockAwsIamGroupsPluralBackend
|
||||||
# Abbreviation not used outside this file
|
# Abbreviation not used outside this file
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_iam_password_policy'
|
|
||||||
|
|
||||||
class AwsIamPasswordPolicyTest < Minitest::Test
|
class AwsIamPasswordPolicyTest < Minitest::Test
|
||||||
def setup
|
def setup
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_iam_policies'
|
|
||||||
|
|
||||||
# MAIPPB = MockAwsIamPoliciesPluralBackend
|
# MAIPPB = MockAwsIamPoliciesPluralBackend
|
||||||
# Abbreviation not used outside this file
|
# Abbreviation not used outside this file
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_iam_policy'
|
|
||||||
|
|
||||||
# MAIPSB = MockAwsIamPolicySingularBackend
|
# MAIPSB = MockAwsIamPolicySingularBackend
|
||||||
# Abbreviation not used outside this file
|
# Abbreviation not used outside this file
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_iam_role'
|
|
||||||
|
|
||||||
# MIRB = MockIamRoleBackend
|
# MIRB = MockIamRoleBackend
|
||||||
# Abbreviation not used outside this file
|
# Abbreviation not used outside this file
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
# author: Miles Tjandrawidjaja
|
# author: Miles Tjandrawidjaja
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_iam_root_user'
|
|
||||||
|
|
||||||
class AwsIamRootUserTest < Minitest::Test
|
class AwsIamRootUserTest < Minitest::Test
|
||||||
def setup
|
def setup
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
# author: Simon Varlow
|
# author: Simon Varlow
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_iam_user'
|
|
||||||
|
|
||||||
# MAUIB = MockAwsIamUserBackend
|
# MAUIB = MockAwsIamUserBackend
|
||||||
# Abbreviation not used outside this file
|
# Abbreviation not used outside this file
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'ostruct'
|
|
||||||
require 'aws_iam_users'
|
|
||||||
|
|
||||||
# Maiusb = Mock AwsIamUsers::Backend
|
# Maiusb = Mock AwsIamUsers::Backend
|
||||||
# Abbreviation not used outside of this file
|
# Abbreviation not used outside of this file
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_kms_keys'
|
|
||||||
|
|
||||||
# MAKKPB = MockAwsKmsKeysPluralBackend
|
# MAKKPB = MockAwsKmsKeysPluralBackend
|
||||||
# Abbreviation not used outside this file
|
# Abbreviation not used outside this file
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_s3_bucket'
|
|
||||||
|
|
||||||
# MSBSB = MockS3BucketSingleBackend
|
# MSBSB = MockS3BucketSingleBackend
|
||||||
# Abbreviation not used outside this file
|
# Abbreviation not used outside this file
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_sns_topic'
|
|
||||||
|
|
||||||
# MSNB = MockSnsBackend
|
# MSNB = MockSnsBackend
|
||||||
# Abbreviation not used outside this file
|
# Abbreviation not used outside this file
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_vpc'
|
|
||||||
|
|
||||||
# MAVSB = MockAwsVpcSingularBackend
|
# MAVSB = MockAwsVpcSingularBackend
|
||||||
# Abbreviation not used outside this file
|
# Abbreviation not used outside this file
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'helper'
|
require 'helper'
|
||||||
require 'aws_vpcs'
|
|
||||||
|
|
||||||
# MAVPB = MockAwsVpcsPluralBackend
|
# MAVPB = MockAwsVpcsPluralBackend
|
||||||
# Abbreviation not used outside this file
|
# Abbreviation not used outside this file
|
||||||
|
|
Loading…
Add table
Reference in a new issue