Skip to content

Commit

Permalink
Redirect ams search (#2)
Browse files Browse the repository at this point in the history
* Redirect ams search

* Fix type of mock site provider
  • Loading branch information
acharron-hl committed Oct 27, 2023
1 parent 04ceb13 commit ab483a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Mock/MockSite.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* A mock local site for testing purposes.
*
* @extends Site<MockSite, LocalCluster>
* @extends Site<MockSite, MockCluster>
*/
class MockSite extends Site
{
Expand Down
2 changes: 1 addition & 1 deletion src/Mock/MockSiteProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* A Mock LocalSiteProvider for testing purposes.
*
* @extends SiteProvider<MockSite, LocalCluster>
* @extends SiteProvider<MockSite, MockCluster>
*/
class MockSiteProvider extends SiteProvider
{
Expand Down
3 changes: 1 addition & 2 deletions src/Site.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,8 @@ public function getSearchServiceBaseUrl(): string
return "https://yul1-dev1-vanillasearch-api.v-fabric.net";
case Cluster::REGION_YUL1_PROD1:
case Cluster::REGION_SJC1_PROD1: // Temporarily using the YUL prod instance until https://higherlogic.atlassian.net/browse/PV-229 is completed.
case Cluster::REGION_AMS1_PROD1: // Temporarily using YUL prod instance into AMS is re-provisioned https://higherlogic.atlassian.net/browse/PV-323
return "https://yul1-vanillasearch-prod1-api.v-fabric.net";
case Cluster::REGION_AMS1_PROD1:
return "https://ms-vanilla-search-api-ams.v-fabric.net";
default:
throw new InvalidRegionException($this->getCluster()->getRegionID());
}
Expand Down

0 comments on commit ab483a1

Please sign in to comment.