Skip to content

changing ignore list messages from errors to info #1223

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

Merged
merged 1 commit into from
Oct 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"DbPassiveMode": [ {"version": "[12.2.1.3,)", "wlst_mode": "both", "wlst_name": "${Db:DB}PassiveMode", "wlst_path": "WP001", "default_value": "false", "wlst_type": "boolean" } ],
"DbPassiveModeGracePeriodSeconds": [ {"version": "[12.2.1.3,)", "wlst_mode": "both", "wlst_name": "${Db:DB}PassiveModeGracePeriodSeconds", "wlst_path": "WP001", "default_value": 30, "wlst_type": "integer" } ],
"DiagnosticContextCompatibilityModeEnabled": [ {"version": "[12.2.1,)", "wlst_mode": "both", "wlst_name": "DiagnosticContextCompatibilityModeEnabled", "wlst_path": "WP001", "default_value": "true", "wlst_type": "boolean" } ],
"DomainVersion": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "DomainVersion", "wlst_path": "WP001", "default_value": null, "wlst_type": "string", "access": "ROD"} ],
"DomainVersion": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "DomainVersion", "wlst_path": "WP001", "default_value": null, "derived_default": "true", "wlst_type": "string", "access": "ROD"} ],
"EnableEeCompliantClassloadingForEmbeddedAdapters": [ {"version": "[12.2.1,)", "wlst_mode": "both", "wlst_name": "Enable${Ee:EE}CompliantClassloadingForEmbeddedAdapters", "wlst_path": "WP001", "default_value": "${false:true}", "wlst_type": "boolean", "get_method": "LSA" } ],
"ExalogicOptimizationsEnabled": [ {"version": "[10.3.4,)", "wlst_mode": "both", "wlst_name": "ExalogicOptimizationsEnabled", "wlst_path": "WP001", "default_value": "false", "wlst_type": "boolean", "restart_required": "true" } ],
"GuardianEnabled": [ {"version": "[10,12.2.1.3)", "wlst_mode": "both", "wlst_name": "GuardianEnabled", "wlst_path": "WP001", "default_value": "false", "wlst_type": "boolean" } ,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@
ATTRIBUTE_ERROR_RANGE = range(4000, 4999)

TESTED_MBEAN_FOLDER = 1000
INFO_ATTRIBUTE_IN_IGNORE_LIST = 1001

WARN_MBEAN_NOT_NO_NAME_0 = 5101
WARN_ATTRIBUTE_DEPRECATED = 5502
WARN_ATTRIBUTE_HAS_UNKNOWN_TYPE = 5500
WARN_ALIAS_FOLDER_NOT_IMPLEMENTED = 5501


ERROR_FAILURE_ATTRIBUTE_LIST = 2000
ERROR_FAILURE_ATTRIBUTE_UNEXPECTED = 2001

Expand Down Expand Up @@ -90,7 +92,6 @@
ERROR_ATTRIBUTE_NOT_IN_WLST = 4018
ERROR_ATTRIBUTE_CANNOT_CONVERT_BACK = 4019
ERROR_ATTRIBUTE_CANNOT_SET = 4020
ERROR_ATTRIBUTE_IN_IGNORE_LIST = 4021
ERROR_ATTRIBUTE_PATH_TOKEN_REQUIRED = 4022
ERROR_ATTRIBUTE_WRONG_DEFAULT_VALUE = 4023
ERROR_ATTRIBUTE_MUST_BE_NO_NAME = 4024
Expand Down Expand Up @@ -127,7 +128,7 @@
ERROR_ATTRIBUTE_NOT_RESTART: 'Attribute marked restart',
ERROR_ATTRIBUTE_CANNOT_SET: 'Cannot SET default value',
ERROR_ATTRIBUTE_MUST_BE_NO_NAME: 'Attribute name must be set to NO_NAME_0',
ERROR_ATTRIBUTE_IN_IGNORE_LIST: 'Alias attribute is WLST attribute in the ignore list',
INFO_ATTRIBUTE_IN_IGNORE_LIST: 'Alias attribute is WLST attribute in the ignore list',
ERROR_ATTRIBUTE_NOT_IN_WLST: 'Alias attribute not in MBean',
ERROR_FAILURE_ATTRIBUTE_LIST: 'Invalid Alias attribute list',
ERROR_CANNOT_TEST_MBEAN_UNSPECIFIED: 'Unspecified problem',
Expand Down Expand Up @@ -404,7 +405,7 @@ def _verify_attributes_at_location(self, generated_attributes, location):

for unprocessed in unprocessed_alias_list:
if unprocessed in self._alias_helper.get_ignore_attribute_names():
self._add_error(location, ERROR_ATTRIBUTE_IN_IGNORE_LIST, attribute=unprocessed)
self._add_info(location, INFO_ATTRIBUTE_IN_IGNORE_LIST, attribute=unprocessed)
else:
message = ''
if verify_utils.is_clear_text_password(unprocessed):
Expand Down