Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjust test cases for the cloudberrydb binary swap test #537

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/test/binary_swap/expected/resgroup_current_1_queue.out
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ select rsgname, parent from pg_resgroup
---------------+--------
default_group | 0
admin_group | 0
(2 rows)
system_group | 0
(3 rows)

select avg(reslimittype)
from pg_resgroupcapability
Expand All @@ -28,7 +29,8 @@ select groupname from gp_toolkit.gp_resgroup_config
---------------
default_group
admin_group
(2 rows)
system_group
(3 rows)

select rsgname from gp_toolkit.gp_resgroup_status
where rsgname not like 'rg_dump_test%'
Expand Down
10 changes: 6 additions & 4 deletions src/test/binary_swap/expected/resgroup_current_3_queue.out
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ select rsgname, parent from pg_resgroup
---------------+--------
default_group | 0
admin_group | 0
rg1 | 0
system_group | 0
rg2 | 0
(4 rows)
rg1 | 0
(5 rows)

select avg(reslimittype)
from pg_resgroupcapability
Expand All @@ -30,9 +31,10 @@ select groupname from gp_toolkit.gp_resgroup_config
---------------
default_group
admin_group
rg1
system_group
rg2
(4 rows)
rg1
(5 rows)

select rsgname from gp_toolkit.gp_resgroup_status
where rsgname not like 'rg_dump_test%'
Expand Down
6 changes: 4 additions & 2 deletions src/test/binary_swap/expected/resgroup_other_2_queue.out
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ select rsgname, parent from pg_resgroup
---------------+--------
default_group | 0
admin_group | 0
system_group | 0
rg1 | 0
rg2 | 0
(4 rows)
(5 rows)

select avg(reslimittype)
from pg_resgroupcapability
Expand All @@ -30,9 +31,10 @@ select groupname from gp_toolkit.gp_resgroup_config
---------------
default_group
admin_group
system_group
rg1
rg2
(4 rows)
(5 rows)

select rsgname from gp_toolkit.gp_resgroup_status
where rsgname not like 'rg_dump_test%'
Expand Down
2 changes: 1 addition & 1 deletion src/test/binary_swap/schedule1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test: inserts views
test: pg_dumpall_current
test: gpcheckcat

test: resgroup_cleanup_basic
test: resgroup_current_1_queue
2 changes: 0 additions & 2 deletions src/test/binary_swap/schedule3
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
test: pg_dumpall_current
test: diff_dumps
test: inserts
test: pg_dumpall_current
test: gpcheckcat

test: resgroup_current_3_queue
Expand Down
6 changes: 6 additions & 0 deletions src/test/binary_swap/sql/inserts.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

-- Insert into tables generated from src/test/regress
-- Following tables from freeze_aux_tables:

-- start_ignore
create table if not exists test_table_heap_with_toast (id int, col1 int, col2 text) with (appendonly=false);
create table if not exists test_table_ao_with_toast (id int, col1 int, col2 text) with (appendonly=true, orientation=row);
create table if not exists test_table_co_with_toast (id int, col1 int, col2 text) with (appendonly=true, orientation=column);
-- end_ignore
INSERT INTO test_table_heap_with_toast SELECT i, i*2, i*5 FROM generate_series(1, 20)i;
INSERT INTO test_table_ao_with_toast SELECT * FROM test_table_heap_with_toast;
INSERT INTO test_table_co_with_toast SELECT * FROM test_table_heap_with_toast;
Loading