Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Static Public Member Functions | Private Member Functions | List of all members
org.sleuthkit.autopsy.testutils.IngestUtils Class Reference

Static Public Member Functions

static void addDataSource (AutoIngestDataSourceProcessor dataSourceProcessor, Path dataSourcePath) throws TestUtilsException
static IngestModuleTemplate getIngestModuleTemplate (IngestModuleFactory factory)
static void runIngestJob (List< Content > datasources, IngestJobSettings ingestJobSettings) throws TestUtilsException

Private Member Functions

 IngestUtils ()

Detailed Description

Class with common methods for testing related to adding and ingesting datasources.

Definition at line 40 of file

Constructor & Destructor Documentation

org.sleuthkit.autopsy.testutils.IngestUtils.IngestUtils ( )

IngestUtils constructor. Since this class is not meant to allow for instantiation, this constructor is 'private'.

Definition at line 46 of file

Member Function Documentation

static void org.sleuthkit.autopsy.testutils.IngestUtils.addDataSource ( AutoIngestDataSourceProcessor  dataSourceProcessor,
Path  dataSourcePath 
) throws TestUtilsException

Add the specified datasource to the case current case and processes it. Causes failure if it was unable to add and process the datasource.

dataSourceProcessorthe datasource processer to use to process the datasource
dataSourcePaththe path to the datasource which is being added

Definition at line 58 of file

References org.sleuthkit.autopsy.corecomponentinterfaces.DataSourceProcessorCallback.DataSourceProcessorResult.CRITICAL_ERRORS, org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), org.sleuthkit.autopsy.casemodule.Case.notifyAddingDataSource(), org.sleuthkit.autopsy.casemodule.Case.notifyDataSourceAdded(), and org.sleuthkit.autopsy.testutils.DataSourceProcessorRunner.runDataSourceProcessor().

Referenced by org.sleuthkit.autopsy.integrationtesting.IntegrationTestService.addDataSourcesToCase().

static IngestModuleTemplate org.sleuthkit.autopsy.testutils.IngestUtils.getIngestModuleTemplate ( IngestModuleFactory  factory)

Get the ingest module template for the the specified factories default ingest job settings.

factorythe factory to get the ingest job settings from
template - the IngestModuleTemplate created with the factory and it's default settings.

Definition at line 113 of file

References org.sleuthkit.autopsy.ingest.IngestModuleFactory.getDefaultIngestJobSettings().

static void org.sleuthkit.autopsy.testutils.IngestUtils.runIngestJob ( List< Content >  datasources,
IngestJobSettings  ingestJobSettings 
) throws TestUtilsException

Run ingest on the specified datasources with the specified ingest job settings. Causes failure if there are any errors or other problems while running ingest.

datasources- the datasources to run ingest on
ingestJobSettings- the ingest job settings to use for ingest

Definition at line 87 of file

References org.sleuthkit.autopsy.testutils.IngestJobRunner.runIngestJob().

Referenced by org.sleuthkit.autopsy.integrationtesting.IntegrationTestService.runIngest().

The documentation for this class was generated from the following file:

Copyright © 2012-2022 Basis Technology. Generated on: Tue Jun 27 2023
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.