ondemand icon indicating copy to clipboard operation
ondemand copied to clipboard

e2e tests for server aliases

Open johrstrom opened this issue 3 years ago • 1 comments

With #2213, we'll have everything we need for server aliases and the Rails support for them.

We should likely have and end to end test that can update /etc/hosts in the container. I believe they all use localhost as the server, so I don't actually know how to get the browser to recognize the new hostname, or maybe the hash containers get as a hostname will work?

Which is to say - I'm not sure it's actually possible given the browser & OS has to also recognize this additional hostname for the container.

┆Issue is synchronized with this Asana task by Unito

johrstrom avatar Aug 11 '22 19:08 johrstrom

So I think all you'd need to do is update /etc/hosts outside the container and inside the container with same host alias for 127.0.0.1 so it's more than localhost. Github Actions I believe allow you to do things like that with sudo, at least I've used sudo in the past in Github Actions. Could simplify and define the /etc/hosts as a fixture and copy with sudo to /etc/hosts and then upload to container with beaker functions.

treydock avatar Aug 11 '22 20:08 treydock