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.*
|
||||
/event_log/*
|
||||
frontend_tests/casper_lib/test_credentials.js
|
||||
/prod-static
|
||||
/errors/*
|
||||
*.sw[po]
|
||||
|
|
|
@ -2,7 +2,7 @@ var common = (function () {
|
|||
|
||||
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() {
|
||||
return new Date().getTime();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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();
|
||||
|
||||
|
|
|
@ -5,8 +5,10 @@ cd "$(dirname "$0")"/../..
|
|||
|
||||
email=iago@zulip.com
|
||||
|
||||
mkdir -p var/casper
|
||||
|
||||
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
|
||||
var test_credentials = {default_user: {username: '$email', password: '$password'}};
|
||||
try { exports.test_credentials = test_credentials; } catch (e) {}
|
||||
|
|
Loading…
Reference in New Issue