-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
75 lines (60 loc) · 2.01 KB
/
Copy pathconfig.py
File metadata and controls
75 lines (60 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
"""
Description: Define the Scale Test Configuration with the below global \
parameters.
Developer: gopal@onecloudinc.com
"""
# Tenant Settings
OS_USERNAME = 'admin'
OS_TENANT_NAME = 'admin'
OS_PASSWORD = 'admin'
OS_AUTH_URL = 'http://172.168.2.62:5000/v2.0/'
# TENANT_CREATION = True
TENANT_COUNT = 2
TENANT_NAME_PREFIX = 'tenant-test'
TENANT_BASE_INDEX = 101
USER_COUNT = 1
USER_PASSWORD = 'secret'
NETWORK_COUNT = 2
VM_COUNT = 1
IMAGE_NAME = 'Cirros'
FLAVOUR_NAME = 'm1.tiny'
EXTERNAL_NETWORK = 'public'
# Floating IP Settings
FLOATING_IP_CREATION = True
FLOATING_IP_POOL = 'public'
TENANT_CREATION = False
TENANT_NAME = ['tenant-test-101', 'tenant-test-102', 'tenant-test-103', 'tenant-test-104','tenant-test-105']
# Cisco ASR Settings
ENABLE_ASR_VERIFICATION = False
DEPLOYMENT_ID = 'ans136'
ASR_HOST = '10.10.10.10'
ASR_USER = 'admin'
ASR_PASSWORD = 'admin'
"""
Test Configuration Ends Here with the global parameters.
"""
def print_scale_test_config():
"""
This method is used to print the current test configuration on scale test \
deployment initialization.
"""
print '=' * 70
print " Configuration for this Scale Test"
print '=' * 70
print " Tenant will be created with prefix : " \
+ TENANT_NAME_PREFIX
print " No of Tenants will be created : " \
+ str(TENANT_COUNT)
print " Tenant base index range starts from : " \
+ str(TENANT_BASE_INDEX)
print " No of Users per Tenant : " \
+ str(USER_COUNT)
print " No of Networks : " \
+ str(NETWORK_COUNT)
print " No of VMs per Network : " \
+ str(VM_COUNT)
print " Name of the External Network with be connected with Router : " \
+ EXTERNAL_NETWORK
print " Name of the Floating IP Pool will be used for Allocation : " \
+ FLOATING_IP_POOL
print '=' * 70