grr/server/grr_response_server/flows/general/collectors_test.py
def testAggregatedArtifact(self):
    """Test we can collect an ARTIFACT_GROUP."""

    client_test_lib.Command("/bin/echo", args=["1"])

    artifact_list = ["TestArtifactGroup"]

    self.InitializeTestFileArtifact()

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

    artifact_response = results[0]
    self.assertIsInstance(artifact_response, rdf_client_fs.StatEntry)

    artifact_response = results[1]
    self.assertIsInstance(artifact_response, rdf_client_action.ExecuteResponse)
    self.assertEqual(artifact_response.stdout, "1\n")
Test we can collect an ARTIFACT_GROUP.
Test we can collect an ARTIFACT_GROUP.
Test we can collect an ARTIFACT_GROUP .
def testAggregatedArtifact(self):
    client_test_lib.Command("/bin/echo", args=["1"])
    artifact_list = ["TestArtifactGroup"]
    self.InitializeTestFileArtifact()
    results = self._RunFlow(
        aff4_flows.ClientArtifactCollector,
        artifact_collector.ArtifactCollector,
        artifact_list,
        apply_parsers=False)
    self.assertLen(results, 2)
    artifact_response = results[0]
    self.assertIsInstance(artifact_response, rdf_client_fs.StatEntry)
    artifact_response = results[1]
    self.assertIsInstance(artifact_response, rdf_client_action.ExecuteResponse)
    self.assertEqual(artifact_response.stdout, "1\n")
def testAggregatedArtifact ( self ) : client_test_lib . Command ( "/bin/echo" , args = [ "1" ] ) artifact_list = [ "TestArtifactGroup" ] self . InitializeTestFileArtifact ( ) results = self . _RunFlow ( aff4_flows . ClientArtifactCollector , artifact_collector . ArtifactCollector , artifact_list , apply_parsers = False ) self . assertLen ( results , 2 ) artifact_response = results [ 0 ] self . assertIsInstance ( artifact_response , rdf_client_fs . StatEntry ) artifact_response = results [ 1 ] self . assertIsInstance ( artifact_response , rdf_client_action . ExecuteResponse ) self . assertEqual ( artifact_response . stdout , "1\n" )
Test we can collect an ARTIFACT_GROUP.
Test we can collect an ARTIFACT_GROUP .
"""Test we can collect an ARTIFACT_GROUP."""
self