Skip to content

Commit 033f7ca

Browse files
committed
Make sure we have tests which fetch KMIP and Vault keys
Before this we had no coverage of the code path for successfully fetching a KMIP key from the key provider.
1 parent 44c3619 commit 033f7ca

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

contrib/pg_tde/expected/kmip_test.out

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,11 @@ SELECT * from test_enc;
2727
3 | 3
2828
(3 rows)
2929

30+
SELECT pg_tde_verify_key();
31+
pg_tde_verify_key
32+
-------------------
33+
34+
(1 row)
35+
3036
DROP TABLE test_enc;
3137
DROP EXTENSION pg_tde;

contrib/pg_tde/expected/vault_v2_test.out

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,11 @@ SELECT * from test_enc;
4444
3 | 3
4545
(3 rows)
4646

47+
SELECT pg_tde_verify_key();
48+
pg_tde_verify_key
49+
-------------------
50+
51+
(1 row)
52+
4753
DROP TABLE test_enc;
4854
DROP EXTENSION pg_tde;

contrib/pg_tde/sql/kmip_test.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ INSERT INTO test_enc (k) VALUES (3);
1515

1616
SELECT * from test_enc;
1717

18+
SELECT pg_tde_verify_key();
19+
1820
DROP TABLE test_enc;
1921

2022
DROP EXTENSION pg_tde;

contrib/pg_tde/sql/vault_v2_test.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ INSERT INTO test_enc (k) VALUES (3);
2727

2828
SELECT * from test_enc;
2929

30+
SELECT pg_tde_verify_key();
31+
3032
DROP TABLE test_enc;
3133

3234
DROP EXTENSION pg_tde;

0 commit comments

Comments
 (0)