Skip to content

Commit

Permalink
fix: Uses [email protected] in TF module and itests (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gmerold authored Dec 18, 2024
1 parent e39439f commit 79a4f61
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ resource "juju_application" "udr" {
name = "sdcore-udr-k8s"
channel = var.channel
revision = var.revision
base = var.base
}

config = var.config
Expand Down
6 changes: 6 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ variable "revision" {
default = null
}

variable "base" {
description = "The operating system on which to deploy"
type = string
default = "[email protected]"
}

variable "units" {
description = "Number of units to deploy"
type = number
Expand Down
3 changes: 3 additions & 0 deletions tests/integration/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
AUTH_DATABASE_RELATION_NAME = "auth_database"
NRF_RELATION_NAME = "fiveg_nrf"
TLS_RELATION_NAME = "certificates"
SDCORE_CHARMS_BASE = "[email protected]"


class TestUDROperatorCharm:
Expand Down Expand Up @@ -189,6 +190,7 @@ async def _deploy_nrf(ops_test: OpsTest):
application_name=NRF_CHARM_NAME,
channel=NRF_CHARM_CHANNEL,
trust=True,
base=SDCORE_CHARMS_BASE,
)
await ops_test.model.integrate(relation1=NRF_CHARM_NAME, relation2=DATABASE_CHARM_NAME)
await ops_test.model.integrate(relation1=NRF_CHARM_NAME, relation2=TLS_CHARM_NAME)
Expand All @@ -201,6 +203,7 @@ async def _deploy_nms(ops_test: OpsTest):
NMS_CHARM_NAME,
application_name=NMS_CHARM_NAME,
channel=NMS_CHARM_CHANNEL,
base=SDCORE_CHARMS_BASE,
)
await ops_test.model.integrate(
relation1=f"{NMS_CHARM_NAME}:common_database", relation2=DATABASE_CHARM_NAME
Expand Down

0 comments on commit 79a4f61

Please sign in to comment.