Skip to content

Commit

Permalink
Fix test validating convergent encryption behaviour across key types (h…
Browse files Browse the repository at this point in the history
…ashicorp#13371)

- The test was attempting to test the convergent encryption behaviour
  with several key types but the common function never used the passed
  in key type. So we ran the test with the default aes256-gcm96 only.
  • Loading branch information
stevendpclark authored and heppu committed Jan 13, 2022
1 parent c892c91 commit f7e8530
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin/logical/transit/backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,7 @@ func testConvergentEncryptionCommon(t *testing.T, ver int, keyType keysutil.KeyT
Data: map[string]interface{}{
"derived": false,
"convergent_encryption": true,
"type": keyType.String(),
},
}
resp, err := b.HandleRequest(context.Background(), req)
Expand All @@ -1009,6 +1010,7 @@ func testConvergentEncryptionCommon(t *testing.T, ver int, keyType keysutil.KeyT
Data: map[string]interface{}{
"derived": true,
"convergent_encryption": true,
"type": keyType.String(),
},
}
resp, err = b.HandleRequest(context.Background(), req)
Expand Down

0 comments on commit f7e8530

Please sign in to comment.