Remove numbering from TAP test names

Numbered TAP tests were done so following the core. However, there is
no reason for this, and it creates complications when, for example, we
need to remove some tests. Besides, regression tests are in
alphabetical order.
pull/230/head
Andrew Pogrebnoy 3 months ago committed by Andrew Pogrebnoi
parent 75aad06e56
commit ab2091b0fc
  1. 26
      contrib/pg_tde/meson.build
  2. 0
      contrib/pg_tde/t/basic.pl
  3. 0
      contrib/pg_tde/t/change_key_provider.pl
  4. 0
      contrib/pg_tde/t/crash_recovery.pl
  5. 32
      contrib/pg_tde/t/expected/003_remote_config.out
  6. 32
      contrib/pg_tde/t/expected/004_file_config.out
  7. 32
      contrib/pg_tde/t/expected/006_remote_vault_config.out
  8. 0
      contrib/pg_tde/t/expected/basic.out
  9. 0
      contrib/pg_tde/t/expected/change_key_provider.out
  10. 0
      contrib/pg_tde/t/expected/crash_recovery.out
  11. 0
      contrib/pg_tde/t/expected/key_rotate_tablespace.out
  12. 0
      contrib/pg_tde/t/expected/multiple_extensions.out
  13. 0
      contrib/pg_tde/t/expected/replication.out
  14. 0
      contrib/pg_tde/t/expected/rotate_key.out
  15. 0
      contrib/pg_tde/t/expected/tde_heap.out
  16. 0
      contrib/pg_tde/t/expected/unlogged_tables.out
  17. 0
      contrib/pg_tde/t/expected/wal_encrypt.out
  18. 0
      contrib/pg_tde/t/key_rotate_tablespace.pl
  19. 0
      contrib/pg_tde/t/multiple_extensions.pl
  20. 0
      contrib/pg_tde/t/pg_tde_change_key_provider.pl
  21. 0
      contrib/pg_tde/t/pg_waldump_basic.pl
  22. 0
      contrib/pg_tde/t/pg_waldump_fullpage.pl
  23. 0
      contrib/pg_tde/t/replication.pl
  24. 0
      contrib/pg_tde/t/rotate_key.pl
  25. 0
      contrib/pg_tde/t/tde_heap.pl
  26. 0
      contrib/pg_tde/t/unlogged_tables.pl
  27. 0
      contrib/pg_tde/t/wal_encrypt.pl

@ -103,19 +103,19 @@ sql_tests = [
]
tap_tests = [
't/001_basic.pl',
't/002_rotate_key.pl',
't/003_multiple_extensions.pl',
't/004_tde_heap.pl',
't/005_key_rotate_tablespace.pl',
't/006_wal_encrypt.pl',
't/007_change_key_provider.pl',
't/008_unlogged_tables.pl',
't/009_replication.pl',
't/010_crash_recovery.pl',
't/011_pg_waldump_basic.pl',
't/012_pg_waldump_fullpage.pl',
't/013_pg_tde_change_key_provider.pl',
't/basic.pl',
't/change_key_provider.pl',
't/crash_recovery.pl',
't/key_rotate_tablespace.pl',
't/multiple_extensions.pl',
't/pg_tde_change_key_provider.pl',
't/pg_waldump_basic.pl',
't/pg_waldump_fullpage.pl',
't/replication.pl',
't/rotate_key.pl',
't/tde_heap.pl',
't/unlogged_tables.pl',
't/wal_encrypt.pl',
]
tests += {

@ -1,32 +0,0 @@
CREATE EXTENSION IF NOT EXISTS pg_tde;
SELECT pg_tde_add_database_key_provider_file('file-provider', json_object('type' VALUE 'remote', 'url' VALUE 'http://localhost:8888/hello'));
pg_tde_add_database_key_provider_file
---------------------------------------
(1 row)
SELECT pg_tde_set_key_using_database_key_provider('test-db-key', 'file-provider');
pg_tde_set_key_using_database_key_provider
--------------------------------------------
(1 row)
CREATE TABLE test_enc2 (id SERIAL, k INTEGER, PRIMARY KEY (id)) USING tde_heap;
INSERT INTO test_enc2 (k) VALUES (5), (6);
SELECT * FROM test_enc2 ORDER BY id;
id | k
----+---
1 | 5
2 | 6
(2 rows)
-- server restart
SELECT * FROM test_enc2 ORDER BY id;
id | k
----+---
1 | 5
2 | 6
(2 rows)
DROP TABLE test_enc2;
DROP EXTENSION pg_tde;

@ -1,32 +0,0 @@
CREATE EXTENSION IF NOT EXISTS pg_tde;
SELECT pg_tde_add_database_key_provider_file('file-provider', json_object('type' VALUE 'file', 'path' VALUE '/tmp/datafile-location'));
pg_tde_add_database_key_provider_file
---------------------------------------
(1 row)
SELECT pg_tde_set_key_using_database_key_provider('test-db-key', 'file-provider');
pg_tde_set_key_using_database_key_provider
--------------------------------------------
(1 row)
CREATE TABLE test_enc1 (id SERIAL, k INTEGER, PRIMARY KEY (id)) USING tde_heap;
INSERT INTO test_enc1 (k) VALUES (5), (6);
SELECT * FROM test_enc1 ORDER BY id;
id | k
----+---
1 | 5
2 | 6
(2 rows)
-- server restart
SELECT * FROM test_enc1 ORDER BY id;
id | k
----+---
1 | 5
2 | 6
(2 rows)
DROP TABLE test_enc1;
DROP EXTENSION pg_tde;

@ -1,32 +0,0 @@
CREATE EXTENSION IF NOT EXISTS pg_tde;
SELECT pg_tde_add_database_key_provider_vault_v2('vault-provider', json_object('type' VALUE 'remote', 'url' VALUE 'http://localhost:8889/token'), json_object('type' VALUE 'remote', 'url' VALUE 'http://localhost:8889/url'), to_json('secret'::text), NULL);
pg_tde_add_database_key_provider_vault_v2
-------------------------------------------
(1 row)
SELECT pg_tde_set_key_using_database_key_provider('test-db-key', 'vault-provider');
pg_tde_set_key_using_database_key_provider
--------------------------------------------
(1 row)
CREATE TABLE test_enc2 (id SERIAL, k INTEGER, PRIMARY KEY (id)) USING tde_heap;
INSERT INTO test_enc2 (k) VALUES (5), (6);
SELECT * FROM test_enc2 ORDER BY id;
id | k
----+---
1 | 5
2 | 6
(2 rows)
-- server restart
SELECT * FROM test_enc2 ORDER BY id;
id | k
----+---
1 | 5
2 | 6
(2 rows)
DROP TABLE test_enc2;
DROP EXTENSION pg_tde;
Loading…
Cancel
Save