Sha256: 351f065f2d1e1ca281c0a981ad8a091b18d20ad63ddb6a4206da6145f8c4483b
Contents?: true
Size: 752 Bytes
Versions: 21
Compression:
Stored size: 752 Bytes
Contents
class TestSecurityGroup < Test::Unit::TestCase def test_rule_attributes params = { "id" => "test_rule_id_1", "security_group_ip" => "test_group_id_1", "direction" => "ingress", "protocol" => "tcp", "ethertype" => "IPv4", "port_range_max" => "443", "port_range_min" => "443", "remote_ip_prefix" => "10.0.0.0/24", "remote_group_id" => nil, "tenant_id" => "test_tenant" } rule = Yao::SecurityGroupRule.new(params) assert_equal(rule.id, "test_rule_id_1") assert_equal(rule.protocol, "tcp") assert_equal(rule.port_range_max, "443") assert_equal(rule.port_range_min, "443") assert_equal(rule.ethertype, "IPv4") end end
Version data entries
21 entries across 21 versions & 1 rubygems