-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunLoadCore.py
executable file
·27 lines (23 loc) · 1.09 KB
/
runLoadCore.py
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
"""
Tested with LoadCore 2.20, 2.30, 3.20, 3.40
"""
import traceback
from keystackEnv import keystackObj
from LoadCore.LoadCoreLib import Main
try:
# TODO: Bogdan will provided new rest apis to verify required licenses for license verification
'''
# License check: Returns None if all licenses are available. Return a list of license not avaiable.
lcLicenseObj = LoadCoreLicense(mainObj.moduleProperties['envParams']['licenseServerIp'],
mainObj.moduleProperties['envParams']['licenseIpPort'],
mainObj.moduleProperties['envParams']['licenseServerUser'],
mainObj.moduleProperties['envParams']['licenseServerPassword'],
mainObj.testcaseDebugLogFile)
if 'requiredLicenses' in mainObj.moduleProperties['envParams']:
licenseCheckResult = lcLicenseObj.checkForLicenses(mainObj.moduleProperties['envParams']['requiredLicenses'])
if licenseCheckResult:
raise Exception(f'LoadCore licenses are not available: {licenseCheckResult}')
'''
Main(keystackObj).runTestcase()
except Exception as errMsg:
raise Exception(traceback.format_exc(None, errMsg))