Fixed resql test cases for Extensions specific to database servers.

This commit is contained in:
Nagesh Dhope 2019-07-11 13:16:00 +05:30 committed by Akshay Joshi
parent 6c7e95a463
commit e6c067025c
13 changed files with 135 additions and 2 deletions

View File

@ -0,0 +1,7 @@
-- Extension: sslinfo
-- DROP EXTENSION sslinfo;
CREATE EXTENSION sslinfo
SCHEMA public
VERSION "1.0";

View File

@ -0,0 +1,7 @@
-- Extension: citext
-- DROP EXTENSION citext;
CREATE EXTENSION citext
SCHEMA public
VERSION "1.1";

View File

@ -0,0 +1,7 @@
-- Extension: sslinfo
-- DROP EXTENSION sslinfo;
CREATE EXTENSION sslinfo
SCHEMA test_extension_schema
VERSION "1.0";

View File

@ -0,0 +1,7 @@
-- Extension: citext
-- DROP EXTENSION citext;
CREATE EXTENSION citext
SCHEMA public
VERSION "1.0";

View File

@ -0,0 +1,59 @@
{
"scenarios": [
{
"type": "create",
"name": "Create Extension with all options",
"endpoint": "NODE-extension.obj",
"sql_endpoint": "NODE-extension.sql_id",
"data": {
"name": "sslinfo",
"schema": "test_extension_schema",
"version": "1.0"
},
"expected_sql_file": "create_extension_with_all_options.sql"
},
{
"type": "alter",
"name": "Alter Extension version",
"endpoint": "NODE-extension.obj_id",
"sql_endpoint": "NODE-extension.sql_id",
"data": {
"schema": "public"
},
"expected_sql_file": "alter_extension_schema.sql"
},
{
"type": "delete",
"name": "Drop Extension with all options",
"endpoint": "NODE-extension.obj_id",
"data": {}
},
{
"type": "create",
"name": "Create Extension with default schema",
"endpoint": "NODE-extension.obj",
"sql_endpoint": "NODE-extension.sql_id",
"data": {
"name": "citext",
"version": "1.0"
},
"expected_sql_file": "create_extension_with_default_schema.sql"
},
{
"type": "alter",
"name": "Alter Extension version",
"endpoint": "NODE-extension.obj_id",
"sql_endpoint": "NODE-extension.sql_id",
"data": {
"version": "1.1"
},
"expected_sql_file": "alter_extension_version.sql"
},
{
"type": "delete",
"name": "Drop Extension default schema",
"endpoint": "NODE-extension.obj_id",
"data": {}
}
]
}

View File

@ -0,0 +1,7 @@
-- Extension: sslinfo
-- DROP EXTENSION sslinfo;
CREATE EXTENSION sslinfo
SCHEMA public
VERSION "1.0";

View File

@ -0,0 +1,7 @@
-- Extension: sslinfo
-- DROP EXTENSION sslinfo;
CREATE EXTENSION sslinfo
SCHEMA test_extension_schema
VERSION "1.0";

View File

@ -0,0 +1,32 @@
{
"scenarios": [
{
"type": "create",
"name": "Create Extension with all options",
"endpoint": "NODE-extension.obj",
"sql_endpoint": "NODE-extension.sql_id",
"data": {
"name": "sslinfo",
"schema": "test_extension_schema",
"version": "1.0"
},
"expected_sql_file": "create_extension_with_all_options.sql"
},
{
"type": "alter",
"name": "Alter Extension version",
"endpoint": "NODE-extension.obj_id",
"sql_endpoint": "NODE-extension.sql_id",
"data": {
"schema": "public"
},
"expected_sql_file": "alter_extension_schema.sql"
},
{
"type": "delete",
"name": "Drop Extension with all options",
"endpoint": "NODE-extension.obj_id",
"data": {}
}
]
}

View File

@ -30,7 +30,7 @@
}, },
{ {
"type": "create", "type": "create",
"name": "Create Extension with default(pg_catalog) schema", "name": "Create Extension with default schema",
"endpoint": "NODE-extension.obj", "endpoint": "NODE-extension.obj",
"sql_endpoint": "NODE-extension.sql_id", "sql_endpoint": "NODE-extension.sql_id",
"data": { "data": {
@ -51,7 +51,7 @@
}, },
{ {
"type": "delete", "type": "delete",
"name": "Drop Extension default(pg_catalog) schema", "name": "Drop Extension default schema",
"endpoint": "NODE-extension.obj_id", "endpoint": "NODE-extension.obj_id",
"data": {} "data": {}
} }