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

Version Path
yao-0.7.0 test/yao/resources/test_security_group_rule.rb
yao-0.6.3 test/yao/resources/test_security_group_rule.rb
yao-0.6.2 test/yao/resources/test_security_group_rule.rb
yao-0.6.1 test/yao/resources/test_security_group_rule.rb
yao-0.6.0 test/yao/resources/test_security_group_rule.rb
yao-0.5.0 test/yao/resources/test_security_group_rule.rb
yao-0.4.3 test/yao/resources/test_security_group_rule.rb
yao-0.4.2 test/yao/resources/test_security_group_rule.rb
yao-0.4.1 test/yao/resources/test_security_group_rule.rb
yao-0.4.0 test/yao/resources/test_security_group_rule.rb
yao-0.3.8 test/yao/resources/test_security_group_rule.rb
yao-0.3.7 test/yao/resources/test_security_group_rule.rb
yao-0.3.6 test/yao/resources/test_security_group_rule.rb
yao-0.3.5 test/yao/resources/test_security_group_rule.rb
yao-0.3.4 test/yao/resources/test_security_group_rule.rb
yao-0.3.3 test/yao/resources/test_security_group_rule.rb
yao-0.3.2 test/yao/resources/test_security_group_rule.rb
yao-0.3.1 test/yao/resources/test_security_group_rule.rb
yao-0.3.0 test/yao/resources/test_security_group_rule.rb
yao-0.2.13 test/yao/resources/test_security_group_rule.rb