Skip to content

Extensions Refactor - #443

Merged
jrperritt merged 7 commits into
gophercloud:masterfrom
jtopjian:networkv2-extensions-refactor
Aug 7, 2017
Merged

jrperritt merged 7 commits into
gophercloud:masterfrom
jtopjian:networkv2-extensions-refactor

Conversation

@jtopjian

@jtopjian jtopjian commented Aug 5, 2017

Copy link
Copy Markdown
Contributor

For #300

@jtopjian
jtopjian requested a review from jrperritt August 5, 2017 00:35
@jtopjian

jtopjian commented Aug 5, 2017

Copy link
Copy Markdown
Contributor Author

I'm not sure if this PR could be broken up into separate ones. I believe a change in any of these will cause tests to fail in other areas.

@jrperritt

Copy link
Copy Markdown
Contributor

Thanks for digging into this! After skimming it, the first thing I'd like to see are several pass/fail scenarios run via unit tests for extractIntoPtr (located in a yet-to-be-created /testing/results_test.go). Having the networking unit tests that run through the function are a bonus, but really we want to know if the function itself stands up to all the things we want it to.

@jtopjian

jtopjian commented Aug 5, 2017

Copy link
Copy Markdown
Contributor Author

After skimming it, the first thing I'd like to see are several pass/fail scenarios run via unit tests for extractIntoPtr

Ah, yeah, that's a good point. I'll look at this sometime this weekend.

I think the Travis error is with Travis itself. All tests pass locally.

@jrperritt

Copy link
Copy Markdown
Contributor

From Travis:

acceptance/openstack/networking/v2/extensions/extensions.go:24: undefined: external.CreateOpts

This commit refactors the external network extension by doing two
things:

1. It extends the base Network CreateOpts with an External field
rather than maintaining a separate copy of CreateOpts.

2. It provides the ability to extend the results with the
`router:external` field.
@jtopjian
jtopjian force-pushed the networkv2-extensions-refactor branch from 439cc7e to 8a4d7f5 Compare August 5, 2017 01:41
@jtopjian

jtopjian commented Aug 5, 2017

Copy link
Copy Markdown
Contributor Author

You have a better eye than me!

@jtopjian
jtopjian force-pushed the networkv2-extensions-refactor branch from 5ef19f5 to a1e3688 Compare August 6, 2017 02:33
@jtopjian

jtopjian commented Aug 6, 2017

Copy link
Copy Markdown
Contributor Author

@jrperritt Let me know if there are any other scenarios you had in mind.

@jtopjian
jtopjian force-pushed the networkv2-extensions-refactor branch from a1e3688 to 62e140d Compare August 6, 2017 02:36
@gophercloud gophercloud deleted a comment from coveralls Aug 6, 2017
@gophercloud gophercloud deleted a comment from coveralls Aug 6, 2017
@coveralls

coveralls commented Aug 6, 2017 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.2%) to 71.456% when pulling 62e140d on jtopjian:networkv2-extensions-refactor into 3172ddf on gophercloud:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.2%) to 71.456% when pulling 62e140d on jtopjian:networkv2-extensions-refactor into 3172ddf on gophercloud:master.

1 similar comment
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.2%) to 71.456% when pulling 62e140d on jtopjian:networkv2-extensions-refactor into 3172ddf on gophercloud:master.

@jrperritt jrperritt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great job on this

@jrperritt
jrperritt merged commit c0406a1 into gophercloud:master Aug 7, 2017
@jtopjian

jtopjian commented Aug 7, 2017

Copy link
Copy Markdown
Contributor Author

Yay! Thanks!

jobrs pushed a commit to sapcc/gophercloud that referenced this pull request Aug 17, 2017
* Network v2: Updating networks to support extensions

* Network v2: Network unit test cleanup

* Network v2: Provider Extension

* Network v2: Provider Extension unit tests

* Core: Handle nested JSON unmarshaling

* Network v2: Refactor External Network extension

This commit refactors the external network extension by doing two
things:

1. It extends the base Network CreateOpts with an External field
rather than maintaining a separate copy of CreateOpts.

2. It provides the ability to extend the results with the
`router:external` field.

* Core: Unit tests for unmarshaling results
@jtopjian
jtopjian deleted the networkv2-extensions-refactor branch April 24, 2018 03:12
cardoe pushed a commit to cardoe/gophercloud that referenced this pull request Aug 27, 2020
This commit will format IPv6 records in a way that the DNSaaS /
Designate service expects them to be. Notably, it strips the brackets
from the addresses.

Passing IPv6 records with brackets already removed still works.
msheikh-wind pushed a commit to msheikh-wind/gophercloud that referenced this pull request May 19, 2025
…hercloud#443)

When system controller is ready, it will notify all the other reconcilers
about the ready state, so the other controllers can start the
reconciliation loop. This commit ensures that the system controller
can notify the other controller even if the last iteration failed to
call the webhook, but the system is reconciled.

Test Case:
- PASS: Deploy AIO-SX
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.

3 participants