busterjs/buster — Issue #57: Proxying to server broken?
Author: magnars
Created: 2012-01-14 17:48:21+00:00
State: open

I get a 404 on all requests. Here's the config:

var config = module.exports;

config["Integration tests"] = {
libs: ["client_dependencies/**/*.js"],
sources: ["lib/shared/**/*.js", "lib/client/**/*.js"],
tests: ["test/integration/**/*-test.js"],
environment: "browser",
resources: { "/app": "http://127.0.0.1:3000" }
};

Here's the test:

(function (Z) {
"use strict";

buster.testCase('Building Page', {
"should add room when clicking build button": function (done) {
$("body").load("app/", function () {
var numRooms = $("#building li").length;
assert.equals(numRooms, 4);
done();
});
}
});
}(ZOMBIE));

Here's the URL it tries:

http://localhost:1111/sessions/6e91af1d-f329-4d3c-a569-8894975b9b1a/resources/app/

And to be clear, the server does respond on http://127.0.0.1:3000 :-)

I also tried with a non-root path, no difference.