Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion config/mw-db-version-map.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

// TODO: Read from outside of this codebase so that MW updates do not require code changes here.
$versionMap = [
'mw1.39-wbs1' => '139',
'mw1.43-wbs1' => '143',
];

Expand Down
6 changes: 3 additions & 3 deletions tests/Services/MediaWikiHostResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ class MediaWikiHostResolverTest extends TestCase {

public function testResolverRoutesToCorrectHost(): void {
$domain = (new Factory)->create()->unique()->text(30);
$this->createWiki($domain, 'mw1.39-wbs1');
$this->createWiki($domain, 'mw1.43-wbs1');
$resolver = new MediaWikiHostResolver;
$this->assertEquals(
'mediawiki-139-app-backend.default.svc.cluster.local',
'mediawiki-143-app-backend.default.svc.cluster.local',
$resolver->getBackendHostForDomain($domain)
);
}
Expand All @@ -37,7 +37,7 @@ private function createWiki(string $domain, string $version) {

public function testResolverThrowsIfUnableToFindHostInMap(): void {
$domain = (new Factory)->create()->unique()->text(30);
$this->createWiki($domain, 'mw1.39-unmapped');
$this->createWiki($domain, 'mw1.43-unmapped');
$resolver = new MediaWikiHostResolver;
$this->assertThrows(
fn () => $resolver->getBackendHostForDomain($domain),
Expand Down
Loading