def __set_body_name (self, product, content): """ add name and description before the end marker of request :param product: product name :param content: """ element_1 = {'label': 'name', 'value': product} element_2 = {'label': 'description', 'value': "Product only for test"} self.ADD_PRODUCT_BODY = utils.body_oneElement (self.ADD_PRODUCT_BODY, element_1, 'addProduct', content) self.ADD_PRODUCT_BODY = utils.body_oneElement (self.ADD_PRODUCT_BODY, element_2, 'addProduct', content)
def __create_body_release (self, version, description, content): """ Create body to release request :param version: :param description: :param content: """ element_1 = {'label': 'version', 'value': version} element_2 = {'label': 'releaseNotes', 'value': "version only for test"} self.ADD_PRODUCT_RELEASE_BODY = utils.body_oneElement (self.ADD_PRODUCT_RELEASE_BODY, element_1, 'addProductRelease', content) self.ADD_PRODUCT_RELEASE_BODY = utils.body_oneElement (self.ADD_PRODUCT_RELEASE_BODY, element_2, 'addProductRelease', content)
def __set_body_name(self, product, content): """ add name and description before the end marker of request :param product: product name :param content: """ element_1 = {'label': 'name', 'value': product} element_2 = {'label': 'description', 'value': "Product only for test"} self.ADD_PRODUCT_BODY = utils.body_oneElement(self.ADD_PRODUCT_BODY, element_1, 'addProduct', content) self.ADD_PRODUCT_BODY = utils.body_oneElement(self.ADD_PRODUCT_BODY, element_2, 'addProduct', content)
def __create_body_release(self, version, description, content): """ Create body to release request :param version: :param description: :param content: """ element_1 = {'label': 'version', 'value': version} element_2 = {'label': 'releaseNotes', 'value': "version only for test"} self.ADD_PRODUCT_RELEASE_BODY = utils.body_oneElement( self.ADD_PRODUCT_RELEASE_BODY, element_1, 'addProductRelease', content) self.ADD_PRODUCT_RELEASE_BODY = utils.body_oneElement( self.ADD_PRODUCT_RELEASE_BODY, element_2, 'addProductRelease', content)