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 2022-05-10 11:59:04 -07:00 committed by James Valleroy
parent 436060fecb
commit 48457dd0d0
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

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',