The heat.tests.test_security_group Module

class heat.tests.test_security_group.NovaSG

Bases: tuple

NovaSG(name, id, rules, description)

description

itemgetter(item, ...) –> itemgetter object

Return a callable object that fetches the given item(s) from its operand. After, f=itemgetter(2), the call f(r) returns r[2]. After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])

id

itemgetter(item, ...) –> itemgetter object

Return a callable object that fetches the given item(s) from its operand. After, f=itemgetter(2), the call f(r) returns r[2]. After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])

name

itemgetter(item, ...) –> itemgetter object

Return a callable object that fetches the given item(s) from its operand. After, f=itemgetter(2), the call f(r) returns r[2]. After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])

rules

itemgetter(item, ...) –> itemgetter object

Return a callable object that fetches the given item(s) from its operand. After, f=itemgetter(2), the call f(r) returns r[2]. After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])

class heat.tests.test_security_group.SecurityGroupTest(methodName='runTest')[source]

Bases: unittest.TestCase

assertResourceState(resource, ref_id, metadata={})[source]
create_stack(template)[source]
parse_stack(t)[source]
setUp()[source]
speed = 'fast'
tag = ['unit', 'resource']
tearDown()[source]
test_security_group_nova()[source]
test_security_group_nova_exception()[source]
test_template_nova = "\nHeatTemplateFormatVersion: '2012-12-12'\nResources:\n the_sg:\n Type: AWS::EC2::SecurityGroup\n Properties:\n GroupDescription: HTTP and SSH access\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: 22\n ToPort: 22\n CidrIp: 0.0.0.0/0\n - IpProtocol: tcp\n FromPort : 80\n ToPort : 80\n CidrIp : 0.0.0.0/0\n"

This Page