Move test_credentials.js to var/casper.

This commit is contained in:
Taranjeet Singh 2016-07-24 10:41:12 +05:30 committed by Tim Abbott
parent a131fc74f0
commit b143d6ca6e
5 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View File

@ -2,7 +2,6 @@
*~
/all_messages_log.*
/event_log/*
frontend_tests/casper_lib/test_credentials.js
/prod-static
/errors/*
*.sw[po]

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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) {}