Skip to content

Commit

Permalink
chore: alpine/3.16 -> alpine/3.18
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcstephens committed Nov 6, 2023
1 parent 2bd174b commit 91053f8
Show file tree
Hide file tree
Showing 14 changed files with 101 additions and 101 deletions.
2 changes: 1 addition & 1 deletion docs/resources/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```
Expand Down
2 changes: 1 addition & 1 deletion lxd/import_resource_lxd_container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
})
Expand Down
26 changes: 13 additions & 13 deletions lxd/resource_lxd_cached_image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
),
},
},
Expand All @@ -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"),
),
},
},
Expand Down Expand Up @@ -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
}
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -366,15 +366,15 @@ 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
}
resource "lxd_cached_image" "exists2" {
source_remote = "images"
source_image = "alpine/3.16"
source_image = "alpine/3.18"
aliases = ["%s"]
copy_aliases = false
Expand All @@ -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, `","`))
Expand All @@ -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
}
`
Expand All @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions lxd/resource_lxd_container_file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
Expand All @@ -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"]
}
Expand Down Expand Up @@ -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
}
Expand Down
Loading

0 comments on commit 91053f8

Please sign in to comment.