theintern / intern

A next-generation code testing stack for JavaScript.
https://theintern.io/
Other
4.36k stars 309 forks source link

Intern 2.0 seems to ignore proxy config for downloading sauce connect #215

Closed Flowkap closed 10 years ago

Flowkap commented 10 years ago

I tried to migrate our config (working with proxy) to intern 2.0 which should natively support a web proxy. The suites fail with the error

./node_modules/.bin/intern-runner config=src/swarco/tests/config/intern.sauce
Listening on 0.0.0.0:9000
Starting tunnel...
Error: connect ETIMEDOUT
Error: connect ETIMEDOUT
  at errnoException  <net.js:904:11>
  at Object.afterConnect [as oncomplete]  <net.js:895:19>
  at get  <node_modules\intern\node_modules\digdug\Tunnel.js:50:8>
  at download  <node_modules\intern\node_modules\digdug\Tunnel.js:312:14>
  at SauceLabsTunnel.util.mixin.download  <node_modules\intern\node_modules\digdug\Tunnel.js:350:3>
  at SauceLabsTunnel.util.mixin.download  <node_modules\intern\node_modules\digdug\SauceLabsTunnel.js:205:26>
  at SauceLabsTunnel.util.mixin.start  <node_modules\intern\node_modules\digdug\Tunnel.js:486:5>
  at <node_modules\intern\runner.js:246:12>
  at execModule  <node_modules\intern\node_modules\dojo\dojo.js:515:54>
  at <node_modules\intern\node_modules\dojo\dojo.js:582:7>
  at guardCheckComplete  <node_modules\intern\node_modules\dojo\dojo.js:566:4>
  at checkComplete  <node_modules\intern\node_modules\dojo\dojo.js:574:27>

The config is :

define(function () {
    return {
        proxyPort: 9000,
        proxyUrl: "http://localhost:9000",
        capabilities: {
            "max-duration": 180,
            "command-timeout": 60,
            "idle-timeout": 90
        },
        environments: [
            { browserName: 'internet explorer', version: '9', platform: 'Windows 7' }
        ],
        maxConcurrency: 2,
        tunnel: 'SauceLabsTunnel',
        tunnelOptions: {
            proxy: "http://10.17.5.20:8080",
            accessKey: "xxx",
            username: "xxx"
        },
        useLoader: {
            'host-node': 'dojo/dojo',
            'host-browser': 'node_modules/dojo/dojo.js'
        },
        loader: {
            packages: [
                { name: 'dojo', location: 'src/dojo' },
                { name: 'dojox', location: 'src/dojox' },
                { name: 'dijit', location: 'src/dijit' },
                { name: 'dgrid', location: 'src/dgrid' },
                { name: 'put-selector', location: 'src/put-selector' },
                { name: 'xstyle', location: 'src/xstyle' },
                { name: 'swarco', location: 'src/swarco' }
            ]
        },
        suites: [ "swarco/tests/main" ],
        excludeInstrumentation: /^tests\//
    };
});
jason0x43 commented 10 years ago

The proxy config is only used by the tunnel application itself (Sauce Connect in this case), not for downloading the tunnel.

Flowkap commented 10 years ago

But if the tunnel config depends on dowloading something this needs to be fixed!

csnover commented 10 years ago

Issue migrated to Dig Dug tracker, https://github.com/theintern/digdug/issues/1. Thanks for the report!

csnover commented 10 years ago

Actually, I’ll leave this open until it is fixed upstream and the dependencies are updated.

Flowkap commented 10 years ago

Sorry, of course it belongs to digdug.