Skip to content

Commit 931feab

Browse files
Kelsi HoyleKelsi Hoyle
authored andcommitted
update to another version on the arch update
1 parent ba4fca2 commit 931feab

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

admin_terraform_version_integration_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,10 @@ func TestAdminTerraformVersions_ReadUpdate(t *testing.T) {
272272
assert.Equal(t, *opts.Beta, tfv.Beta)
273273

274274
// Update using Archs
275+
anotherUpdateVersion := genSafeRandomTerraformVersion()
275276
updateArchOpts := AdminTerraformVersionUpdateOptions{
276-
Version: String(updateVersion),
277-
URL: String(updateURL),
277+
Version: String(anotherUpdateVersion),
278+
Deprecated: Bool(false),
278279
Archs: []*ToolVersionArchitectureOptions{{
279280
URL: "https://www.hashicorp.com",
280281
Sha: *sha,
@@ -291,6 +292,7 @@ func TestAdminTerraformVersions_ReadUpdate(t *testing.T) {
291292
assert.Equal(t, updateArchOpts.Archs[0].Sha, tfv.Archs[0].Sha)
292293
assert.Equal(t, updateArchOpts.Archs[0].OS, tfv.Archs[0].OS)
293294
assert.Equal(t, updateArchOpts.Archs[0].Arch, tfv.Archs[0].Arch)
295+
assert.Equal(t, anotherUpdateVersion, tfv.Version)
294296
})
295297

296298
t.Run("with non-existent terraform version", func(t *testing.T) {

0 commit comments

Comments
 (0)