コード例 #1
0
 def setUp(self):
     self.test_state = state.DFTimewolfState(config.Config)
     self.grr_hunt_downloader = grr_hunt.GRRHuntDownloader(self.test_state)
     self.grr_hunt_downloader.SetUp(hunt_id='H:12345',
                                    reason='random reason',
                                    grr_server_url='http://fake/endpoint',
                                    grr_username='******',
                                    grr_password='******',
                                    approvers='approver1,approver2')
     self.grr_hunt_downloader.output_path = '/tmp/test'
コード例 #2
0
ファイル: grr_hunt.py プロジェクト: jmckinlay/dftimewolf
 def testInitialization(self):
   """Tests that the collector can be initialized."""
   test_state = state.DFTimewolfState()
   grr_hunt_downloader = grr_hunt.GRRHuntDownloader(test_state)
   self.assertIsNotNone(grr_hunt_downloader)