mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
Fix AWS tests found during ChefStyle spike
This fixes some style issues and fixes a duplicated test method name. Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
This commit is contained in:
parent
e6abd1b23e
commit
10f0393683
4 changed files with 23 additions and 23 deletions
|
@ -49,7 +49,7 @@ class AwsElbFilterCriteriaTest < Minitest::Test
|
|||
assert_equal('kangaroo', elb.elb_name)
|
||||
end
|
||||
|
||||
def test_recall_when_provided_a_string
|
||||
def test_recall_when_provided_a_symbol
|
||||
elb = AwsElb.new elb_name: 'kang-the-alien'
|
||||
assert elb.exists?
|
||||
assert_equal('kang-the-alien', elb.elb_name)
|
||||
|
|
|
@ -55,7 +55,7 @@ end
|
|||
#=============================================================================#
|
||||
# Properties
|
||||
#=============================================================================#
|
||||
class AwsIamGroupRecallTest < Minitest::Test
|
||||
class AwsIamGroupPropertiesTest < Minitest::Test
|
||||
|
||||
def setup
|
||||
AwsIamGroup::BackendFactory.select(MAIGSB::Basic)
|
||||
|
|
|
@ -5,11 +5,11 @@ class EmptyAwsRouteTableTest < Minitest::Test
|
|||
AwsRouteTable::BackendFactory.select(AwsMRtbB::Empty)
|
||||
end
|
||||
|
||||
def test_search_hit_via_scalar_works
|
||||
assert_empty AwsRouteTable.new[:routetables]
|
||||
def test_search_hit_via_scalar_works_symbol
|
||||
refute AwsRouteTable.new(route_table_id: 'rtb-123abcde').exists?
|
||||
end
|
||||
|
||||
def test_search_hit_via_scalar_works
|
||||
def test_search_hit_via_scalar_works_string
|
||||
refute AwsRouteTable.new('rtb-123abcde').exists?
|
||||
end
|
||||
end
|
||||
|
|
|
@ -107,7 +107,7 @@ end
|
|||
# Matchers
|
||||
#=============================================================================#
|
||||
|
||||
class AwsSGSProperties < Minitest::Test
|
||||
class AwsSGSMatchers < Minitest::Test
|
||||
def setup
|
||||
AwsSecurityGroup::BackendFactory.select(AwsMESGSB::Basic)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue