mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +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 'ostruct'
|
||||
|
||||
require 'inspec/resource'
|
||||
require_relative '../../libraries/_aws'
|
||||
require_relative 'lib/resource_support/aws'
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
require 'helper'
|
||||
require 'aws_cloudtrail_trail'
|
||||
|
||||
# MACTTSB = MockAwsCloudTrailTrailSingularBackend
|
||||
# Abbreviation not used outside this file
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
require 'helper'
|
||||
require 'aws_cloudtrail_trails'
|
||||
|
||||
# MACTTPB = MockAwsCloudTrailTrailsPluralBackend
|
||||
# Abbreviation not used outside this file
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
require 'ostruct'
|
||||
require 'helper'
|
||||
require 'aws_cloudwatch_alarm'
|
||||
|
||||
# MCWAB = MockCloudwatchAlarmBackend
|
||||
# Abbreviation not used outside this file
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
require 'ostruct'
|
||||
require 'helper'
|
||||
require 'aws_cloudwatch_log_metric_filter'
|
||||
|
||||
# CWLMF = CloudwatchLogMetricFilter
|
||||
# Abbreviation not used outside this file
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
require 'helper'
|
||||
require 'aws_ec2_instance'
|
||||
|
||||
class TestEc2 < Minitest::Test
|
||||
Id = 'instance-id'.freeze
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
require 'ostruct'
|
||||
require 'helper'
|
||||
require 'aws_ec2_security_group'
|
||||
|
||||
# MESGSB = MockEc2SecurityGroupSingleBackend
|
||||
# Abbreviation not used outside this file
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
require 'ostruct'
|
||||
require 'helper'
|
||||
require 'aws_ec2_security_groups'
|
||||
|
||||
# MESGB = MockEc2SecurityGroupBackend
|
||||
# Abbreviation not used outside this file
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
# author: Chris Redekop
|
||||
|
||||
require 'helper'
|
||||
require 'aws_iam_access_key'
|
||||
|
||||
class AwsIamAccessKeyTest < Minitest::Test
|
||||
Username = 'test'.freeze
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
|
||||
require 'aws-sdk'
|
||||
require 'helper'
|
||||
require 'aws_iam_access_keys'
|
||||
|
||||
#==========================================================#
|
||||
# Constructor Tests #
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
require 'helper'
|
||||
require 'aws_iam_group'
|
||||
require 'date'
|
||||
|
||||
# MAIGSB = MockAwsIamGroupSingularBackend
|
||||
# Abbreviation not used outside this file
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
require 'helper'
|
||||
require 'aws_iam_groups'
|
||||
require 'date'
|
||||
|
||||
# MAIGPB = MockAwsIamGroupsPluralBackend
|
||||
# Abbreviation not used outside this file
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
require 'helper'
|
||||
require 'aws_iam_password_policy'
|
||||
|
||||
class AwsIamPasswordPolicyTest < Minitest::Test
|
||||
def setup
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
require 'helper'
|
||||
require 'aws_iam_policies'
|
||||
|
||||
# MAIPPB = MockAwsIamPoliciesPluralBackend
|
||||
# Abbreviation not used outside this file
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
require 'helper'
|
||||
require 'aws_iam_policy'
|
||||
|
||||
# MAIPSB = MockAwsIamPolicySingularBackend
|
||||
# Abbreviation not used outside this file
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
require 'helper'
|
||||
require 'aws_iam_role'
|
||||
|
||||
# MIRB = MockIamRoleBackend
|
||||
# Abbreviation not used outside this file
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# author: Miles Tjandrawidjaja
|
||||
require 'helper'
|
||||
require 'aws_iam_root_user'
|
||||
|
||||
class AwsIamRootUserTest < Minitest::Test
|
||||
def setup
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# author: Simon Varlow
|
||||
require 'helper'
|
||||
require 'aws_iam_user'
|
||||
|
||||
# MAUIB = MockAwsIamUserBackend
|
||||
# Abbreviation not used outside this file
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
require 'helper'
|
||||
require 'ostruct'
|
||||
require 'aws_iam_users'
|
||||
|
||||
# Maiusb = Mock AwsIamUsers::Backend
|
||||
# Abbreviation not used outside of this file
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
require 'helper'
|
||||
require 'aws_kms_keys'
|
||||
|
||||
# MAKKPB = MockAwsKmsKeysPluralBackend
|
||||
# Abbreviation not used outside this file
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# encoding: utf-8
|
||||
require 'helper'
|
||||
require 'aws_s3_bucket'
|
||||
|
||||
# MSBSB = MockS3BucketSingleBackend
|
||||
# Abbreviation not used outside this file
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
require 'helper'
|
||||
require 'aws_sns_topic'
|
||||
|
||||
# MSNB = MockSnsBackend
|
||||
# Abbreviation not used outside this file
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
require 'helper'
|
||||
require 'aws_vpc'
|
||||
|
||||
# MAVSB = MockAwsVpcSingularBackend
|
||||
# Abbreviation not used outside this file
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
require 'helper'
|
||||
require 'aws_vpcs'
|
||||
|
||||
# MAVPB = MockAwsVpcsPluralBackend
|
||||
# Abbreviation not used outside this file
|
||||
|
|
Loading…
Reference in a new issue