diff --git a/pyproject.toml b/pyproject.toml index 75a1135..8944a27 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = 'poetry.masonry.api' [tool.poetry] name = 'CfgNet' -version = '1.0.2' +version = '1.0.3' description = 'A Framework for Tracking Configuration Dependencies Across a Software Project' authors = [ 'Sebastian Simon ', diff --git a/src/cfgnet/config_types/config_type_inferer.py b/src/cfgnet/config_types/config_type_inferer.py index 42a6a51..c2e7884 100644 --- a/src/cfgnet/config_types/config_type_inferer.py +++ b/src/cfgnet/config_types/config_type_inferer.py @@ -406,9 +406,6 @@ def get_config_type(self, option_name: str, value: str): results.sort(key=lambda x: x[1].value, reverse=True) - print(results) - print(option_name, value) - if self.is_boolean(value): return ConfigType.BOOLEAN @@ -419,8 +416,6 @@ def get_config_type(self, option_name: str, value: str): if len(results) > 1: confidence_levels = [result[1] for result in results][:2] - print(len(confidence_levels)) - if all( confidence == confidence_levels[0] for confidence in confidence_levels diff --git a/src/cfgnet/network/network.py b/src/cfgnet/network/network.py index ef917b2..0d597da 100644 --- a/src/cfgnet/network/network.py +++ b/src/cfgnet/network/network.py @@ -312,7 +312,6 @@ def init_network(cfg: NetworkConfiguration) -> Network: plugins, abs_file_path ) if plugin: - print("File to parse: ", abs_file_path) try: plugin.parse_file( abs_file_path=abs_file_path, diff --git a/src/cfgnet/plugins/file_type/hadoop_plugin.py b/src/cfgnet/plugins/file_type/hadoop_plugin.py index 510d888..7e93901 100644 --- a/src/cfgnet/plugins/file_type/hadoop_plugin.py +++ b/src/cfgnet/plugins/file_type/hadoop_plugin.py @@ -103,7 +103,6 @@ def parse_tree(self, subtree: _Element, parent_node: Node): property_value = child.text.strip() if property_name: - print(property_name, config_type) option = OptionNode( property_name, subtree.sourceline, ConfigType.UNKNOWN ) diff --git a/tests/cfgnet/config_types/test_config_type_inferer.py b/tests/cfgnet/config_types/test_config_type_inferer.py index 0bea1d1..25fb25b 100644 --- a/tests/cfgnet/config_types/test_config_type_inferer.py +++ b/tests/cfgnet/config_types/test_config_type_inferer.py @@ -143,5 +143,4 @@ def test_config_types(get_inferer): for test in test_dataset: inferred_type = inferer.get_config_type(test["option_name"], test["value"]) - print(test["option_name"], test["value"], test["expected_type"], inferred_type) assert inferred_type == test["expected_type"] diff --git a/tests/cfgnet/plugins/concept/test_docker_compose_plugin.py b/tests/cfgnet/plugins/concept/test_docker_compose_plugin.py index 7e7a10f..7f36141 100644 --- a/tests/cfgnet/plugins/concept/test_docker_compose_plugin.py +++ b/tests/cfgnet/plugins/concept/test_docker_compose_plugin.py @@ -54,9 +54,6 @@ def test_parse_docker_compose_file(get_plugin): nodes = artifact.get_nodes() ids = {node.id for node in nodes} - for id in ids: - print(id) - assert artifact is not None assert len(nodes) == 20 diff --git a/tests/cfgnet/plugins/concept/test_gradle_plugin.py b/tests/cfgnet/plugins/concept/test_gradle_plugin.py index bf3e68b..a8e8293 100644 --- a/tests/cfgnet/plugins/concept/test_gradle_plugin.py +++ b/tests/cfgnet/plugins/concept/test_gradle_plugin.py @@ -41,9 +41,6 @@ def test_config_types(get_plugin): artifact = plugin.parse_file(gradle_file, "gradle.properties") nodes = artifact.get_nodes() - for node in nodes: - print(node, node.config_type) - name_node = next(filter(lambda x: x.id == make_id("gradle.properties", "appname", "MyApp"), nodes)) boolean_node = next(filter(lambda x: x.id == make_id("gradle.properties", "org.gradle.daemon", "true"), nodes)) time_node = next(filter(lambda x: x.id == make_id("gradle.properties", "org.gradle.daemon.idletimeout", "1000"), nodes)) diff --git a/tests/cfgnet/plugins/concept/test_maven_plugin.py b/tests/cfgnet/plugins/concept/test_maven_plugin.py index 5ab82a2..4683842 100644 --- a/tests/cfgnet/plugins/concept/test_maven_plugin.py +++ b/tests/cfgnet/plugins/concept/test_maven_plugin.py @@ -46,9 +46,6 @@ def test_parse_maven_file(get_plugin): value_nodes = artifact.get_nodes() ids = {node.id for node in value_nodes} - for id in ids: - print(id) - assert artifact is not None assert len(value_nodes) == 31 diff --git a/tests/cfgnet/plugins/concept/test_mongodb_plugin.py b/tests/cfgnet/plugins/concept/test_mongodb_plugin.py index 740901b..d40019b 100644 --- a/tests/cfgnet/plugins/concept/test_mongodb_plugin.py +++ b/tests/cfgnet/plugins/concept/test_mongodb_plugin.py @@ -50,9 +50,6 @@ def test_parse_postgresql_file(get_plugin): nodes = artifact.get_nodes() ids = sorted(list({node.id for node in nodes})) - for node in nodes: - print(node, node.config_type, node.parent.location) - assert artifact is not None assert len(nodes) == 9 diff --git a/tests/cfgnet/plugins/concept/test_yarn_plugin.py b/tests/cfgnet/plugins/concept/test_yarn_plugin.py index 419e4ef..1a09ad4 100644 --- a/tests/cfgnet/plugins/concept/test_yarn_plugin.py +++ b/tests/cfgnet/plugins/concept/test_yarn_plugin.py @@ -61,9 +61,6 @@ def test_config_types(get_plugin): artifact = plugin.parse_file(yarn_file, "yarn-site.xml") nodes = artifact.get_nodes() - for node in nodes: - print(node, node.config_type) - number_node = next(filter(lambda x: x.id == make_id("yarn-site.xml", "configuration", "property", "yarn.nodemanager.resource.cpu-vcores", "value", "4"), nodes)) name_node = next(filter(lambda x: x.id == make_id("yarn-site.xml", "configuration", "property", "yarn.resourcemanager.hostname", "value", "resourcemanager.example.com"), nodes)) size_node = next(filter(lambda x: x.id == make_id("yarn-site.xml", "configuration", "property", "yarn.nodemanager.resource.memory-mb", "value", "8192"), nodes))