コード例 #1
0
 def run(self):
     time.sleep(5)
     for i in range(self.num_iterations):
         self.logger.debug(
             "{0}: register with ak {1} on {2} attempt {3}".format(
                 self.thread_name, self.ak_name, self.vm_ip, i))
         time_point = Candlepin.single_register_activation_key(
             self.ak_name, self.default_org, self.vm_ip)
         self.time_result_dict[self.thread_name].append(time_point)
コード例 #2
0
ファイル: thread.py プロジェクト: Ichimonji10/robottelo
 def run(self):
     time.sleep(5)
     for i in range(self.num_iterations):
         self.logger.debug(
             "{0}: register with ak {1} on {2} attempt {3}"
             .format(self.thread_name, self.ak_name, self.vm_ip, i))
         time_point = Candlepin.single_register_activation_key(
             self.ak_name,
             self.default_org,
             self.vm_ip)
         self.time_result_dict[self.thread_name].append(time_point)
コード例 #3
0
ファイル: thread.py プロジェクト: rohitkadam19/robottelo
 def run(self):
     time.sleep(5)
     self.logger.debug('Start timing in thread {0}'.format(self.thread_id))
     for idx, uuid in enumerate(self.sublist):
         if uuid != '':
             self.logger.debug(
                 'deletion attempt # {0} in thread {1}-uuid: {2}'
                 .format(idx, self.thread_id, uuid))
             # conduct one request by the id
             time_point = Candlepin.single_delete(uuid, self.thread_id)
             self.time_result_dict[self.thread_name].append(time_point)
コード例 #4
0
    def run(self):
        for i in range(self.num_iterations):
            self.logger.debug(
                "{0}: register with subscription {1} on vm {2} attempt {3}".
                format(self.thread_name, self.sub_id, self.vm_ip, i))

            time_points = Candlepin.single_register_attach(
                self.sub_id, self.default_org, self.environment, self.vm_ip)

            # split original time_result_dict into two new dictionaries
            # append each client's register timing data
            self.time_result_dict_register.get(
                self.thread_name, 'thread-0').append(time_points[0])

            # append each client's attach timing data
            self.time_result_dict_attach.get(self.thread_name,
                                             'thread-0').append(time_points[1])
コード例 #5
0
ファイル: thread.py プロジェクト: Ichimonji10/robottelo
    def run(self):
        for i in range(self.num_iterations):
            self.logger.debug(
                "{0}: register with subscription {1} on vm {2} attempt {3}"
                .format(self.thread_name, self.sub_id, self.vm_ip, i))

            time_points = Candlepin.single_register_attach(
                self.sub_id,
                self.default_org,
                self.environment,
                self.vm_ip)

            # split original time_result_dict into two new dictionaries
            # append each client's register timing data
            self.time_result_dict_register.get(
                self.thread_name, 'thread-0'
            ).append(time_points[0])

            # append each client's attach timing data
            self.time_result_dict_attach.get(
                self.thread_name, 'thread-0'
            ).append(time_points[1])