Giuseppe Lavagetto has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/351616 )
Change subject: Change the expected message in the db configurations
......................................................................
Change the expected message in the db configurations
This is a consequence of change I5648209dd
Bug: T164177
Change-Id: I58c65427b5d6e10dff13eb5de7f21485b9e3576f
---
M switchdc/stages/t02_start_mediawiki_readonly.py
M switchdc/stages/t08_stop_mediawiki_readonly.py
2 files changed, 14 insertions(+), 14 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/switchdc
refs/changes/16/351616/1
diff --git a/switchdc/stages/t02_start_mediawiki_readonly.py
b/switchdc/stages/t02_start_mediawiki_readonly.py
index 900bddb..7736b5f 100644
--- a/switchdc/stages/t02_start_mediawiki_readonly.py
+++ b/switchdc/stages/t02_start_mediawiki_readonly.py
@@ -16,13 +16,13 @@
message = 'Set MediaWiki in read-only mode in datacenter
{dc_from}'.format(dc_from=dc_from)
filename = 'db-{dc_from}'.format(dc_from=dc_from)
expected = """'readOnlyBySection' => [
-\t's1' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-\t's2' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-\t'DEFAULT' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes', # s3
-\t's4' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-\t's5' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-\t's6' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-\t's7' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
+\t's1' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+\t's2' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+\t'DEFAULT' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.', # s3
+\t's4' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+\t's5' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+\t's6' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+\t's7' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
],"""
if not mediawiki.check_config_line(filename, expected):
diff --git a/switchdc/stages/t08_stop_mediawiki_readonly.py
b/switchdc/stages/t08_stop_mediawiki_readonly.py
index f4575a5..6914fe1 100644
--- a/switchdc/stages/t08_stop_mediawiki_readonly.py
+++ b/switchdc/stages/t08_stop_mediawiki_readonly.py
@@ -16,13 +16,13 @@
message = 'Set MediaWiki in read-write mode in datacenter
{dc_to}'.format(dc_to=dc_to)
filename = 'db-{dc_to}'.format(dc_to=dc_to)
expected = """'readOnlyBySection' => [
-#\t's1' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-#\t's2' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-#\t'DEFAULT' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes', # s3
-#\t's4' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-#\t's5' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-#\t's6' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-#\t's7' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
+#\t's1' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+#\t's2' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+#\t'DEFAULT' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.', # s3
+#\t's4' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+#\t's5' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+#\t's6' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+#\t's7' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
],"""
if not mediawiki.check_config_line(filename, expected):
--
To view, visit https://gerrit.wikimedia.org/r/351616
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I58c65427b5d6e10dff13eb5de7f21485b9e3576f
Gerrit-PatchSet: 1
Gerrit-Project: operations/switchdc
Gerrit-Branch: master
Gerrit-Owner: Giuseppe Lavagetto <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits