Skip to content

Commit da3be2a

Browse files
committed
fix(tests): add encryption verification to insert_jsonb_for_search() helper
1 parent e8b6e71 commit da3be2a

File tree

1 file changed

+6
-0
lines changed
  • packages/cipherstash-proxy-integration/src

1 file changed

+6
-0
lines changed

packages/cipherstash-proxy-integration/src/common.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ pub async fn insert_jsonb() -> Value {
306306

307307
insert(&sql, &[&id, &encrypted_jsonb]).await;
308308

309+
// Verify encryption actually occurred
310+
assert_encrypted_jsonb(id, &encrypted_jsonb).await;
311+
309312
encrypted_jsonb
310313
}
311314

@@ -321,6 +324,9 @@ pub async fn insert_jsonb_for_search() {
321324

322325
let sql = "INSERT INTO encrypted (id, encrypted_jsonb) VALUES ($1, $2)";
323326
insert(sql, &[&id, &encrypted_jsonb]).await;
327+
328+
// Verify encryption actually occurred for each row
329+
assert_encrypted_jsonb(id, &encrypted_jsonb).await;
324330
}
325331
}
326332

0 commit comments

Comments
 (0)