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

DNS to StackInABox mapping... #53

Open
BenjamenMeyer opened this issue Sep 18, 2017 · 1 comment
Open

DNS to StackInABox mapping... #53

BenjamenMeyer opened this issue Sep 18, 2017 · 1 comment

Comments

@BenjamenMeyer
Copy link
Member

Typically a StackInABoxService is mapped to a URL such as https://localhost/<servicename>/; however, sometimes it might be helpful to hap the StackInABoxService to just the DNS, such as https://<servicename> or https://<servicename>.localhost.

The current method is rather built-in to how StackInABox currently functions. It shouldn't be hard to add support for the other methods too; but it will require some additional support in stackinabox.util so the DNS names can be mapped, as well as an update to the routing to be able to support sending either one to a given StackInABoxService instance - thereby making both forms available.

This should also make it easier to support some services, like AWS, where the tools (e.g boto, botocore, boto3) have the DNS names more hard-coded into them.

@BenjamenMeyer
Copy link
Member Author

This might be limited by the support utility (requests-mock, responses, and httpretty) that are directly supported...but we should still investigate to see if there is anything in StackInABox itself that would be a limiting factor too so that it could be supported if the utilities could make it happen.

requests-mock - this directly implements the Requests Adapter interfaces so in theory this may be the easiest to support in this manner.
httpretty - this might be the hardest
responses - not sure off hand, but it's probably somewhere in between the other two

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant