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

fix ipv6 formatting for consul API #287

Closed
wants to merge 3 commits into from
Closed

Conversation

knalx
Copy link

@knalx knalx commented Mar 2, 2017

When consul api return IPv6 address - spring cloud consul can't parse it correctly - using it as is.
Added IPv6 address format modification.

@pivotal-issuemaster
Copy link

@knalx Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@knalx Thank you for signing the Contributor License Agreement!

Copy link
Member

@spencergibb spencergibb left a comment

Choose a reason for hiding this comment

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

This change breaks two tests.

Results :

Tests in error:
  getMetadataWorks(org.springframework.cloud.consul.discovery.ConsulDiscoveryClientCustomizedTests): java.net.UnknownHostException: testConsulDiscovery2Host: unknown error
  testGetFilteredListOfServers(org.springframework.cloud.consul.discovery.HealthServiceServerListFilterTests): java.net.UnknownHostException: serviceaddrPASSING: unknown error

- fix exception checking
- add test
@knalx
Copy link
Author

knalx commented Mar 6, 2017

Sorry, did not check it. Now it works.

Copy link
Member

@spencergibb spencergibb left a comment

Choose a reason for hiding this comment

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

We use tabs, not spaces

spencergibb added a commit that referenced this pull request Mar 7, 2017
* pull287:
  Fixes ipv6 formatting for consul discovery.
@spencergibb
Copy link
Member

Squash and merged with some polish via 0069798

@spencergibb spencergibb closed this Mar 7, 2017
@spencergibb spencergibb added this to the 1.2.0.RC1 milestone Mar 7, 2017
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.

None yet

3 participants