Exemple #1
0
 def setUp(self):
     self.test_state = state.DFTimewolfState(config.Config)
     self.grr_hunt_file_collector = grr_hunt.GRRHuntFileCollector(
         self.test_state)
     self.grr_hunt_file_collector.SetUp(
         file_path_list='/etc/passwd,/etc/shadow',
         reason='random reason',
         grr_server_url='http://fake/endpoint',
         grr_username='******',
         grr_password='******',
         approvers='approver1,approver2')
Exemple #2
0
 def testInitialization(self):
   """Tests that the collector can be initialized."""
   test_state = state.DFTimewolfState()
   grr_hunt_file_collector = grr_hunt.GRRHuntFileCollector(test_state)
   self.assertIsNotNone(grr_hunt_file_collector)