class MPPScenarioTestCase(ScenarioTestCase): DUT = MPPDUT() tinctest.logger.info(DUT) def get_product_version(self): """ This function is used by TINCTestCase to determine the current DUT version. It uses this information, along with @product_version, to determine if a test case should run in this particular DUT. @return: A two-tuple containing name and version of the product where test is executed @rtype: (string, string) """ return (self.DUT.product, self.DUT.version_string)
class MockMPPMetaClassTypeGPDB43(_MPPMetaClassType): _MPPMetaClassType.DUT = MPPDUT('gpdb', '4.3')
class MockMPPMetaClassTypeHAWQ(_MPPMetaClassType): _MPPMetaClassType.DUT = MPPDUT('hawq', '1.1.0.0')
class MockMPPTestLib(MPPTestLib): _MPPMetaClassType.DUT = MPPDUT("gpdb", "1.0.0.0") pass
class MockMPPMetaClassTypeHAWQ(_MPPMetaClassType): """ Mock MPPMetaClassTypeHAWQ to reset DUT """ _MPPMetaClassType.DUT = MPPDUT('hawq', '1.1.0.0')
class MockMPPMetaClassTypeGPDB(_MPPMetaClassType): """ Mock MPPMetaClassTypeGPDB to reset DUT """ _MPPMetaClassType.DUT = MPPDUT('gpdb', '1.0.0.0')