ingest.test.scan.scanners package¶
Submodules¶
ingest.test.scan.scanners.test_dir_scanner module¶
-
class
ingest.test.scan.scanners.test_dir_scanner.
TestDirScanner
(methodName='runTest')¶ Bases:
django.test.testcases.TestCase
-
setUp
()¶
-
test_ingest_file
(*args, **keywargs)¶ Tests calling DirScanner._ingest_file() with dry_run off successfully
-
test_ingest_file_dry_run
()¶ Tests calling DirScanner._ingest_file() in dry_run mode
-
test_ingest_file_in_transit
()¶ Tests calling DirScanner._ingest_file() with dry_run off and transfer in-progress
-
test_load_configuration
()¶ Tests calling DirScanner.load_configuration() successfully
-
test_validate_configuration_bad_transfer_suffix
()¶ Tests calling DirScanner.validate_configuration() with bad type for transfer_suffix
-
test_validate_configuration_empty_transfer_suffix
()¶ Tests calling DirScanner.validate_configuration() with empty transfer_suffix
-
test_validate_configuration_missing_transfer_suffix
()¶ Tests calling DirScanner.validate_configuration() with missing transfer_suffix
-
test_validate_configuration_success
()¶ Tests calling DirScanner.validate_configuration() successfully
-
ingest.test.scan.scanners.test_s3_scanner module¶
-
class
ingest.test.scan.scanners.test_s3_scanner.
TestS3Scanner
(methodName='runTest')¶ Bases:
django.test.testcases.TestCase
-
setUp
()¶
-
test_load_configuration
()¶ Tests calling S3Scanner.load_configuration() successfully
-
test_recursive_default
()¶ Tests default property of recursive on S3Scanner instance
-
test_set_recursive_false
()¶ Tests calling S3Scanner.set_recursive() to false
-
test_validate_configuration_extra_key
()¶ Tests calling S3Scanner.validate_configuration() with extra key
-
test_validate_configuration_success
()¶ Tests calling S3Scanner.validate_configuration() successfully
-
-
class
ingest.test.scan.scanners.test_s3_scanner.
TestScanner
(methodName='runTest')¶ Bases:
django.test.testcases.TestCase
-
setUp
()¶
-
test_deduplicate_ingest_list_no_existing
(*args, **keywargs)¶ Tests calling S3Scanner._deduplicate_ingest_list() without existing
-
test_deduplicate_ingest_list_with_duplicate_file_names
(*args, **keywargs)¶ Tests calling S3Scanner._deduplicate_ingest_list() with duplicates
-
test_deduplicate_ingest_list_with_existing_no_other_dups
(*args, **keywargs)¶ Tests calling S3Scanner._deduplicate_ingest_list() with existing and no other dups
-
test_process_scanned_dry_run
(*args, **keywargs)¶ Tests calling S3Scanner._process_scanned() during dry run
-
test_process_scanned_interrupted
()¶ Tests calling S3Scanner._process_scanned() with interruption
-
test_process_scanned_no_ingests
()¶ Tests calling S3Scanner._process_scanned() with no ingests
-
test_process_scanned_no_rule_match
(*args, **keywargs)¶ Tests calling S3Scanner._process_scanned() during ingest run
-
test_process_scanned_successfully
(*args, **keywargs)¶ Tests calling S3Scanner._process_scanned() successfully
-
test_recursive_default
()¶ Tests default property of recursive on Scanner instance
-
test_set_recursive_false
()¶ Tests calling S3Scanner.set_recursive() to false
-
test_stop
()¶ Tests calling S3Scanner.stop() successfully
-