mediawiki: Fix URL diagnostics with redirects involved

Upon access of MediaWiki URL, it redirects to the main page with the URL
configured. This new URL could only be accessed on IPv4 or IPv6 only. When curl
is invoked with the IP address version of a different kind, this fails. Tell the
diagnostics methods not the restrict to a particular address type.

Tests:

- All MediaWiki diagnostic tests pass. URL tests show that they haven't been
performed on particular address type but rather generically.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2022-05-21 19:55:18 -04:00
1 parent 436060fecb
commit 48457dd0d0
1 file changed
+2 -1
+2 -1
View File
@@ -80,7 +80,8 @@ class MediaWikiApp(app_module.App):
self.add(firewall)
webserver = Webserver('webserver-mediawiki', 'mediawiki',
urls=['https://{host}/mediawiki'])
urls=['https://{host}/mediawiki/'],
expect_redirects=True)
self.add(webserver)
webserver = Webserver('webserver-mediawiki-freedombox',