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

oci_discovery/ref_engine_discovery/__main__.py: Add --protocol and --port #11

Merged
merged 2 commits into from
Sep 12, 2017

Conversation

wking
Copy link
Contributor

@wking wking commented Sep 11, 2017

With --protocol replacing the old --https-only. With these changes, you can do things like:

$ python3 -m oci_discovery.ref_engine_discovery --protocol http --port 8080 '[::1]/app#1.0'

when testing locally.

Fixes #9 (although there are probably other ways we could address that too).

Instead of --https-only.  This allows us to specify HTTP-only when we
want to, e.g. testing against a server that does not support TLS.
To allow users to easily test against ref-engine discovery services
running on non-standard ports.  For example:

  $ python3 -m oci_discovery.ref_engine_discovery --protocol http --port 8080 '[::1]/app#1.0'
@xiekeyang
Copy link
Owner

LGTM It works correctly. Later we may support resolution like:

$ python3 -m oci_discovery.ref_engine_discovery 'localhost:8080/app#1.0'

Because consumers want this do be resolved automatically IMO.

@xiekeyang xiekeyang merged commit 115c165 into xiekeyang:master Sep 12, 2017
@wking wking deleted the explicit-port branch September 14, 2017 21:23
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.

None yet

2 participants