mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-23 09:16:29 -06:00
Fixed resql test cases for Extensions specific to database servers.
This commit is contained in:
parent
6c7e95a463
commit
e6c067025c
@ -0,0 +1,7 @@
|
||||
-- Extension: sslinfo
|
||||
|
||||
-- DROP EXTENSION sslinfo;
|
||||
|
||||
CREATE EXTENSION sslinfo
|
||||
SCHEMA public
|
||||
VERSION "1.0";
|
@ -0,0 +1,7 @@
|
||||
-- Extension: citext
|
||||
|
||||
-- DROP EXTENSION citext;
|
||||
|
||||
CREATE EXTENSION citext
|
||||
SCHEMA public
|
||||
VERSION "1.1";
|
@ -0,0 +1,7 @@
|
||||
-- Extension: sslinfo
|
||||
|
||||
-- DROP EXTENSION sslinfo;
|
||||
|
||||
CREATE EXTENSION sslinfo
|
||||
SCHEMA test_extension_schema
|
||||
VERSION "1.0";
|
@ -0,0 +1,7 @@
|
||||
-- Extension: citext
|
||||
|
||||
-- DROP EXTENSION citext;
|
||||
|
||||
CREATE EXTENSION citext
|
||||
SCHEMA public
|
||||
VERSION "1.0";
|
@ -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": {}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
-- Extension: sslinfo
|
||||
|
||||
-- DROP EXTENSION sslinfo;
|
||||
|
||||
CREATE EXTENSION sslinfo
|
||||
SCHEMA public
|
||||
VERSION "1.0";
|
@ -0,0 +1,7 @@
|
||||
-- Extension: sslinfo
|
||||
|
||||
-- DROP EXTENSION sslinfo;
|
||||
|
||||
CREATE EXTENSION sslinfo
|
||||
SCHEMA test_extension_schema
|
||||
VERSION "1.0";
|
@ -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": {}
|
||||
}
|
||||
]
|
||||
}
|
@ -30,7 +30,7 @@
|
||||
},
|
||||
{
|
||||
"type": "create",
|
||||
"name": "Create Extension with default(pg_catalog) schema",
|
||||
"name": "Create Extension with default schema",
|
||||
"endpoint": "NODE-extension.obj",
|
||||
"sql_endpoint": "NODE-extension.sql_id",
|
||||
"data": {
|
||||
@ -51,7 +51,7 @@
|
||||
},
|
||||
{
|
||||
"type": "delete",
|
||||
"name": "Drop Extension default(pg_catalog) schema",
|
||||
"name": "Drop Extension default schema",
|
||||
"endpoint": "NODE-extension.obj_id",
|
||||
"data": {}
|
||||
}
|
Loading…
Reference in New Issue
Block a user