mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
[manual] Rename shakespeare users to zulip.com domain.
We need to update our Nagios configuration when this is deployed. (imported from commit 28cc3ecfe30c41562742733d6952c8e69b87d67e)
This commit is contained in:
@@ -88,16 +88,16 @@ def get_humbug(recipient, max_message_id):
|
|||||||
|
|
||||||
if options.site == "staging.humbughq.com":
|
if options.site == "staging.humbughq.com":
|
||||||
# hamlet and othello are default users on staging
|
# hamlet and othello are default users on staging
|
||||||
sender = "hamlet@humbughq.com"
|
sender = "hamlet@zulip.com"
|
||||||
sender_key = "dfe1c934d555f4b9538d0d4cfd3069c2"
|
sender_key = "dfe1c934d555f4b9538d0d4cfd3069c2"
|
||||||
recipient = "othello@humbughq.com"
|
recipient = "othello@zulip.com"
|
||||||
recipient_key = "4e5d97591bec64bf57d2698ffbb563e3"
|
recipient_key = "4e5d97591bec64bf57d2698ffbb563e3"
|
||||||
site = "https://staging.humbughq.com/api"
|
site = "https://staging.humbughq.com/api"
|
||||||
else:
|
else:
|
||||||
# cordelia and iago are default users on prod
|
# cordelia and iago are default users on prod
|
||||||
sender = "iago@humbughq.com"
|
sender = "iago@zulip.com"
|
||||||
sender_key = "d43b53c27a8106195b46781abc67901a"
|
sender_key = "d43b53c27a8106195b46781abc67901a"
|
||||||
recipient = "cordelia@humbughq.com"
|
recipient = "cordelia@zulip.com"
|
||||||
recipient_key = "24cf18de98d5c31da9c6c79f0cbec195"
|
recipient_key = "24cf18de98d5c31da9c6c79f0cbec195"
|
||||||
site = "https://api.humbughq.com"
|
site = "https://api.humbughq.com"
|
||||||
|
|
||||||
|
|||||||
@@ -140,11 +140,11 @@ class HumbugSession extends Session
|
|||||||
host = 'http://localhost:9991'
|
host = 'http://localhost:9991'
|
||||||
|
|
||||||
users = [
|
users = [
|
||||||
{username:'iago@humbughq.com', password: 'FlokrWdZefyEWkfI'}
|
{username: 'iago@zulip.com', password: 'JhwLkBydEG1tAL5P'}
|
||||||
{username: 'othello@humbughq.com', password: '52VeZqtHDCdAr5yM'}
|
{username: 'othello@zulip.com', password: 'GX5MTQ+qYSzcmDoH'}
|
||||||
{username: 'cordelia@humbughq.com', password: 'ZBldCWrQYEckMcaL'}
|
{username: 'cordelia@zulip.com', password: '+1pkoQiP0wEbEvv/'}
|
||||||
{username: 'hamlet@humbughq.com', password: 'qXqHrDf/UByuJQOb'}
|
{username: 'hamlet@zulip.com', password: 'Z/hx5nEcXRQBGzk3'}
|
||||||
{username: 'prospero@humbughq.com', password: 'GxInqKrm+2u06gfQ'}
|
{username: 'prospero@zulip.com', password: 'j+XqHkQ2cycwCQJE'}
|
||||||
]
|
]
|
||||||
|
|
||||||
user_start_step = 1000*1
|
user_start_step = 1000*1
|
||||||
|
|||||||
@@ -122,9 +122,9 @@ class Command(BaseCommand):
|
|||||||
|
|
||||||
# Create test Users (UserProfiles are automatically created,
|
# Create test Users (UserProfiles are automatically created,
|
||||||
# as are subscriptions to the ability to receive personals).
|
# as are subscriptions to the ability to receive personals).
|
||||||
names = [("Othello, the Moor of Venice", "othello@humbughq.com"), ("Iago", "iago@humbughq.com"),
|
names = [("Othello, the Moor of Venice", "othello@zulip.com"), ("Iago", "iago@zulip.com"),
|
||||||
("Prospero from The Tempest", "prospero@humbughq.com"),
|
("Prospero from The Tempest", "prospero@zulip.com"),
|
||||||
("Cordelia Lear", "cordelia@humbughq.com"), ("King Hamlet", "hamlet@humbughq.com")]
|
("Cordelia Lear", "cordelia@zulip.com"), ("King Hamlet", "hamlet@zulip.com")]
|
||||||
for i in xrange(options["extra_users"]):
|
for i in xrange(options["extra_users"]):
|
||||||
names.append(('Extra User %d' % (i,), 'extrauser%d@humbughq.com' % (i,)))
|
names.append(('Extra User %d' % (i,), 'extrauser%d@humbughq.com' % (i,)))
|
||||||
create_users(realms, names)
|
create_users(realms, names)
|
||||||
@@ -459,8 +459,8 @@ def restore_saved_messages():
|
|||||||
|
|
||||||
if 'sending_client' in old_message:
|
if 'sending_client' in old_message:
|
||||||
message.sending_client = clients[old_message['sending_client']]
|
message.sending_client = clients[old_message['sending_client']]
|
||||||
elif sender_email in ["othello@humbughq.com", "iago@humbughq.com", "prospero@humbughq.com",
|
elif sender_email in ["othello@zulip.com", "iago@zulip.com", "prospero@zulip.com",
|
||||||
"cordelia@humbughq.com", "hamlet@humbughq.com"]:
|
"cordelia@zulip.com", "hamlet@zulip.com"]:
|
||||||
message.sending_client = clients['populate_db']
|
message.sending_client = clients['populate_db']
|
||||||
elif realm.domain == "humbughq.com":
|
elif realm.domain == "humbughq.com":
|
||||||
message.sending_client = clients["website"]
|
message.sending_client = clients["website"]
|
||||||
|
|||||||
346
zephyr/tests.py
346
zephyr/tests.py
File diff suppressed because it is too large
Load Diff
@@ -11,7 +11,7 @@ var last_send_or_update = -1;
|
|||||||
|
|
||||||
function log_in(credentials) {
|
function log_in(credentials) {
|
||||||
if (credentials === undefined) {
|
if (credentials === undefined) {
|
||||||
credentials = {username: 'iago@humbughq.com', password: 'FlokrWdZefyEWkfI'};
|
credentials = {username: 'iago@zulip.com', password: 'JhwLkBydEG1tAL5P'};
|
||||||
}
|
}
|
||||||
|
|
||||||
casper.test.info('Logging in');
|
casper.test.info('Logging in');
|
||||||
|
|||||||
@@ -46,13 +46,13 @@ common.send_many([
|
|||||||
{ stream: 'Verona', subject: 'other subject',
|
{ stream: 'Verona', subject: 'other subject',
|
||||||
content: 'test message C' },
|
content: 'test message C' },
|
||||||
|
|
||||||
{ recipient: 'cordelia@humbughq.com, hamlet@humbughq.com',
|
{ recipient: 'cordelia@zulip.com, hamlet@zulip.com',
|
||||||
content: 'personal A' },
|
content: 'personal A' },
|
||||||
|
|
||||||
{ recipient: 'cordelia@humbughq.com, hamlet@humbughq.com',
|
{ recipient: 'cordelia@zulip.com, hamlet@zulip.com',
|
||||||
content: 'personal B' },
|
content: 'personal B' },
|
||||||
|
|
||||||
{ recipient: 'cordelia@humbughq.com',
|
{ recipient: 'cordelia@zulip.com',
|
||||||
content: 'personal C' }]);
|
content: 'personal C' }]);
|
||||||
|
|
||||||
common.wait_for_receive(function () {
|
common.wait_for_receive(function () {
|
||||||
@@ -77,7 +77,7 @@ common.send_many([
|
|||||||
{ stream: 'Verona', subject: 'frontend test',
|
{ stream: 'Verona', subject: 'frontend test',
|
||||||
content: 'test message D' },
|
content: 'test message D' },
|
||||||
|
|
||||||
{ recipient: 'cordelia@humbughq.com, hamlet@humbughq.com',
|
{ recipient: 'cordelia@zulip.com, hamlet@zulip.com',
|
||||||
content: 'personal D' }
|
content: 'personal D' }
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
@@ -23,22 +23,22 @@ common.send_many([
|
|||||||
{ stream: 'Venice', subject: 'frontend test',
|
{ stream: 'Venice', subject: 'frontend test',
|
||||||
content: 'other message' },
|
content: 'other message' },
|
||||||
|
|
||||||
{ recipient: 'cordelia@humbughq.com, hamlet@humbughq.com',
|
{ recipient: 'cordelia@zulip.com, hamlet@zulip.com',
|
||||||
content: 'personal A' },
|
content: 'personal A' },
|
||||||
|
|
||||||
{ recipient: 'cordelia@humbughq.com, hamlet@humbughq.com',
|
{ recipient: 'cordelia@zulip.com, hamlet@zulip.com',
|
||||||
content: 'personal B' },
|
content: 'personal B' },
|
||||||
|
|
||||||
{ recipient: 'cordelia@humbughq.com',
|
{ recipient: 'cordelia@zulip.com',
|
||||||
content: 'personal C' },
|
content: 'personal C' },
|
||||||
|
|
||||||
{ stream: 'Verona', subject: 'frontend test',
|
{ stream: 'Verona', subject: 'frontend test',
|
||||||
content: 'test message D' },
|
content: 'test message D' },
|
||||||
|
|
||||||
{ recipient: 'cordelia@humbughq.com, hamlet@humbughq.com',
|
{ recipient: 'cordelia@zulip.com, hamlet@zulip.com',
|
||||||
content: 'personal D' },
|
content: 'personal D' },
|
||||||
|
|
||||||
{ recipient: 'cordelia@humbughq.com',
|
{ recipient: 'cordelia@zulip.com',
|
||||||
content: 'personal E' }
|
content: 'personal E' }
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ common.send_message('stream', {
|
|||||||
content: "We reply to this message"
|
content: "We reply to this message"
|
||||||
});
|
});
|
||||||
common.send_message('private', {
|
common.send_message('private', {
|
||||||
recipient: "cordelia@humbughq.com",
|
recipient: "cordelia@zulip.com",
|
||||||
content: "And reply to this message"
|
content: "And reply to this message"
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ casper.waitUntilVisible('#stream', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
casper.waitUntilVisible('#private_message_recipient', function () {
|
casper.waitUntilVisible('#private_message_recipient', function () {
|
||||||
common.check_form('#send_message_form', {recipient: "cordelia@humbughq.com"}, "Recipient populated after PM click");
|
common.check_form('#send_message_form', {recipient: "cordelia@zulip.com"}, "Recipient populated after PM click");
|
||||||
|
|
||||||
common.keypress(27); //escape
|
common.keypress(27); //escape
|
||||||
casper.page.sendEvent('keypress', 'k');
|
casper.page.sendEvent('keypress', 'k');
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ casper.waitUntilVisible("#old_password", function () {
|
|||||||
|
|
||||||
casper.fill(form_sel, {
|
casper.fill(form_sel, {
|
||||||
"full_name": "IagoNew",
|
"full_name": "IagoNew",
|
||||||
"old_password": "FlokrWdZefyEWkfI",
|
"old_password": "JhwLkBydEG1tAL5P",
|
||||||
"new_password": "qwertyuiop",
|
"new_password": "qwertyuiop",
|
||||||
"confirm_password": "qwertyuiop"
|
"confirm_password": "qwertyuiop"
|
||||||
});
|
});
|
||||||
@@ -52,8 +52,8 @@ casper.waitUntilVisible('#api_key_value', function () {
|
|||||||
casper.fill(form_sel, {
|
casper.fill(form_sel, {
|
||||||
"full_name": "Iago",
|
"full_name": "Iago",
|
||||||
"old_password": "qwertyuiop",
|
"old_password": "qwertyuiop",
|
||||||
"new_password": "FlokrWdZefyEWkfI",
|
"new_password": "JhwLkBydEG1tAL5P",
|
||||||
"confirm_password": "FlokrWdZefyEWkfI"
|
"confirm_password": "JhwLkBydEG1tAL5P"
|
||||||
});
|
});
|
||||||
casper.click('input[name="change_settings"]');
|
casper.click('input[name="change_settings"]');
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ common.then_log_out();
|
|||||||
|
|
||||||
// Othello
|
// Othello
|
||||||
casper.open("http://localhost:9981/accounts/login");
|
casper.open("http://localhost:9981/accounts/login");
|
||||||
common.then_log_in({username: 'othello@humbughq.com', password: '52VeZqtHDCdAr5yM'});
|
common.then_log_in({username: 'othello@zulip.com', password: 'GX5MTQ+qYSzcmDoH'});
|
||||||
|
|
||||||
casper.then(function () {
|
casper.then(function () {
|
||||||
// Force a pointer update so we no longer have a -1 pointer in the db
|
// Force a pointer update so we no longer have a -1 pointer in the db
|
||||||
@@ -35,7 +35,7 @@ casper.then(function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
common.then_log_out();
|
common.then_log_out();
|
||||||
common.then_log_in({username: 'iago@humbughq.com', password: 'FlokrWdZefyEWkfI'});
|
common.then_log_in({username: 'iago@zulip.com', password: 'JhwLkBydEG1tAL5P'});
|
||||||
|
|
||||||
send_with_content('Iago unread test 1');
|
send_with_content('Iago unread test 1');
|
||||||
send_with_content('Iago unread test 2');
|
send_with_content('Iago unread test 2');
|
||||||
@@ -52,7 +52,7 @@ send_with_content('Iago unread test 12');
|
|||||||
send_with_content('Iago unread test 13');
|
send_with_content('Iago unread test 13');
|
||||||
common.then_log_out();
|
common.then_log_out();
|
||||||
|
|
||||||
common.then_log_in({username: 'othello@humbughq.com', password: '52VeZqtHDCdAr5yM'});
|
common.then_log_in({username: 'othello@zulip.com', password: 'GX5MTQ+qYSzcmDoH'});
|
||||||
casper.then(function () {
|
casper.then(function () {
|
||||||
// Make sure we have 3 unread messages
|
// Make sure we have 3 unread messages
|
||||||
casper.test.assertSelectorHasText("a[href='#narrow/stream/Verona']", 'Verona', 'Unread count in sidebar is correct');
|
casper.test.assertSelectorHasText("a[href='#narrow/stream/Verona']", 'Verona', 'Unread count in sidebar is correct');
|
||||||
@@ -98,7 +98,7 @@ casper.then(function () {
|
|||||||
|
|
||||||
});
|
});
|
||||||
common.then_log_out();
|
common.then_log_out();
|
||||||
common.then_log_in({username: 'othello@humbughq.com', password: '52VeZqtHDCdAr5yM'});
|
common.then_log_in({username: 'othello@zulip.com', password: 'GX5MTQ+qYSzcmDoH'});
|
||||||
casper.then(function () {
|
casper.then(function () {
|
||||||
casper.test.assertSelectorHasText("a[href='#narrow/stream/Verona']", 'Verona', 'Sidebar unread correct on login');
|
casper.test.assertSelectorHasText("a[href='#narrow/stream/Verona']", 'Verona', 'Sidebar unread correct on login');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user