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 some extra fields in the OpenStack Network Object: #2015 #2016

Merged
merged 7 commits into from
Jun 17, 2024

Conversation

micafer
Copy link
Contributor

@micafer micafer commented Jun 6, 2024

Add is_default and tags extra fields in the OpenStack Network Object

Description

Add is_default, description and tags extra fields in the OpenStack Network Object: #2015

Status

Replace this: describe the PR status. Examples:

  • done, ready for review

Checklist (tick everything that applies)

  • Code linting (required, can be done after the PR checks)
  • Documentation
  • Tests
  • ICLA (required for bigger changes)

@micafer micafer changed the title Add some is_default and tags extra fields in the OpenStack Network Object: #2015 Add some extra fields in the OpenStack Network Object: #2015 Jun 6, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jun 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.26%. Comparing base (0f3b1bc) to head (0cf0634).

Additional details and impacted files
@@           Coverage Diff           @@
##            trunk    #2016   +/-   ##
=======================================
  Coverage   83.26%   83.26%           
=======================================
  Files         353      353           
  Lines       81310    81327   +17     
  Branches     8565     8568    +3     
=======================================
+ Hits        67697    67714   +17     
  Misses      10823    10823           
  Partials     2790     2790           
Files Coverage Δ
libcloud/compute/drivers/openstack.py 84.99% <100.00%> (+0.06%) ⬆️
libcloud/test/compute/test_openstack.py 94.57% <100.00%> (+0.03%) ⬆️

@@ -3160,6 +3160,12 @@ def _to_network(self, obj):
extra["router:external"] = obj.get("router:external")
if obj.get("subnets", None):
extra["subnets"] = obj.get("subnets")
if obj.get("tags", None):
Copy link
Member

Choose a reason for hiding this comment

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

Per codecov comment (#2016 (comment)) could you please add additional test cases so all the new code paths are covered?

This includes tests for all those fields being present and not being present (so both the explicit "if" and implicit "else" code branches are covered).

Thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@Kami Kami merged commit 624879d into apache:trunk Jun 17, 2024
17 checks passed
asfgit pushed a commit that referenced this pull request Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants