예제 #1
0
 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)
예제 #2
0
    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)
예제 #3
0
 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)
예제 #4
0
    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)