Skip to content

Commit

Permalink
Ingester: cleanup tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ABPLMC committed Oct 4, 2024
1 parent 645ce00 commit 08830c8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions ingester/tests/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_insert_new_record(dynamodb_latest_table, dynamodb_connection):
assert stored_record['metadata']['start'] == new_record['metadata']['start']


def test_store_conditional_put_latest_multiple_files(dynamodb_latest_table, dynamodb_connection):
def test_insert_duplicate_writes_once(dynamodb_latest_table, dynamodb_connection):
storage = DynamoDBStorage(connection=dynamodb_connection)
storage.latest_table_name = 'latest'

Expand Down Expand Up @@ -145,7 +145,7 @@ def test_store_conditional_put_latest_multiple_files(dynamodb_latest_table, dyna



def test_insert_ingestion_issue(dynamodb_latest_table, dynamodb_connection):
def test_verify_replace_same_start_time(dynamodb_latest_table, dynamodb_connection):
storage = DynamoDBStorage(connection=dynamodb_connection)
storage.latest_table_name = 'latest'

Expand Down Expand Up @@ -187,11 +187,8 @@ def test_insert_ingestion_issue(dynamodb_latest_table, dynamodb_connection):
'create_time': 1500000000000
}

try:
storage.store_latest(record1)
storage.store_latest(record2)
except Exception as e:
print(f"Failed to store record: {str(e)}")
storage.store_latest(record1)
storage.store_latest(record2)

stored_record = dynamodb_latest_table.get_item(
what_where_key="syslog:ground_server2"
Expand Down

0 comments on commit 08830c8

Please sign in to comment.