Skip to content

Commit

Permalink
🔧 Refactor: Update RepoTags and RepoDigests values in TestAccDockerIm…
Browse files Browse the repository at this point in the history
…age_private for rancher/pause image.
  • Loading branch information
enc committed May 2, 2024
1 parent 3fa4436 commit a4b403d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/provider/resource_docker_image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,12 @@ func TestAccDockerImage_private(t *testing.T) {

testCheckImageInspect := func(*terraform.State) error {
if len(i.RepoTags) != 1 ||
i.RepoTags[0] != "gcr.io:443/google_containers/pause:0.8.0" {
i.RepoTags[0] != "rancher/pause:3.6" {
return fmt.Errorf("Image RepoTags is wrong: %v", i.RepoTags)
}

if len(i.RepoDigests) != 1 ||
i.RepoDigests[0] != "gcr.io:443/google_containers/pause@sha256:bbeaef1d40778579b7b86543fe03e1ec041428a50d21f7a7b25630e357ec9247" {
i.RepoDigests[0] != "rancher/pause@sha256:74bf6fc6be13c4ec53a86a5acf9fdbc6787b176db0693659ad6ac89f115e182c" {
return fmt.Errorf("Image RepoDigests is wrong: %v", i.RepoDigests)
}

Expand Down

0 comments on commit a4b403d

Please sign in to comment.