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

Add support for UC 5.2.X #81

Merged
merged 2 commits into from
Feb 29, 2024
Merged

Add support for UC 5.2.X #81

merged 2 commits into from
Feb 29, 2024

Conversation

mirohudec
Copy link
Contributor

@mirohudec mirohudec commented Feb 28, 2024

Modify workers to support UC 5.2.X and reformat code using black.

Checklist

  • Add description to the PR
  • Bump version in setup.py for dedicated python package

@mirohudec mirohudec requested review from lhajabacs and Jozefiel and removed request for lhajabacs February 28, 2024 12:12
@mirohudec mirohudec marked this pull request as draft February 28, 2024 13:23
@mirohudec mirohudec force-pushed the uc_5_2_X branch 2 times, most recently from f82dd86 to a442a15 Compare February 28, 2024 14:21
@mirohudec mirohudec marked this pull request as ready for review February 28, 2024 14:40
@@ -156,8 +171,8 @@ def test_mount_existing_device(self):
request["output"]["url"],
uniconfig_url_base + "/operations/connection-manager:install-node",
)
self.assertEqual(request["output"]["response_code"], 204)
self.assertEqual(request["output"]["response_body"], {})
self.assertEqual(request["output"]["response_code"], 409)
Copy link
Collaborator

Choose a reason for hiding this comment

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

is 409 ok status code? just to be sure

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Based on the code it seems that if the node was already installed the task should end successfully.
UC 5.2.7 sends 409 for that scenario
image

@Jozefiel Jozefiel merged commit 27873fc into master Feb 29, 2024
3 checks passed
@Jozefiel Jozefiel deleted the uc_5_2_X branch February 29, 2024 08:17
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.

2 participants