@Name : init @Desc :Initializes the marvin by 1. Parsing the configuration and creating a parsed config structure 2. Creates a timestamped log folder and provides all logs to be dumped there 3. Creates
(self)
| 131 | return FAILED |
| 132 | |
| 133 | def init(self): |
| 134 | ''' |
| 135 | @Name : init |
| 136 | @Desc :Initializes the marvin by |
| 137 | 1. Parsing the configuration and creating a parsed config |
| 138 | structure |
| 139 | 2. Creates a timestamped log folder and provides all logs |
| 140 | to be dumped there |
| 141 | 3. Creates the DataCenter based upon configuration provided |
| 142 | @Output : SUCCESS or FAILED |
| 143 | ''' |
| 144 | try: |
| 145 | print("\n==== Marvin Init Started ====") |
| 146 | if ((self.__parseConfig() != FAILED) and |
| 147 | (self.__setHypervisorAndZoneInfo())and |
| 148 | (self.__setTestDataPath() != FAILED) and |
| 149 | (self.__initLogging() != FAILED) and |
| 150 | (self.__createTestClient() != FAILED) and |
| 151 | (self.__deployDC() != FAILED)): |
| 152 | print("\n==== Marvin Init Successful ====") |
| 153 | return SUCCESS |
| 154 | print("\n==== Marvin Init Failed ====") |
| 155 | return FAILED |
| 156 | except Exception as e: |
| 157 | print("\n Exception Occurred Under init " \ |
| 158 | "%s" % GetDetailExceptionInfo(e)) |
| 159 | return FAILED |
| 160 | |
| 161 | def __initLogging(self): |
| 162 | ''' |
no test coverage detected