예제 #1
0
 def test_agent_status_pickle_file_linux(self, *mocks):
     ''' Test pickle file location when running on Linux '''
     expected_path = os.path.join('/opt/sd-agent/run', 'AgentStatus.pickle')
     self.assertEqual(AgentStatus._get_pickle_path(), expected_path)
예제 #2
0
 def test_agent_status_pickle_file_mac_dmg(self, *mocks):
     ''' Test pickle file location when running a Mac DMG install '''
     expected_path = os.path.join(self._mac_run_dir, 'AgentStatus.pickle')
     self.assertEqual(AgentStatus._get_pickle_path(), expected_path)
예제 #3
0
 def test_agent_status_pickle_file_mac_source(self, *mocks):
     ''' Test pickle file location when running a Mac source install '''
     expected_path = os.path.join('/a/test/tmp/dir', 'AgentStatus.pickle')
     self.assertEqual(AgentStatus._get_pickle_path(), expected_path)
예제 #4
0
 def test_agent_status_pickle_file_win32(self, *mocks):
     ''' Test pickle file location on win32 '''
     expected_path = os.path.join('C:\Windows\App Data', 'ServerDensity',
                                  'AgentStatus.pickle')
     # check AgentStatus pickle created
     self.assertEqual(AgentStatus._get_pickle_path(), expected_path)
예제 #5
0
 def test_agent_status_pickle_file_linux(self, *mocks):
     ''' Test pickle file location when running on Linux '''
     expected_path = os.path.join('/opt/datadog-agent/run', 'AgentStatus.pickle')
     self.assertEqual(AgentStatus._get_pickle_path(), expected_path)
예제 #6
0
 def test_agent_status_pickle_file_mac_source(self, *mocks):
     ''' Test pickle file location when running a Mac source install '''
     expected_path = os.path.join('/a/test/tmp/dir', 'AgentStatus.pickle')
     self.assertEqual(AgentStatus._get_pickle_path(), expected_path)
예제 #7
0
 def test_agent_status_pickle_file_mac_dmg(self, *mocks):
     ''' Test pickle file location when running a Mac DMG install '''
     expected_path = os.path.join(self._mac_run_dir, 'AgentStatus.pickle')
     self.assertEqual(AgentStatus._get_pickle_path(), expected_path)
예제 #8
0
 def test_agent_status_pickle_file_win32(self, *mocks):
     ''' Test pickle file location on win32 '''
     expected_path = os.path.join('C:\Windows\App Data', 'Datadog', 'AgentStatus.pickle')
     # check AgentStatus pickle created
     self.assertEqual(AgentStatus._get_pickle_path(), expected_path)