zulip/tools/setup/generate-test-credentials

15 lines
399 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"/../..
email=desdemona@zulip.com
mkdir -p var/puppeteer
password=$(./manage.py print_initial_password "$email" | grep -F "$email" | awk '{ print $2 }')
cat >var/puppeteer/test_credentials.js <<EOF
// Generated by tools/setup/generate-test-credentials
export const test_credentials = {default_user: {username: '$email', password: '$password'}};
EOF