-
Notifications
You must be signed in to change notification settings - Fork 184
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
fix: support InstanceType in saphostctrl #3512
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also I noticed some possible rule issues but I think those are related to test data and not structural changes.
@@ -142,11 +143,11 @@ def test_saphostctrl_docs(): | |||
|
|||
def test_saphostctrl(): | |||
sap = SAPHostCtrlInstances(context_wrap(SAPHOSTCTRL_HOSTINSTANCES_GOOD)) | |||
assert len(sap) == 10 | |||
assert sap.data[-2]['SapVersionInfo'] == '749, patch 401, changelist 1806777' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xiangce it might be good to leave this test in too for data
since you added it as a property to maintain backward compatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
And fixed the test data in rules per the parser.
Thanks for checking!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bfahr - The items you pointed out were fixed, I went ahead and merged this PR. For further issues, please let me know.
* feat: support InstanceType in saphostctrl Signed-off-by: Xiangce Liu <[email protected]> * fix and test the full_type Signed-off-by: Xiangce Liu <[email protected]> * Use full_type only to check function_instances Signed-off-by: Xiangce Liu <[email protected]> - Add 'Diagnostic Agents' * fix typos * revert the test cases of .data * revert the doc of attr 'instances' Signed-off-by: Xiangce Liu <[email protected]> (cherry picked from commit b965215)
* feat: support InstanceType in saphostctrl Signed-off-by: Xiangce Liu <[email protected]> * fix and test the full_type Signed-off-by: Xiangce Liu <[email protected]> * Use full_type only to check function_instances Signed-off-by: Xiangce Liu <[email protected]> - Add 'Diagnostic Agents' * fix typos * revert the test cases of .data * revert the doc of attr 'instances' Signed-off-by: Xiangce Liu <[email protected]>
Signed-off-by: Xiangce Liu [email protected]
All Pull Requests:
Check all that apply:
Complete Description of Additions/Changes:
From BZ-1969572, the "InstanceType" should be used as the identifier for SAP
function_instance