From 5f21f83d94d89a3e9f1d90d81dc5d74f0b8e8dd4 Mon Sep 17 00:00:00 2001 From: Ales Stimec Date: Mon, 9 Dec 2024 14:28:24 +0100 Subject: [PATCH] chore: replaces jameinel-ubuntu-lite with the ubuntu-lite charm in tests --- .../provider/resource_access_secret_test.go | 4 ++-- .../provider/resource_application_test.go | 20 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/internal/provider/resource_access_secret_test.go b/internal/provider/resource_access_secret_test.go index 3e4253e8..04e0b355 100644 --- a/internal/provider/resource_access_secret_test.go +++ b/internal/provider/resource_access_secret_test.go @@ -101,7 +101,7 @@ resource "juju_application" "jul" { model = juju_model.{{.ModelName}}.name charm { - name = "jameinel-ubuntu-lite" + name = "ubuntu-lite" channel = "latest/stable" } @@ -113,7 +113,7 @@ resource "juju_application" "jul2" { model = juju_model.{{.ModelName}}.name charm { - name = "jameinel-ubuntu-lite" + name = "ubuntu-lite" channel = "latest/stable" } diff --git a/internal/provider/resource_application_test.go b/internal/provider/resource_application_test.go index 9ee587a8..89cf2a3d 100644 --- a/internal/provider/resource_application_test.go +++ b/internal/provider/resource_application_test.go @@ -39,7 +39,7 @@ func TestAcc_ResourceApplication(t *testing.T) { resource.TestCheckResourceAttr("juju_application.this", "model", modelName), resource.TestCheckResourceAttr("juju_application.this", "name", appName), resource.TestCheckResourceAttr("juju_application.this", "charm.#", "1"), - resource.TestCheckResourceAttr("juju_application.this", "charm.0.name", "jameinel-ubuntu-lite"), + resource.TestCheckResourceAttr("juju_application.this", "charm.0.name", "ubuntu-lite"), resource.TestCheckResourceAttr("juju_application.this", "trust", "true"), resource.TestCheckResourceAttr("juju_application.this", "expose.#", "1"), resource.TestCheckNoResourceAttr("juju_application.this", "storage"), @@ -93,7 +93,7 @@ func TestAcc_ResourceApplication(t *testing.T) { func TestAcc_ResourceApplication_Updates(t *testing.T) { modelName := acctest.RandomWithPrefix("tf-test-application") - appName := "jameinel-ubuntu-lite" + appName := "ubuntu-lite" if testingCloud != LXDCloudTesting { appName = "hello-kubecon" } @@ -622,7 +622,7 @@ func TestAcc_ResourceApplication_UpgradeProvider(t *testing.T) { resource.TestCheckResourceAttr("juju_application.this", "model", modelName), resource.TestCheckResourceAttr("juju_application.this", "name", appName), resource.TestCheckResourceAttr("juju_application.this", "charm.#", "1"), - resource.TestCheckResourceAttr("juju_application.this", "charm.0.name", "jameinel-ubuntu-lite"), + resource.TestCheckResourceAttr("juju_application.this", "charm.0.name", "ubuntu-lite"), resource.TestCheckResourceAttr("juju_application.this", "trust", "true"), resource.TestCheckResourceAttr("juju_application.this", "expose.#", "1"), ), @@ -819,7 +819,7 @@ func testAccResourceApplicationBasic(modelName, appName string) string { model = juju_model.this.name name = %q charm { - name = "jameinel-ubuntu-lite" + name = "ubuntu-lite" } trust = true expose{} @@ -836,7 +836,7 @@ func testAccResourceApplicationBasic(modelName, appName string) string { model = juju_model.this.name name = %q charm { - name = "jameinel-ubuntu-lite" + name = "ubuntu-lite" } trust = true expose{} @@ -954,7 +954,7 @@ func testAccResourceApplicationUpdates(modelName string, units int, expose bool, units = %d name = "test-app" charm { - name = "jameinel-ubuntu-lite" + name = "ubuntu-lite" } trust = true %s @@ -1036,7 +1036,7 @@ resource "juju_application" "this" { units = 0 name = "test-app" charm { - name = "jameinel-ubuntu-lite" + name = "ubuntu-lite" revision = 10 } @@ -1055,7 +1055,7 @@ resource "juju_application" "this" { model = juju_model.this.name name = "test-app" charm { - name = "jameinel-ubuntu-lite" + name = "ubuntu-lite" revision = 10 } trust = true @@ -1096,7 +1096,7 @@ resource "juju_application" "this" { units = 0 name = "test-app" charm { - name = "jameinel-ubuntu-lite" + name = "ubuntu-lite" revision = 10 } trust = true @@ -1190,7 +1190,7 @@ resource "juju_application" "{{.AppName}}" { name = "{{.AppName}}" constraints = "{{.Constraints}}" charm { - name = "jameinel-ubuntu-lite" + name = "ubuntu-lite" revision = 10 } endpoint_bindings = {{.EndpointBindings}}