Skip to content

security_group be_opened matches on nil #416

Description

@rhysbarrett

I suspect this is a rather serious bug, best demonstrated by example:

describe security_group('dpp-prod-user_api') do
    its(:inbound) { should be_opened(nil) }
end

This test passes when I assume it really shouldn't - bearing in mind the security group I'm testing against has a rule for ports 5001-5003 (verified with a passing test case of its(:inbound) { should be_opened("5001 - 5003") }.

The implication of this is that malformed configuration files supplying test data to this test will cause the test to pass, regardless of whether it should pass or not.

This is my first Git Issue so I'm sorry if I haven't done this properly or if I've missed something obvious.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions