Skip to content

Commit

Permalink
chore: [PAGOPA-2582] Added mock pm to UAT (#2740)
Browse files Browse the repository at this point in the history
* added mock pm to uat

* fix
  • Loading branch information
aomegax authored Jan 23, 2025
1 parent 491f7f1 commit 6e9b7d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/domains/nodo-app/04_apim_mock_pm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module "apim_mock_pm_product" {
source = "./.terraform/modules/__v3__/api_management_product"
count = var.env_short == "d" ? 1 : 0
count = var.env_short == "p" ? 0 : 1

product_id = "mock_pm"
display_name = "Mock PM for NDP"
Expand Down Expand Up @@ -35,7 +35,7 @@ locals {
}

resource "azurerm_api_management_api_version_set" "api_mock_pm_api" {
count = var.env_short == "d" ? 1 : 0
count = var.env_short == "p" ? 0 : 1

name = format("%s-mock-pm-service-api", var.env_short)
resource_group_name = local.pagopa_apim_rg
Expand All @@ -47,7 +47,7 @@ resource "azurerm_api_management_api_version_set" "api_mock_pm_api" {

module "apim_api_mock_pm_api_v1" {
source = "./.terraform/modules/__v3__/api_management_api"
count = var.env_short == "d" ? 1 : 0
count = var.env_short == "p" ? 0 : 1

name = format("%s-mock-pm-service-api", local.project)
api_management_name = local.pagopa_apim_name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<inbound>
<base />
<!-- https://weudev.nodo.internal.dev.platform.pagopa.it/mock-pm(/|$)(.*) -->
<set-backend-service base-url="https://${hostname}/mock-pm" />
<set-backend-service base-url="https://${hostname}/mock-pm-replica" />
</inbound>
<outbound>
<base />
Expand Down

0 comments on commit 6e9b7d8

Please sign in to comment.