It looks like the test scaffolding isn't using the test configuration correctly in several places. I haven't completely figured out the interaction between the 3akai-ux casperjs tests and the Hilary oae-tests library, but some problems are apparent.
3akai-ux/tests/casperjs/beforeTests is hard-coding the test tenant configuration instead of using a configured value (e.g. from 3akai-ux/tests/casperjs/util/include/config.js).
Hilary/node_modules/oae-tests/lib/util.jscreateInitialTestConfig is overwriting server config values (e.g. config.servers.globalAdminHost = 'localhost:2000' instead of using configured values.
Hilary/node_modules/oae-tests/lib/util.jssetUpTenants is hard-coding URLs instead of using configured values (e.g. in 3akai-ux/tests/casperjs/util/include/config.js).
3akai-ux/tests/casperjs/beforeTests is using its own test tenant instead of using the test tenants that are created by setUpTenants in Hilary/node_modules/oae-tests/lib/util.js
I'm still trying to parse all this out, but the effect (in my case) is that a few of the casperjs tests pass, but most do not. I think the problem is that some of the 3akai-ux test code is relying on configured values and other parts of the code are ignoring those values and trying to use the hard-coded ones. (On my local installation, none of the hard-coded values will work because they require admin privileges; I'm running OAE on non-privleged port 8080).
It looks like the test scaffolding isn't using the test configuration correctly in several places. I haven't completely figured out the interaction between the 3akai-ux casperjs tests and the Hilary
oae-tests
library, but some problems are apparent.3akai-ux/tests/casperjs/beforeTests
is hard-coding the test tenant configuration instead of using a configured value (e.g. from3akai-ux/tests/casperjs/util/include/config.js
).Hilary/node_modules/oae-tests/lib/util.js
createInitialTestConfig
is overwriting server config values (e.g.config.servers.globalAdminHost = 'localhost:2000'
instead of using configured values.Hilary/node_modules/oae-tests/lib/util.js
setUpTenants
is hard-coding URLs instead of using configured values (e.g. in3akai-ux/tests/casperjs/util/include/config.js
).3akai-ux/tests/casperjs/beforeTests
is using its own test tenant instead of using the test tenants that are created bysetUpTenants
inHilary/node_modules/oae-tests/lib/util.js
I'm still trying to parse all this out, but the effect (in my case) is that a few of the casperjs tests pass, but most do not. I think the problem is that some of the 3akai-ux test code is relying on configured values and other parts of the code are ignoring those values and trying to use the hard-coded ones. (On my local installation, none of the hard-coded values will work because they require admin privileges; I'm running OAE on non-privleged port 8080).