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