ingest.test.strike.monitors package

Submodules

ingest.test.strike.monitors.test_dir_monitor module

class ingest.test.strike.monitors.test_dir_monitor.TestDirWatcherMonitor(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_process_ingest_rule_not_matched()

Tests _process_ingest when no rules are matched

test_validate_configuration_bad_transfer_suffix()

Tests calling DirWatcherMonitor.validate_configuration() with bad type for transfer_suffix

test_validate_configuration_empty_transfer_suffix()

Tests calling DirWatcherMonitor.validate_configuration() with empty transfer_suffix

test_validate_configuration_missing_transfer_suffix()

Tests calling DirWatcherMonitor.validate_configuration() with missing transfer_suffix

test_validate_configuration_success()

Tests calling DirWatcherMonitor.validate_configuration() successfully

ingest.test.strike.monitors.test_s3_monitor module

class ingest.test.strike.monitors.test_s3_monitor.SQSMessage(body)

Bases: tuple

body

Alias for field number 0

class ingest.test.strike.monitors.test_s3_monitor.TestS3Monitor(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_process_s3_minimal_notification_success(*args, **keywargs)

Tests calling S3Monitor._process_s3_notification() successfully with minimal v2.0 message from SNS->SQS

test_process_s3_notification_invalid_event_name()

Tests calling S3Monitor._process_s3_notification() with invalid JSON

test_process_s3_notification_invalid_event_version()

Tests calling S3Monitor._process_s3_notification() with invalid JSON

test_process_s3_notification_invalid_json()

Tests calling S3Monitor._process_s3_notification() with invalid JSON

test_process_s3_notification_invalid_message()

Tests calling S3Monitor._process_s3_notification() with incomplete message

test_process_s3_notional_v2_notification_success(*args, **keywargs)

Tests calling S3Monitor._process_s3_notification() successfully with notional v2 message

test_process_s3_sqs_direct_notification_success(*args, **keywargs)

Tests calling S3Monitor._process_s3_notification() successfully with minimal v2.0 direct S3 event

test_process_s3_v20_notification_success(*args, **keywargs)

Tests calling S3Monitor._process_s3_notification() successfully with eventVersion 2.0

test_process_s3_v21_notification_success(*args, **keywargs)

Tests calling S3Monitor._process_s3_notification() successfully with eventVersion 2.1

test_validate_configuration_bad_sqs_name()

Tests calling S3Monitor.validate_configuration() with bad type for sqs_name

test_validate_configuration_empty_sqs_name()

Tests calling S3Monitor.validate_configuration() with empty sqs_name

test_validate_configuration_missing_sqs_name()

Tests calling S3Monitor.validate_configuration() with missing sqs_name

test_validate_configuration_success(*args, **keywargs)

Tests calling S3Monitor.validate_configuration() successfully

Module contents