Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

populate_db: Set owners for bots in development and test database.

Sahil Batra947b2b55fe31
diff --git a/frontend_tests/puppeteer_tests/settings.ts b/frontend_tests/puppeteer_tests/settings.ts
index 1a1c049a693..1f08edd431d 100644
--- a/frontend_tests/puppeteer_tests/settings.ts
+++ b/frontend_tests/puppeteer_tests/settings.ts
@@ -228,6 +228,7 @@ async function test_invalid_edit_bot_form(page: Page): Promise<void> {
async function test_your_bots_section(page: Page): Promise<void> {
await page.click('[data-section="your-bots"]');
+ await page.click(".add-a-new-bot-tab");
await test_webhook_bot_creation(page);
await test_normal_bot_creation(page);
await test_botserverrc(page);
diff --git a/zilencer/management/commands/populate_db.py b/zilencer/management/commands/populate_db.py
index fa095f86609..e7f187aa291 100644
--- a/zilencer/management/commands/populate_db.py
+++ b/zilencer/management/commands/populate_db.py
@@ -507,7 +507,9 @@ class Command(BaseCommand):
for i in range(options["extra_bots"]):
zulip_realm_bots.append((f"Extra Bot {i}", f"extrabot{i}@zulip.com"))
- create_users(zulip_realm, zulip_realm_bots, bot_type=UserProfile.DEFAULT_BOT)
+ create_users(
+ zulip_realm, zulip_realm_bots, bot_type=UserProfile.DEFAULT_BOT, bot_owner=desdemona
+ )
zoe = get_user_by_delivery_email("[email protected]", zulip_realm)
zulip_webhook_bots = [
@@ -911,7 +913,10 @@ class Command(BaseCommand):
("Zulip Nagios Bot", "[email protected]"),
]
create_users(
- zulip_realm, internal_zulip_users_nosubs, bot_type=UserProfile.DEFAULT_BOT
+ zulip_realm,
+ internal_zulip_users_nosubs,
+ bot_type=UserProfile.DEFAULT_BOT,
+ bot_owner=desdemona,
)
mark_all_messages_as_read()