mirror of https://github.com/zulip/zulip.git
Move test_credentials.js to var/casper.
This commit is contained in:
parent
a131fc74f0
commit
b143d6ca6e
|
@ -2,7 +2,6 @@
|
||||||
*~
|
*~
|
||||||
/all_messages_log.*
|
/all_messages_log.*
|
||||||
/event_log/*
|
/event_log/*
|
||||||
frontend_tests/casper_lib/test_credentials.js
|
|
||||||
/prod-static
|
/prod-static
|
||||||
/errors/*
|
/errors/*
|
||||||
*.sw[po]
|
*.sw[po]
|
||||||
|
|
|
@ -2,7 +2,7 @@ var common = (function () {
|
||||||
|
|
||||||
var exports = {};
|
var exports = {};
|
||||||
|
|
||||||
var test_credentials = require('../casper_lib/test_credentials.js').test_credentials;
|
var test_credentials = require('../../var/casper/test_credentials.js').test_credentials;
|
||||||
|
|
||||||
function timestamp() {
|
function timestamp() {
|
||||||
return new Date().getTime();
|
return new Date().getTime();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
var common = require('../casper_lib/common.js').common;
|
var common = require('../casper_lib/common.js').common;
|
||||||
var test_credentials = require('../casper_lib/test_credentials.js').test_credentials;
|
var test_credentials = require('../../var/casper/test_credentials.js').test_credentials;
|
||||||
|
|
||||||
common.start_and_log_in();
|
common.start_and_log_in();
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
var common = require('../casper_lib/common.js').common;
|
var common = require('../casper_lib/common.js').common;
|
||||||
var test_credentials = require('../casper_lib/test_credentials.js').test_credentials;
|
var test_credentials = require('../../var/casper/test_credentials.js').test_credentials;
|
||||||
|
|
||||||
common.start_and_log_in();
|
common.start_and_log_in();
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,10 @@ cd "$(dirname "$0")"/../..
|
||||||
|
|
||||||
email=iago@zulip.com
|
email=iago@zulip.com
|
||||||
|
|
||||||
|
mkdir -p var/casper
|
||||||
|
|
||||||
password=$(python manage.py print_initial_password "$email" | fgrep "$email" | awk '{ print $2 }')
|
password=$(python manage.py print_initial_password "$email" | fgrep "$email" | awk '{ print $2 }')
|
||||||
cat > frontend_tests/casper_lib/test_credentials.js <<EOF
|
cat > var/casper/test_credentials.js <<EOF
|
||||||
// Generated by tools/setup/generate-test-credentials
|
// Generated by tools/setup/generate-test-credentials
|
||||||
var test_credentials = {default_user: {username: '$email', password: '$password'}};
|
var test_credentials = {default_user: {username: '$email', password: '$password'}};
|
||||||
try { exports.test_credentials = test_credentials; } catch (e) {}
|
try { exports.test_credentials = test_credentials; } catch (e) {}
|
||||||
|
|
Loading…
Reference in New Issue