From 91053f884b12c208d7c32f7bb03b1fee4e775f8f Mon Sep 17 00:00:00 2001 From: Adam Stephens Date: Mon, 6 Nov 2023 08:22:22 -0500 Subject: [PATCH] chore: alpine/3.16 -> alpine/3.18 --- docs/resources/project.md | 2 +- lxd/import_resource_lxd_container_test.go | 2 +- lxd/resource_lxd_cached_image_test.go | 26 ++++---- lxd/resource_lxd_container_file_test.go | 6 +- lxd/resource_lxd_container_test.go | 62 +++++++++---------- lxd/resource_lxd_instance_file_test.go | 6 +- lxd/resource_lxd_instance_test.go | 62 +++++++++---------- lxd/resource_lxd_network_lb_test.go | 2 +- lxd/resource_lxd_network_test.go | 6 +- lxd/resource_lxd_profile_test.go | 6 +- lxd/resource_lxd_publish_image_test.go | 8 +-- lxd/resource_lxd_snapshot_test.go | 8 +-- ...source_lxd_volume_container_attach_test.go | 4 +- lxd/resource_lxd_volume_test.go | 2 +- 14 files changed, 101 insertions(+), 101 deletions(-) diff --git a/docs/resources/project.md b/docs/resources/project.md index 1c9c3e0d..1ce8b841 100644 --- a/docs/resources/project.md +++ b/docs/resources/project.md @@ -18,7 +18,7 @@ resource "lxd_project" "project" { resource "lxd_instance" "container" { name = "container1" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" project = lxd_project.project.name } ``` diff --git a/lxd/import_resource_lxd_container_test.go b/lxd/import_resource_lxd_container_test.go index a0a55e6d..838c421e 100644 --- a/lxd/import_resource_lxd_container_test.go +++ b/lxd/import_resource_lxd_container_test.go @@ -27,7 +27,7 @@ func TestAccContainer_importBasic(t *testing.T) { "wait_for_network", "start_container", }, - ImportStateId: containerName + "/images:alpine/3.16/amd64", + ImportStateId: containerName + "/images:alpine/3.18/amd64", }, }, }) diff --git a/lxd/resource_lxd_cached_image_test.go b/lxd/resource_lxd_cached_image_test.go index e95dc434..92edd496 100644 --- a/lxd/resource_lxd_cached_image_test.go +++ b/lxd/resource_lxd_cached_image_test.go @@ -88,7 +88,7 @@ func TestAccCachedImage_copiedAlias(t *testing.T) { resourceAccCachedImageCheckAttributes("lxd_cached_image.img3", &img), testAccCachedImageContainsAlias(&img, alias1), testAccCachedImageContainsAlias(&img, alias2), - testAccCachedImageContainsAlias(&img, "alpine/3.16"), + testAccCachedImageContainsAlias(&img, "alpine/3.18"), ), }, }, @@ -107,7 +107,7 @@ func TestAccCachedImage_aliasCollision(t *testing.T) { Check: resource.ComposeTestCheckFunc( testAccCachedImageExists(t, "lxd_cached_image.img4", &img), resourceAccCachedImageCheckAttributes("lxd_cached_image.img4", &img), - testAccCachedImageContainsAlias(&img, "alpine/3.16/amd64"), + testAccCachedImageContainsAlias(&img, "alpine/3.18/amd64"), ), }, }, @@ -319,7 +319,7 @@ func testAccCachedImage_basic() string { return ` resource "lxd_cached_image" "img1" { source_remote = "images" - source_image = "alpine/3.16" + source_image = "alpine/3.18" copy_aliases = true } @@ -330,7 +330,7 @@ func testAccCachedImage_basicVM() string { return ` resource "lxd_cached_image" "img1vm" { source_remote = "images" - source_image = "alpine/3.16" + source_image = "alpine/3.18" type = "virtual-machine" copy_aliases = true @@ -342,7 +342,7 @@ func testAccCachedImage_aliases(aliases ...string) string { return fmt.Sprintf(` resource "lxd_cached_image" "img2" { source_remote = "images" - source_image = "alpine/3.16" + source_image = "alpine/3.18" aliases = ["%s"] copy_aliases = false @@ -354,7 +354,7 @@ func testAccCachedImage_aliasExists1(alias string) string { return fmt.Sprintf(` resource "lxd_cached_image" "exists1" { source_remote = "images" - source_image = "alpine/3.16" + source_image = "alpine/3.18" aliases = ["%s"] copy_aliases = false @@ -366,7 +366,7 @@ func testAccCachedImage_aliasExists2(alias string) string { return fmt.Sprintf(` resource "lxd_cached_image" "exists1" { source_remote = "images" - source_image = "alpine/3.16" + source_image = "alpine/3.18" aliases = ["%s"] copy_aliases = false @@ -374,7 +374,7 @@ resource "lxd_cached_image" "exists1" { resource "lxd_cached_image" "exists2" { source_remote = "images" - source_image = "alpine/3.16" + source_image = "alpine/3.18" aliases = ["%s"] copy_aliases = false @@ -386,9 +386,9 @@ func testAccCachedImage_aliases2(aliases ...string) string { return fmt.Sprintf(` resource "lxd_cached_image" "img3" { source_remote = "images" - source_image = "alpine/3.16" + source_image = "alpine/3.18" - aliases = ["alpine/3.16","%s"] + aliases = ["alpine/3.18","%s"] copy_aliases = true } `, strings.Join(aliases, `","`)) @@ -398,9 +398,9 @@ func testAccCachedImage_aliasCollision() string { return ` resource "lxd_cached_image" "img4" { source_remote = "images" - source_image = "alpine/3.16" + source_image = "alpine/3.18" - aliases = ["alpine/3.16/amd64"] + aliases = ["alpine/3.18/amd64"] copy_aliases = true } ` @@ -420,7 +420,7 @@ resource "lxd_project" "project1" { } resource "lxd_cached_image" "img1" { source_remote = "images" - source_image = "alpine/3.16" + source_image = "alpine/3.18" project = lxd_project.project1.name } `, project) diff --git a/lxd/resource_lxd_container_file_test.go b/lxd/resource_lxd_container_file_test.go index 258aa84a..9085b2cb 100644 --- a/lxd/resource_lxd_container_file_test.go +++ b/lxd/resource_lxd_container_file_test.go @@ -147,7 +147,7 @@ func testAccContainerFile_content(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] } @@ -164,7 +164,7 @@ func testAccContainerFile_source(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] } @@ -192,7 +192,7 @@ resource "lxd_project" "project1" { resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" project = lxd_project.project1.name } diff --git a/lxd/resource_lxd_container_test.go b/lxd/resource_lxd_container_test.go index e4204555..f9c7050d 100644 --- a/lxd/resource_lxd_container_test.go +++ b/lxd/resource_lxd_container_test.go @@ -816,7 +816,7 @@ func testAccContainer_basic(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] } `, name) @@ -826,7 +826,7 @@ func testAccContainer_basicEphemeral(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] ephemeral = true } @@ -838,7 +838,7 @@ func testAccContainer_type(name string, cType string) string { resource "lxd_container" "container1" { name = "%s" type = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] } `, name, cType) @@ -848,7 +848,7 @@ func testAccContainer_config(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] config = { "boot.autostart" = 1 @@ -861,7 +861,7 @@ func testAccContainer_updateConfig1(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default"] config = { "boot.autostart" = 1 @@ -875,7 +875,7 @@ func testAccContainer_updateConfig2(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default"] config = { "user.dummy" = 5 @@ -893,7 +893,7 @@ resource "lxd_profile" "profile1" { resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default"] } `, profileName, containerName) @@ -907,7 +907,7 @@ resource "lxd_profile" "profile1" { resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default", "${lxd_profile.profile1.name}"] } `, profileName, containerName) @@ -921,7 +921,7 @@ resource "lxd_profile" "profile1" { resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default", "${lxd_profile.profile1.name}"] } `, profileName, containerName) @@ -935,7 +935,7 @@ resource "lxd_profile" "profile1" { resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default"] } `, profileName, containerName) @@ -945,7 +945,7 @@ func testAccContainer_device_1(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] device { @@ -964,7 +964,7 @@ func testAccContainer_device_2(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] device { @@ -983,7 +983,7 @@ func testAccContainer_addDevice_1(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] } `, name) @@ -993,7 +993,7 @@ func testAccContainer_addDevice_2(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] device { @@ -1012,7 +1012,7 @@ func testAccContainer_removeDevice_1(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] device { @@ -1031,7 +1031,7 @@ func testAccContainer_removeDevice_2(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] } `, name) @@ -1041,7 +1041,7 @@ func testAccContainer_fileUploadContent_1(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] file { @@ -1058,7 +1058,7 @@ func testAccContainer_fileUploadContent_2(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] file { @@ -1075,7 +1075,7 @@ func testAccContainer_fileUploadSource(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] file { @@ -1092,7 +1092,7 @@ func testAccContainer_remoteImage(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] } `, name) @@ -1102,7 +1102,7 @@ func testAccContainer_defaultProfile(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" } `, name) } @@ -1111,7 +1111,7 @@ func testAccContainer_configLimits_1(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] limits = { @@ -1125,7 +1125,7 @@ func testAccContainer_configLimits_2(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] limits = { @@ -1150,7 +1150,7 @@ resource "lxd_network" "network_1" { resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] config = { @@ -1176,7 +1176,7 @@ func testAccContainer_withDevice(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] device { @@ -1196,7 +1196,7 @@ func testAccContainer_isStopped(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] start_container = false @@ -1208,14 +1208,14 @@ func testAccContainer_target(name string, target string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s-1" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] target = "%s" } resource "lxd_container" "container2" { name = "%s-2" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] target = "%s" } @@ -1236,7 +1236,7 @@ resource "lxd_project" "project1" { } resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" project = lxd_project.project1.name } `, projectName, containerName) @@ -1256,7 +1256,7 @@ resource "lxd_project" "project1" { } resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" project = lxd_project.project1.name } `, projectName, containerName) @@ -1276,7 +1276,7 @@ resource "lxd_project" "project1" { } resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" } `, projectName, containerName) } diff --git a/lxd/resource_lxd_instance_file_test.go b/lxd/resource_lxd_instance_file_test.go index f1e27bd7..0c7ebca4 100644 --- a/lxd/resource_lxd_instance_file_test.go +++ b/lxd/resource_lxd_instance_file_test.go @@ -147,7 +147,7 @@ func testAccInstanceFile_content(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] } @@ -164,7 +164,7 @@ func testAccInstanceFile_source(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] } @@ -192,7 +192,7 @@ resource "lxd_project" "project1" { resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" project = lxd_project.project1.name } diff --git a/lxd/resource_lxd_instance_test.go b/lxd/resource_lxd_instance_test.go index 30e85691..6a469f8a 100644 --- a/lxd/resource_lxd_instance_test.go +++ b/lxd/resource_lxd_instance_test.go @@ -817,7 +817,7 @@ func testAccInstance_basic(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] } `, name) @@ -827,7 +827,7 @@ func testAccInstance_basicEphemeral(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] ephemeral = true } @@ -839,7 +839,7 @@ func testAccInstance_type(name string, cType string) string { resource "lxd_instance" "instance1" { name = "%s" type = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] } `, name, cType) @@ -849,7 +849,7 @@ func testAccInstance_config(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] config = { "boot.autostart" = 1 @@ -862,7 +862,7 @@ func testAccInstance_updateConfig1(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default"] config = { "boot.autostart" = 1 @@ -876,7 +876,7 @@ func testAccInstance_updateConfig2(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default"] config = { "user.dummy" = 5 @@ -894,7 +894,7 @@ resource "lxd_profile" "profile1" { resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default"] } `, profileName, instanceName) @@ -908,7 +908,7 @@ resource "lxd_profile" "profile1" { resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default", "${lxd_profile.profile1.name}"] } `, profileName, instanceName) @@ -922,7 +922,7 @@ resource "lxd_profile" "profile1" { resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default", "${lxd_profile.profile1.name}"] } `, profileName, instanceName) @@ -936,7 +936,7 @@ resource "lxd_profile" "profile1" { resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default"] } `, profileName, instanceName) @@ -946,7 +946,7 @@ func testAccInstance_device_1(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] device { @@ -965,7 +965,7 @@ func testAccInstance_device_2(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] device { @@ -984,7 +984,7 @@ func testAccInstance_addDevice_1(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] } `, name) @@ -994,7 +994,7 @@ func testAccInstance_addDevice_2(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] device { @@ -1013,7 +1013,7 @@ func testAccInstance_removeDevice_1(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] device { @@ -1032,7 +1032,7 @@ func testAccInstance_removeDevice_2(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] } `, name) @@ -1042,7 +1042,7 @@ func testAccInstance_fileUploadContent_1(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] file { @@ -1059,7 +1059,7 @@ func testAccInstance_fileUploadContent_2(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] file { @@ -1076,7 +1076,7 @@ func testAccInstance_fileUploadSource(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] file { @@ -1093,7 +1093,7 @@ func testAccInstance_remoteImage(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] } `, name) @@ -1103,7 +1103,7 @@ func testAccInstance_defaultProfile(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" } `, name) } @@ -1112,7 +1112,7 @@ func testAccInstance_configLimits_1(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] limits = { @@ -1126,7 +1126,7 @@ func testAccInstance_configLimits_2(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] limits = { @@ -1151,7 +1151,7 @@ resource "lxd_network" "network_1" { resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] config = { @@ -1177,7 +1177,7 @@ func testAccInstance_withDevice(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] device { @@ -1197,7 +1197,7 @@ func testAccInstance_isStopped(name string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] start_on_create = false @@ -1209,14 +1209,14 @@ func testAccInstance_target(name string, target string) string { return fmt.Sprintf(` resource "lxd_instance" "instance1" { name = "%s-1" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] target = "%s" } resource "lxd_instance" "instance2" { name = "%s-2" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] target = "%s" } @@ -1237,7 +1237,7 @@ resource "lxd_project" "project1" { } resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" project = lxd_project.project1.name } `, projectName, instanceName) @@ -1257,7 +1257,7 @@ resource "lxd_project" "project1" { } resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" project = lxd_project.project1.name } `, projectName, instanceName) @@ -1277,7 +1277,7 @@ resource "lxd_project" "project1" { } resource "lxd_instance" "instance1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" } `, projectName, instanceName) } diff --git a/lxd/resource_lxd_network_lb_test.go b/lxd/resource_lxd_network_lb_test.go index 6dd6753f..ad0bc98f 100644 --- a/lxd/resource_lxd_network_lb_test.go +++ b/lxd/resource_lxd_network_lb_test.go @@ -228,7 +228,7 @@ func testAccNetworkLB_withBackendAndPort(backend api.NetworkLoadBalancerBackend, lbRes := fmt.Sprintf(` resource "lxd_instance" "instance" { name = "c1" - image = "images:alpine/3.16" + image = "images:alpine/3.18" ephemeral = false device { diff --git a/lxd/resource_lxd_network_test.go b/lxd/resource_lxd_network_test.go index 00b6ba61..7ed4ba5c 100644 --- a/lxd/resource_lxd_network_test.go +++ b/lxd/resource_lxd_network_test.go @@ -302,7 +302,7 @@ resource "lxd_profile" "profile1" { resource "lxd_instance" "container1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default", "${lxd_profile.profile1.name}"] } `, profileName, containerName) @@ -325,7 +325,7 @@ resource "lxd_network" "eth1" { # be deleted, but must be updated in-place. resource "lxd_instance" "c1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" wait_for_network = false device { @@ -357,7 +357,7 @@ resource "lxd_network" "eth1" { # be deleted, but must be updated in-place. resource "lxd_instance" "c1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" wait_for_network = false device { diff --git a/lxd/resource_lxd_profile_test.go b/lxd/resource_lxd_profile_test.go index 89682298..00bb0dc0 100644 --- a/lxd/resource_lxd_profile_test.go +++ b/lxd/resource_lxd_profile_test.go @@ -541,7 +541,7 @@ resource "lxd_profile" "profile1" { resource "lxd_instance" "container1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default", "${lxd_profile.profile1.name}"] } `, profileName, containerName) @@ -563,7 +563,7 @@ resource "lxd_profile" "profile1" { resource "lxd_instance" "container1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default", "${lxd_profile.profile1.name}"] } `, profileName, containerName) @@ -587,7 +587,7 @@ resource "lxd_profile" "profile1" { resource "lxd_instance" "container1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default", "${lxd_profile.profile1.name}"] } `, profileName, containerName) diff --git a/lxd/resource_lxd_publish_image_test.go b/lxd/resource_lxd_publish_image_test.go index 6adfffe5..2215549a 100644 --- a/lxd/resource_lxd_publish_image_test.go +++ b/lxd/resource_lxd_publish_image_test.go @@ -108,7 +108,7 @@ func testAccPublishImage_basic(name string) string { return fmt.Sprintf(` resource "lxd_instance" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] start_on_create = false @@ -127,7 +127,7 @@ func testAccPublishImage_aliases(name string, aliases []interface{}) string { return fmt.Sprintf(` resource "lxd_instance" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] start_on_create = false @@ -146,7 +146,7 @@ func testAccPublishImage_properties(name string, properties map[string]string) s return fmt.Sprintf(` resource "lxd_instance" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] start_on_create = false @@ -177,7 +177,7 @@ resource "lxd_project" "project1" { } resource "lxd_instance" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] project = lxd_project.project1.name start_on_create = false diff --git a/lxd/resource_lxd_snapshot_test.go b/lxd/resource_lxd_snapshot_test.go index 93cb9a0a..17a86a53 100644 --- a/lxd/resource_lxd_snapshot_test.go +++ b/lxd/resource_lxd_snapshot_test.go @@ -201,7 +201,7 @@ func testAccSnapshot_basic(cName, sName string, stateful bool) string { return fmt.Sprintf(` resource "lxd_instance" "container1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default"] } @@ -217,7 +217,7 @@ func testAccSnapshot_multiple1(cName, sName string) string { return fmt.Sprintf(` resource "lxd_instance" "container1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default"] } @@ -233,7 +233,7 @@ func testAccSnapshot_multiple2(cName, sName1, sName2 string) string { return fmt.Sprintf(` resource "lxd_instance" "container1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default"] } @@ -264,7 +264,7 @@ resource "lxd_project" "project1" { } resource "lxd_instance" "container1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" project = lxd_project.project1.name } diff --git a/lxd/resource_lxd_volume_container_attach_test.go b/lxd/resource_lxd_volume_container_attach_test.go index 2709bec7..3a1b2644 100644 --- a/lxd/resource_lxd_volume_container_attach_test.go +++ b/lxd/resource_lxd_volume_container_attach_test.go @@ -101,7 +101,7 @@ resource "lxd_volume" "volume1" { resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default"] } @@ -131,7 +131,7 @@ resource "lxd_volume" "volume1" { resource "lxd_container" "container1" { name = "%s" - image = "images:alpine/3.16" + image = "images:alpine/3.18" profiles = ["default"] } diff --git a/lxd/resource_lxd_volume_test.go b/lxd/resource_lxd_volume_test.go index 747462cc..504b78d3 100644 --- a/lxd/resource_lxd_volume_test.go +++ b/lxd/resource_lxd_volume_test.go @@ -226,7 +226,7 @@ resource "lxd_volume" "volume1" { resource "lxd_instance" "container1" { name = "%s" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] device {