Giter Site home page Giter Site logo

Comments (11)

eykrehbein avatar eykrehbein commented on July 29, 2024

Have you defined your Env variable in the .bash_profile file or in the terminal? Because I ran into the same issue when I defined it in the terminal on MacOS and node6/8. But when I made a new entry into the ~/.bash_profile file and restarted my terminal it has worked correctly

from strest.

jgroom33 avatar jgroom33 commented on July 29, 2024

Is the behavior different if export FOO=bar.com is used?

from strest.

eykrehbein avatar eykrehbein commented on July 29, 2024

Yes unfortunately it will be undefined

from strest.

ncuster avatar ncuster commented on July 29, 2024

I have tried a few things, and still have the same problem:
export URL=foo && strest # what I originally tried, doesn't work
URL=foo strest # var inline, doesn't work
put URL=foo in ~/.bash_profile and then ran strest # doesn't work

from strest.

shrikster avatar shrikster commented on July 29, 2024

can you share your post.yml file ?

from strest.

ncuster avatar ncuster commented on July 29, 2024

This is a test case that is similar to mine:

foo.strest.yml:

version: 1

requests:
  login:
    url: Env(URL)
    method: GET
    log: true

export URL=https://www.google.com
strest ./foo.strest.yml

Yields the following:
[ Strest ] Found 1 test file(s)
[ Strest ] Schema validation: 1 of 1 file(s) passed

✖ Testing login failed (0.035s)

Error: connect ECONNREFUSED 127.0.0.1:80

[ Strest ] Failed before finishing all requests

from strest.

eykrehbein avatar eykrehbein commented on July 29, 2024

Have you tried to define the ENV variables in your ~/.bash_profile file and then restart your terminal?

from strest.

ncuster avatar ncuster commented on July 29, 2024

I did try that as well and it still fails.

from strest.

jgroom33 avatar jgroom33 commented on July 29, 2024

I suggest this issue is closed.
Even if the root cause is determined, handling specific host environments is not something that should be implemented.

from strest.

ncuster avatar ncuster commented on July 29, 2024

Do we know if this is a Mac OS specific issue, or a node 8 issue? I'll try to test on linux with node 8 and see if I can reproduce.

from strest.

ncuster avatar ncuster commented on July 29, 2024

I haven't had time to look into this any further, and not sure when I'll have time on MacOS again. So following the advice above and closing.

from strest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.