Hello!
On Sat, Jun 20, 2015 at 5:14 AM, Rollin Crittendon wrote:
> I have an application that uses an environment variable.
> In the application's nginx.conf it looks something like this.
> ====
> env DATA_DIRECTORY;
> ====
> For testing I am using Test::Nginx::Socket::Lua.
> In a t-file for testing how do I get that same sort of value set?
>
Ah, there's no way to set that in the test file at the moment due to
the lack of interface. Maybe we can add a Perl function for that? For
example,
env_to_nginx("foo", "bar=32");
will add the following lines to the nginx.conf generated:
env foo;
env bar=32;
Will you submit a pull request for this feature? Thanks a lot!
Best regards,
-agentzh