Closed jaegeral closed 10 months ago
This also triggers the problem:
def test_normal_upload_json(self):
"""Test the upload of a json file with a few events."""
# create a new sketch
rand = random.randint(0, 10000)
sketch = self.api.create_sketch(name=rand)
self.sketch = sketch
file_path = "/usr/local/src/timesketch/end_to_end_tests/test_data/sigma_events.jsonl"
self.import_timeline(file_path, index_name=rand, sketch=sketch)
timeline = sketch.list_timelines()[0]
# check that timeline was uploaded correctly
self.assertions.assertEqual(timeline.name, file_path)
self.assertions.assertEqual(timeline.index.name, str(rand))
self.assertions.assertEqual(timeline.index.status, "ready")
events = sketch.explore("*", as_pandas=True)
self.assertions.assertEqual(len(events), 4)
closed with https://github.com/google/timesketch/pull/2976
Running a new end2end test with a jsonl file:
Is causing a
AttributeError
: