def setUp(self):
     HttpTestBase.setUp(self)
     self.prepare_response("GET",
                           "/ws/Monitor",
                           data=GET_TCP_MONITOR_SINGLE_FOUND)
     mon = self.dc.monitor.get_monitor(
         ['DeviceCore', 'FileDataCore', 'FileData', 'DataPoint'])
     self.mon = mon
Exemple #2
0
    def setUp(self):
        HttpTestBase.setUp(self)
        self.fss_api = self.dc.get_fss_api()
        self.sci_api = mock.Mock()
        self.fss_api._sci_api = self.sci_api
        self.target = AllTarget()
        self.dev1_id = '00000000-00000000-18A905FF-FF2F1BBD'
        self.dev2_id = '00000000-00000000-18A905FF-FF2F1BBE'

        # Create some file, directory, and error info objects to use in tests
        self.file1 = FileInfo(self.fss_api, self.dev1_id, '/a/path/file1.txt', 1436276773, 7989,
                              "967FDA522517B9CE0C3E056EDEB485BB", 'md5')
        self.file2 = FileInfo(self.fss_api, self.dev1_id, '/a/path/file2.py', 1434377919, 181,
                              "DEA17715739E46079C1A6DDCB38344DF", 'md5')
        self.dir1 = DirectoryInfo(self.fss_api, self.dev1_id, '/a/path/dir', 1436203917)
        self.errinfo = ErrorInfo(errno=1, message="an error message")
 def setUp(self):
     HttpTestBase.setUp(self)
     self.prepare_response("GET", "/ws/Monitor", data=GET_TCP_MONITOR_SINGLE_FOUND)
     mon = self.dc.monitor.get_monitor(["DeviceCore", "FileDataCore", "FileData", "DataPoint"])
     self.mon = mon
 def setUp(self):
     HttpTestBase.setUp(self)
     self.client_manager = TCPClientManager(self.dc.get_connection())
 def setUp(self):
     HttpTestBase.setUp(self)
     self.fake_conn = mock.MagicMock()
Exemple #6
0
 def setUp(self):
     HttpTestBase.setUp(self)
     self.fake_conn = mock.MagicMock()