erossignon / redmine-api

access Redmine using its REST API and nodejs
MIT License
0 stars 1 forks source link

test wrong port not specified in config.js #1

Open ilkosta opened 9 years ago

ilkosta commented 9 years ago

Hi,

I've just downloaded the project and tested with a redmine 3.0.1 deployed with the port 10082.

exports.config = {
    username: "<myusername>",
    password: "<mypwd>",
    url: "http://<somehostname>:10082/",
    cache_folder: "tmp"
};

When I run the tests I got the error:

  Testing extracting cookie
 get authenticity token Got error: connect ECONNREFUSED 10.101.10.163:80 options = { host: '<somehostname>', path: '/login', port: 80 }
Cookie Error connect ECONNREFUSED 10.101.10.163:80
 cookie =  undefined
    1) should extract a cookie

The error seems to be the port: 80

ilkosta commented 9 years ago

https://github.com/erossignon/redmine-api/pull/2 but does not fully fix the tests