Hello!
On Tue, Dec 29, 2015 at 2:42 PM, David Birdsong wrote:
>
> it would be nice to be able to express a fully intact server stanza for
> testing upstream_by* and balancer_by*. for balancer tests, a fully
> encapsulated server stanza lets us fake out an entire backend. in my current
> example, i'm able to workaround using path and location to stub out a
> backend. for more complicated tests, an entire server means there's no
> issue with colliding url's sent upstream and existing location blocks in the
> server that originates the proxy_pass.
>
Well, if I understand you correctly, you can just put your own server
{} block(s) under --- http_server. It's common practice in the
openresty testing world.
Regards,
-agentzh