-
Notifications
You must be signed in to change notification settings - Fork 22
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
Adding the new login URL of NSO 5.7.5.1 #95
base: main
Are you sure you want to change the base?
Conversation
In the version 5.7.5.1 of NSO "/api" isn't available anymore. The new login URL is "/restconf".
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.
please add Unittest and pass log for this change.
Here is the pass log :
Here is the Unittest code I've adapted for my version of NSO (5.7.5.1) :
|
Here is the pass log for all the unittest tests :
|
log.debug("Response: {c} {r}, headers: {h}".format(c=response.status_code, | ||
r=response.reason, h=response.headers)) |
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.
Please move the debug logging into the for loop
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.
Done
Can you add an additional test with the code changes? (Have not compared above with the code but I assume you made changes) |
Moove the debug inside the for
Here is the tests with the code changes :
|
In the version 5.7.5.1 of NSO the login URL "http://NSO_IP:8080/api" isn't available anymore. The new login URL is "http://NSO_IP:8080/restconf".