Skip to content

Commit

Permalink
fix: replace prometheus charm for juju-qa-dummy-source
Browse files Browse the repository at this point in the history
  • Loading branch information
amandahla committed Dec 3, 2024
1 parent ff99493 commit 5d3a80e
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions internal/provider/resource_access_offer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,26 +96,24 @@ resource "juju_user" "operator" {
password = "{{.UserPassword}}"
}
resource "juju_application" "prometheus" {
name = "prometheus-k8s"
model = juju_model.{{.ModelName}}.name
resource "juju_application" "appone" {
name = "appone"
model = juju_model.{{.ModelName}}.name
charm {
name = "prometheus-k8s"
channel = "latest/stable"
charm {
name = "juju-qa-dummy-source"
base = "[email protected]"
}
}
units = 1
}
resource "juju_offer" "prometheus_endpoint" {
resource "juju_offer" "appone_endpoint" {
model = juju_model.{{.ModelName}}.name
application_name = juju_application.prometheus.name
endpoint = "receive-remote-write"
application_name = juju_application.appone.name
endpoint = "sink"
}
resource "juju_access_offer" "access_prometheus_endpoint" {
offer_url = juju_offer.prometheus_endpoint.url
resource "juju_access_offer" "access_appone_endpoint" {
offer_url = juju_offer.appone_endpoint.url
users = [
juju_user.operator.name,
]
Expand Down

0 comments on commit 5d3a80e

Please sign in to comment.