Test vmware DRS services
| 52 | |
| 53 | |
| 54 | class Services: |
| 55 | """Test vmware DRS services |
| 56 | """ |
| 57 | |
| 58 | def __init__(self): |
| 59 | self.services = { |
| 60 | "account": { |
| 61 | "email": "test@test.com", |
| 62 | "firstname": "Test", |
| 63 | "lastname": "User", |
| 64 | "username": "test", |
| 65 | # Random characters are appended in create account to |
| 66 | # ensure unique username generated each time |
| 67 | "password": "password", |
| 68 | }, |
| 69 | "virtual_machine": |
| 70 | { |
| 71 | "displayname": "testserver", |
| 72 | "username": "root", # VM creds for SSH |
| 73 | "password": "password", |
| 74 | "ssh_port": 22, |
| 75 | "hypervisor": 'XenServer', |
| 76 | "privateport": 22, |
| 77 | "publicport": 22, |
| 78 | "protocol": 'TCP', |
| 79 | }, |
| 80 | "service_offering": |
| 81 | { |
| 82 | "name": "Tiny Instance", |
| 83 | "displaytext": "Tiny Instance", |
| 84 | "cpunumber": 1, |
| 85 | "cpuspeed": 100, # in MHz |
| 86 | "memory": 2048, # In MBs |
| 87 | }, |
| 88 | "service_offering_max_memory": |
| 89 | { |
| 90 | "name": "Tiny Instance", |
| 91 | "displaytext": "Tiny Instance", |
| 92 | "cpunumber": 1, |
| 93 | "cpuspeed": 100, # in MHz |
| 94 | "memory": 128, # In MBs |
| 95 | }, |
| 96 | "host_anti_affinity": { |
| 97 | "name": "", |
| 98 | "type": "host anti-affinity", |
| 99 | }, |
| 100 | "host_affinity": { |
| 101 | "name": "", |
| 102 | "type": "host affinity", |
| 103 | }, |
| 104 | "sleep": 60, |
| 105 | "timeout": 10, |
| 106 | "ostype": 'CentOS 5.3 (64-bit)', |
| 107 | # CentOS 5.3 (64-bit) |
| 108 | } |
| 109 | |
| 110 | class TestVMPlacement(cloudstackTestCase): |
| 111 |
no outgoing calls