-
Notifications
You must be signed in to change notification settings - Fork 91
refactor(integration-tests): Deprecate IntegrationTestLogs and tests.utils.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
Open
quinntaylormitchell
wants to merge
6
commits into
y-scope:main
Choose a base branch
from
quinntaylormitchell:testing-migration-datasets
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
78fd082
Make post-2181 changes.
quinntaylormitchell 4dbbf0f
Use test_cache_dir
quinntaylormitchell dc879d2
Rabbit.
quinntaylormitchell fed048c
Use test_cache_dir instead of test_root_dir
quinntaylormitchell 3861d54
Restore downloaded logs and related flows.
quinntaylormitchell 6f1a71d
Rabbit.
quinntaylormitchell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
integration-tests/tests/data/text_singlefile/logs/simple.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| 2015-03-23 05:48:30,122 TEST1 | ||
| 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 |
12 changes: 12 additions & 0 deletions
12
integration-tests/tests/data/text_singlefile/metadata.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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", | ||
| ) |
16 changes: 0 additions & 16 deletions
16
integration-tests/tests/package_tests/clp_json/data/json-multifile/README.md
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
...tion-tests/tests/package_tests/clp_json/data/json-multifile/logs/sts-135-2011-07-08.jsonl
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
...tion-tests/tests/package_tests/clp_json/data/json-multifile/logs/sts-135-2011-07-09.jsonl
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
...tion-tests/tests/package_tests/clp_json/data/json-multifile/logs/sts-135-2011-07-11.jsonl
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
...tion-tests/tests/package_tests/clp_json/data/json-multifile/logs/sts-135-2011-07-19.jsonl
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.