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 IngestUtils.java.

Constructor & Destructor Documentation

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

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

Definition at line 46 of file IngestUtils.java.

Member Function Documentation

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

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

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

Definition at line 58 of file IngestUtils.java.

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)
static

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

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

Definition at line 113 of file IngestUtils.java.

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

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

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.

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

Definition at line 87 of file IngestUtils.java.

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: Mon Sep 26 2022
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.