openwhisk-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodric Rabbah <rod...@gmail.com>
Subject Re: Is it me or there is a bug in the mandatory tests?
Date Tue, 11 Sep 2018 19:29:32 GMT
it's not a bug in that the API host is provided as an environment variable
at container startup.
so the data passed into the container at /run does not include the
environment variable (today).

-r

On Tue, Sep 11, 2018 at 7:09 PM Michele Sciabarra <michele@sciabarra.com>
wrote:

> This is a separate issue related to the test 'it should  confirm expected
> environment variables'
>
> I was trying hard to pass this test and failing, and finally investigated
> the test code.
>
> I see this line:
>
>
> https://github.com/apache/incubator-openwhisk/blob/cfd50eee4194142e95bad6dfd8bf96ff08187050/tests/src/test/scala/actionContainers/BasicActionRunnerTests.scala#L276
>
> val (out, err) = withActionContainer(env.take(1).toMap)
>
> is it me, or that "take(1)" will limit the env to only one environment
> variable?
> Indeed, removing that take(1) I pass the test.
>
> Please let me know because that bug is preventing me to submit the PR and
> release a heavily tested and robust "golang" runtime
>
>
> --
>   Michele Sciabarra
>   michele@sciabarra.com
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message