grr/server/grr_response_server/flows/general/collectors_test.py
def testClientArtifactCollector(self):
    """Test artifact collector flow with a single artifact."""

    client_test_lib.Command("/usr/bin/dpkg", args=["--list"], system="Linux")

    artifact_list = ["TestCmdArtifact"]

    results = self._RunFlow(
        aff4_flows.ClientArtifactCollector,
        artifact_collector.ArtifactCollector,
        artifact_list,
        apply_parsers=False)
    self.assertLen(results, 1)

    artifact_response = results[0]
    self.assertIsInstance(artifact_response, rdf_client_action.ExecuteResponse)
    self.assertGreater(artifact_response.time_used, 0)
Test artifact collector flow with a single artifact.
Test artifact collector flow with a single artifact.
Test artifact collector flow with a single artifact .
def testClientArtifactCollector(self):
    client_test_lib.Command("/usr/bin/dpkg", args=["--list"], system="Linux")
    artifact_list = ["TestCmdArtifact"]
    results = self._RunFlow(
        aff4_flows.ClientArtifactCollector,
        artifact_collector.ArtifactCollector,
        artifact_list,
        apply_parsers=False)
    self.assertLen(results, 1)
    artifact_response = results[0]
    self.assertIsInstance(artifact_response, rdf_client_action.ExecuteResponse)
    self.assertGreater(artifact_response.time_used, 0)
def testClientArtifactCollector ( self ) : client_test_lib . Command ( "/usr/bin/dpkg" , args = [ "--list" ] , system = "Linux" ) artifact_list = [ "TestCmdArtifact" ] results = self . _RunFlow ( aff4_flows . ClientArtifactCollector , artifact_collector . ArtifactCollector , artifact_list , apply_parsers = False ) self . assertLen ( results , 1 ) artifact_response = results [ 0 ] self . assertIsInstance ( artifact_response , rdf_client_action . ExecuteResponse ) self . assertGreater ( artifact_response . time_used , 0 )
Test artifact collector flow with a single artifact.
Test artifact collector flow with a single artifact .
"""Test artifact collector flow with a single artifact."""
self