Skip to content
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

getting rid of Ignores for sanity tests #62

Merged

Conversation

rohitthakur2590
Copy link
Contributor

Signed-off-by: Rohit Thakur rohitthakur2590@outlook.com

SUMMARY

Resolve: #57

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

iosxr_.*

ADDITIONAL INFORMATION

plugins/modules/iosxr_interface.py Outdated Show resolved Hide resolved
@@ -1089,7 +1151,7 @@ def main():
hostnameprefix=dict(type="str"),
level=dict(
type="str",
default="informational",
default="debugging",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this was changed based on what the default is set in the doc for this key? Shouldn't it be the other way round i.e., updating the doc based on what's there in argspec? Changing the default value of a key in argspec can have other side effects.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this should be based on the default value in doc key as which is aligned with cisco IOS-XR default value for severity argument.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So what I meant was, since the default value of a key is fetched from argument spec and not the doc while being used for computing, it is quite possible that changing it to something else may cause unintended effects and also break existing plays that rely on the default behaviour of level to be debugging.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having said that, I do not know what the default logging level is in IOS-XR and whether it varies between different versions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we should go for what's there in ansible iosxr_logging supported by iosxr platform documentation. What we have right now in our argument spec is a programming mistake or a potential bug.

tests/sanity/ignore-2.10.txt Outdated Show resolved Hide resolved
tests/sanity/ignore-2.9.txt Outdated Show resolved Hide resolved
Signed-off-by: Rohit Thakur <rohitthakur2590@outlook.com>
Signed-off-by: Rohit Thakur <rohitthakur2590@outlook.com>
Signed-off-by: Rohit Thakur <rohitthakur2590@outlook.com>
@rohitthakur2590 rohitthakur2590 force-pushed the sanity_ignore_list_fix branch from b764845 to 944d7cf Compare July 23, 2020 08:10
Signed-off-by: Rohit Thakur <rohitthakur2590@outlook.com>
@rohitthakur2590 rohitthakur2590 force-pushed the sanity_ignore_list_fix branch 2 times, most recently from 6d1a4d7 to 3641606 Compare July 23, 2020 14:41
Signed-off-by: Rohit Thakur <rohitthakur2590@outlook.com>
@rohitthakur2590 rohitthakur2590 force-pushed the sanity_ignore_list_fix branch from 3641606 to f696dfe Compare July 23, 2020 16:18
Signed-off-by: Rohit Thakur <rohitthakur2590@outlook.com>
@rohitthakur2590 rohitthakur2590 added gate and removed gate labels Jul 24, 2020
@ansible-zuul ansible-zuul bot merged commit 05b4f31 into ansible-collections:main Jul 24, 2020
@rohitthakur2590 rohitthakur2590 deleted the sanity_ignore_list_fix branch October 5, 2020 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix ansible sanity test ignored failures
3 participants