-
Notifications
You must be signed in to change notification settings - Fork 91
refactor(integration-tests): Migrate to SampleDataset and IntegrationTestPathConfig from classes.py; Deactivate IntegrationTestLogs; Deprecate config.IntegrationTestPathConfig.
#2241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
78fd082
4dbbf0f
dc879d2
fed048c
3861d54
6f1a71d
5f40b7a
033a4e5
1d5b940
95c8f2a
115925a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,11 @@ | ||||
| 2015-03-23 05:48:30,122 TEST1 | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Bill-hbrhbr can we check if the test cases match the ones in cpp?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||
| 2015-03-23 05:48:30,122Z TEST2 | ||||
| 2015-03-23 05:48:30,122 Z TEST3 | ||||
| 2015-03-23 05:48:30,122+00 TEST4 | ||||
| 2015-03-23 05:48:30,122+00Z TEST5 | ||||
| 2015-03-23 05:48:30,122 +00 TEST6 | ||||
| 2015-03-23 05:48:30,122 +00Z TEST7 | ||||
| 2015-03-23 05:48:30,122UTC+00 TEST8 | ||||
| 2015-03-23 05:48:30,122UTC+00Z TEST9 | ||||
| 2015-03-23 05:48:30,122 UTC+00 TEST10 | ||||
| 2015-03-23 05:48:30,122 UTC+00Z TEST11 | ||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "dataset_name": "text_singlefile", | ||
| "unstructured": true, | ||
| "timestamp_key": null, | ||
| "begin_ts": 1427089710122, | ||
| "end_ts": 1427089710122, | ||
| "logs_subdir": "logs", | ||
| "file_names": [ | ||
| "simple.txt" | ||
| ], | ||
| "single_match_wildcard_query": "TEST1" | ||
| } |
|
quinntaylormitchell marked this conversation as resolved.
Outdated
|
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| """Session-scoped fixtures for sample datasets stored in the integration-tests data folder.""" | ||
|
|
||
| import pytest | ||
|
|
||
| from tests.utils.classes import ( | ||
| IntegrationTestPathConfig, | ||
| SampleDataset, | ||
| ) | ||
|
|
||
|
|
||
| @pytest.fixture(scope="session") | ||
| def json_multifile( | ||
| integration_test_path_config: IntegrationTestPathConfig, | ||
| ) -> SampleDataset: | ||
| """Returns an object corresponding to the `json_multifile` sample dataset.""" | ||
| return SampleDataset( | ||
| dataset_root_dir=integration_test_path_config.test_data_dir / "json_multifile", | ||
| ) | ||
|
|
||
|
|
||
| @pytest.fixture(scope="session") | ||
| def text_multifile( | ||
| integration_test_path_config: IntegrationTestPathConfig, | ||
| ) -> SampleDataset: | ||
| """Returns an object corresponding to the `text_multifile` sample dataset.""" | ||
| return SampleDataset( | ||
| dataset_root_dir=integration_test_path_config.test_data_dir / "text_multifile", | ||
| ) | ||
|
|
||
|
|
||
| @pytest.fixture(scope="session") | ||
| def text_singlefile( | ||
| integration_test_path_config: IntegrationTestPathConfig, | ||
| ) -> SampleDataset: | ||
| """Returns an object corresponding to the `text_singlefile` sample dataset.""" | ||
| return SampleDataset( | ||
| dataset_root_dir=integration_test_path_config.test_data_dir / "text_singlefile", | ||
| ) |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.