-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not collect metadata stuff on client side
- "metadata" was already collected by core collection specs - This change needs QE tests for all dependencies - Jira: RHINENG-7581 Signed-off-by: Xiangce Liu <[email protected]>
- Loading branch information
Showing
5 changed files
with
23 additions
and
267 deletions.
There are no files selected for viewing
This file contains 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 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
29 changes: 4 additions & 25 deletions
29
insights/tests/client/core_collector/test_run_collection.py
This file contains 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 |
---|---|---|
@@ -1,39 +1,18 @@ | ||
from mock.mock import patch | ||
|
||
from insights.client.archive import InsightsArchive | ||
from insights.client.config import InsightsConfig | ||
from insights.client.core_collector import CoreCollector | ||
|
||
|
||
@patch('insights.client.core_collector.logger') | ||
@patch('insights.client.core_collector.CoreCollector._write_egg_release', return_value=None) | ||
@patch('insights.client.core_collector.CoreCollector._write_blacklisted_specs', return_value=None) | ||
@patch('insights.client.core_collector.CoreCollector._write_blacklist_report', return_value=None) | ||
@patch('insights.client.core_collector.CoreCollector._write_tags', return_value=None) | ||
@patch('insights.client.core_collector.CoreCollector._write_version_info', return_value=None) | ||
@patch('insights.client.core_collector.CoreCollector._write_ansible_host', return_value=None) | ||
@patch('insights.client.core_collector.CoreCollector._write_display_name', return_value=None) | ||
@patch('insights.client.core_collector.CoreCollector._write_branch_info', return_value=None) | ||
@patch('insights.client.core_collector.systemd_notify_init_thread', return_value=None) | ||
@patch('insights.client.core_collector.InsightsArchive.create_archive_dir', return_value=None) | ||
@patch('insights.client.core_collector.collect', return_value=None) | ||
def test_run_collection( | ||
collect, | ||
create_archive_dir, | ||
systemd_notify_init_thread, | ||
_write_branch_info, | ||
_write_display_name, | ||
_write_ansible_host, | ||
_write_version_info, | ||
_write_tags, | ||
_write_blacklist_report, | ||
_write_blacklisted_specs, | ||
_write_egg_release, | ||
logger): | ||
def test_run_collection(collect, create_archive_dir, systemd_notify_init_thread, logger): | ||
conf = InsightsConfig() | ||
arch = InsightsArchive(conf) | ||
cc = CoreCollector(conf, arch) | ||
cc = CoreCollector(conf) | ||
cc.run_collection({}, {}, {}) | ||
systemd_notify_init_thread.assert_called_once() | ||
create_archive_dir.assert_called_once() | ||
collect.collect.assert_called_once() | ||
logger.debug.assert_called_with('Metadata collection finished.') | ||
logger.debug.assert_called_with('Core collection finished.') |
123 changes: 0 additions & 123 deletions
123
insights/tests/client/core_collector/test_write_metadata.py
This file was deleted.
Oops, something went wrong.
This file contains 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