mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Fix S3 acceptance test panic, introduced in 1.7 encryption (#2420)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
parent
be72380cdb
commit
87cd9227dc
@ -1284,7 +1284,7 @@ func TestBackendExtraPaths(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Write the first state
|
// Write the first state
|
||||||
stateMgr := &remote.State{Client: client}
|
stateMgr := remote.NewState(client, encryption.StateEncryptionDisabled())
|
||||||
if err := stateMgr.WriteState(s1); err != nil {
|
if err := stateMgr.WriteState(s1); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
@ -1296,7 +1296,7 @@ func TestBackendExtraPaths(t *testing.T) {
|
|||||||
// Note a new state manager - otherwise, because these
|
// Note a new state manager - otherwise, because these
|
||||||
// states are equal, the state will not Put to the remote
|
// states are equal, the state will not Put to the remote
|
||||||
client.path = b.path("s2")
|
client.path = b.path("s2")
|
||||||
stateMgr2 := &remote.State{Client: client}
|
stateMgr2 := remote.NewState(client, encryption.StateEncryptionDisabled())
|
||||||
if err := stateMgr2.WriteState(s2); err != nil {
|
if err := stateMgr2.WriteState(s2); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user