From aff42024fb788dc9d4b75163506d51a855ccc648 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 | 66 +++++++++---------- lxd/resource_lxd_instance_file_test.go | 6 +- lxd/resource_lxd_instance_test.go | 64 +++++++++--------- 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, 104 insertions(+), 104 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 e656557d..21a8714a 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 } @@ -837,8 +837,8 @@ func testAccContainer_container(name string) string { return fmt.Sprintf(` resource "lxd_container" "container1" { name = "%s" - type = "container" - image = "images:alpine/3.16/amd64" + type = "%s" + image = "images:alpine/3.18/amd64" profiles = ["default"] } `, name) @@ -849,7 +849,7 @@ func testAccContainer_virtualmachine(name string) string { resource "lxd_container" "virtualmachine1" { name = "%s" type = "virtual-machine" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" # alpine images do not support secureboot config = { "security.secureboot" = false @@ -863,7 +863,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 @@ -876,7 +876,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 @@ -890,7 +890,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 @@ -908,7 +908,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) @@ -922,7 +922,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) @@ -936,7 +936,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) @@ -950,7 +950,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) @@ -960,7 +960,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 { @@ -979,7 +979,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 { @@ -998,7 +998,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) @@ -1008,7 +1008,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 { @@ -1027,7 +1027,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 { @@ -1046,7 +1046,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) @@ -1056,7 +1056,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 { @@ -1073,7 +1073,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 { @@ -1090,7 +1090,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 { @@ -1107,7 +1107,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) @@ -1117,7 +1117,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) } @@ -1126,7 +1126,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 = { @@ -1140,7 +1140,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 = { @@ -1165,7 +1165,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 = { @@ -1191,7 +1191,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 { @@ -1211,7 +1211,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 @@ -1223,14 +1223,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" } @@ -1251,7 +1251,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) @@ -1271,7 +1271,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) @@ -1291,7 +1291,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 d6c46276..e2d11799 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_container(name string) string { resource "lxd_instance" "instance1" { name = "%s" type = "container" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" profiles = ["default"] } `, name) @@ -850,7 +850,7 @@ func testAccInstance_virtualmachine(name string) string { resource "lxd_instance" "instance1" { name = "%s" type = "virtual-machine" - image = "images:alpine/3.16/amd64" + image = "images:alpine/3.18/amd64" # alpine images do not support secureboot config = { "security.secureboot" = false @@ -864,7 +864,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 @@ -877,7 +877,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 @@ -891,7 +891,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 @@ -909,7 +909,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) @@ -923,7 +923,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) @@ -937,7 +937,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) @@ -951,7 +951,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) @@ -961,7 +961,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 { @@ -980,7 +980,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 { @@ -999,7 +999,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) @@ -1009,7 +1009,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 { @@ -1028,7 +1028,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 { @@ -1047,7 +1047,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) @@ -1057,7 +1057,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 { @@ -1074,7 +1074,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 { @@ -1091,7 +1091,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 { @@ -1108,7 +1108,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) @@ -1118,7 +1118,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) } @@ -1127,7 +1127,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 = { @@ -1141,7 +1141,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 = { @@ -1166,7 +1166,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 = { @@ -1192,7 +1192,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 { @@ -1212,7 +1212,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 @@ -1224,14 +1224,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" } @@ -1252,7 +1252,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) @@ -1272,7 +1272,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) @@ -1292,7 +1292,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 {