MCPcopy Create free account
hub / github.com/apache/cloudstack / Services

Class Services

test/integration/component/test_eip_elb.py:44–96  ·  view source on GitHub ↗

Test elastic load balancing and elastic IP

Source from the content-addressed store, hash-verified

42
43
44class Services:
45
46 """Test elastic load balancing and elastic IP
47 """
48
49 def __init__(self):
50 self.services = {
51 "account": {
52 "email": "test@test.com",
53 "firstname": "Test",
54 "lastname": "User",
55 "username": "test",
56 # Random characters are appended for unique
57 # username
58 "password": "password",
59 },
60 "service_offering": {
61 "name": "Tiny Instance",
62 "displaytext": "Tiny Instance",
63 "cpunumber": 1,
64 "cpuspeed": 100, # in MHz
65 "memory": 128, # In MBs
66 },
67 "lbrule": {
68 "name": "SSH",
69 "alg": "roundrobin",
70 # Algorithm used for load balancing
71 "privateport": 22,
72 "publicport": 22,
73 "openfirewall": False,
74 },
75 "natrule": {
76 "privateport": 22,
77 "publicport": 22,
78 "protocol": "TCP"
79 },
80 "virtual_machine": {
81 "displayname": "Test VM",
82 "username": "root",
83 "password": "password",
84 "ssh_port": 22,
85 "hypervisor": 'XenServer',
86 # Hypervisor type should be same as
87 # hypervisor type of cluster
88 "privateport": 22,
89 "publicport": 22,
90 "protocol": 'TCP',
91 },
92 "ostype": 'CentOS 5.3 (64-bit)',
93 # Cent OS 5.3 (64 bit)
94 "sleep": 60,
95 "timeout": 10,
96 }
97
98
99class TestEIP(cloudstackTestCase):

Callers 2

setUpClassMethod · 0.70
setUpClassMethod · 0.70

Calls

no outgoing calls

Tested by 2

setUpClassMethod · 0.56
setUpClassMethod · 0.56