-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
access process.env.PARTITION in application config #46
Comments
So a couple things:
|
i know it sounds strange, but our acceptance tests works with real backend, and at the beginning of every acceptance test we need to 'login' test user, but login works in such way - when you login in one place, backend terminates other session, and parallel tests fail because of that. so if there would be information about partitions it would be possible to use different test logins for different partitions. Maybe i am doing something wrong and there is better solution for my problem? |
Seems reasonable. As long as you're not directly supplying the tests with the partition number, then I think it makes sense. I would likely do something like: // config/environment.js
var USERS = [
// user login information
];
module.exports = function() {
var partition = process.env.PARTITION;
return {
testUser: USERS[partition]
};
}; |
@trentmwillis thanks for reply But to manually specify
am i right? |
Again:
This means that yes, you must set it in your environment. If you're hoping to use this with the Your only real option for doing this at run time is to check the query parameters. |
Thanks, i'll try this way. |
Hi, thanks for great tool.
I have a small question.
Is there any ways to access
PARTITION
number in emberconfig/environment.js
file?I need it badly in my acceptance tests.
The text was updated successfully, but these errors were encountered: