Skip to content

Commit

Permalink
defined subkey for gps mbd integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gioelemella authored and pasqualespica committed Dec 10, 2024
1 parent e3f165d commit 439c3cd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/domains/ebollo-app/05_subkey.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,12 @@ resource "azurerm_api_management_subscription" "payments_subkey" {
allow_tracing = false
state = "active"
}

resource "azurerm_api_management_subscription" "gps_mbd_service_integration_test_subkey" {
api_management_name = data.azurerm_api_management.apim.name
resource_group_name = data.azurerm_api_management.apim.resource_group_name
product_id = module.apim_mbd_gps_product.id
display_name = "Subscription GPS MBD Service for Integration Test"
allow_tracing = false
state = "active"
}
8 changes: 8 additions & 0 deletions src/domains/ebollo-app/06_keyvault.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,13 @@ resource "azurerm_key_vault_secret" "payments_key_subscription_key" {
key_vault_id = data.azurerm_key_vault.kv.id
}

resource "azurerm_key_vault_secret" "gps_mbd_service_integration_test_subscription_key" {
name = "apikey-integration_test"
value = azurerm_api_management_subscription.gps_mbd_service_integration_test_subkey.primary_key
content_type = "text/plain"

key_vault_id = data.azurerm_key_vault.kv.id
}



0 comments on commit 439c3cd

Please sign in to comment.