def setUp(self):
     """setUp."""
     super(CITestPerformance, self).setUp()
     self.perf = self.conn.performance
     self.p_data = pd.PerformanceData()
     self.time_now = int(time.time() * 1000)
     if not self.perf.is_array_performance_registered(self.conn.array_id):
         self.skipTest(
             'Array {arr} is not diagnostic performance registered, '
             'skipping performance tests.'.format(arr=self.conn.array_id))
Beispiel #2
0
 def setUp(self):
     """setUp."""
     super(PyU4VPerformanceTest, self).setUp()
     self.p_data = pd.PerformanceData()
     self.conf_file, self.conf_dir = (
         pf.FakeConfigFile.create_fake_config_file())
     univmax_conn.file_path = self.conf_file
     with mock.patch.object(rest_requests.RestRequests,
                            'establish_rest_session',
                            return_value=pf.FakeRequestsSession()):
         self.conn = univmax_conn.U4VConn(array_id=self.p_data.array)
         self.perf = self.conn.performance
         self.rt = self.perf.real_time
         self.common = self.conn.common
         self.time_now = int(time.time()) * 1000