1) Fixed Selenoid test cases.

2) Fixed RESQL test case failing on Jenkins.
This commit is contained in:
Akshay Joshi 2021-06-11 15:34:12 +05:30
parent 6e42d9113b
commit 0dbfbd8dfc
17 changed files with 0 additions and 468 deletions

View File

@ -1485,47 +1485,6 @@
"expected_sql_file": "create_table_with_lik_tbl.sql",
"expected_msql_file": "create_table_with_lik_tbl_msql.sql"
},
{
"type": "alter",
"name": "Alter Table update grants",
"endpoint": "NODE-table.obj_id",
"sql_endpoint": "NODE-table.sql_id",
"msql_endpoint": "NODE-table.msql_id",
"data": {
"name": "table_like_tbl$%{}[]()&*^!@\"'`\\/#",
"description": "test comment",
"fillfactor": "13",
"replica_identity": "",
"relacl": {
"added": [
{
"grantee": "PUBLIC",
"grantor": "postgres",
"privileges": [
{
"privilege_type": "D",
"privilege": true,
"with_grant": false
},
{
"privilege_type": "x",
"privilege": true,
"with_grant": false
},
{
"privilege_type": "t",
"privilege": true,
"with_grant": false
}
]
}
]
}
},
"store_object_id": true,
"expected_sql_file": "alter_table_update_grants2.sql",
"expected_msql_file": "alter_table_update_grants2_msql.sql"
},
{
"type": "delete",
"name": "Delete Table with advanced options",

View File

@ -1485,47 +1485,6 @@
"expected_sql_file": "create_table_with_lik_tbl.sql",
"expected_msql_file": "create_table_with_lik_tbl_msql.sql"
},
{
"type": "alter",
"name": "Alter Table update grants",
"endpoint": "NODE-table.obj_id",
"sql_endpoint": "NODE-table.sql_id",
"msql_endpoint": "NODE-table.msql_id",
"data": {
"name": "table_like_tbl$%{}[]()&*^!@\"'`\\/#",
"description": "test comment",
"fillfactor": "13",
"replica_identity": "",
"relacl": {
"added": [
{
"grantee": "PUBLIC",
"grantor": "postgres",
"privileges": [
{
"privilege_type": "D",
"privilege": true,
"with_grant": false
},
{
"privilege_type": "x",
"privilege": true,
"with_grant": false
},
{
"privilege_type": "t",
"privilege": true,
"with_grant": false
}
]
}
]
}
},
"store_object_id": true,
"expected_sql_file": "alter_table_update_grants2.sql",
"expected_msql_file": "alter_table_update_grants2_msql.sql"
},
{
"type": "delete",
"name": "Delete Table with advanced options",

View File

@ -1,26 +0,0 @@
-- Table: public.table_like_tbl$%{}[]()&*^!@"'`\/#
-- DROP TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#";
CREATE TABLE IF NOT EXISTS public."table_like_tbl$%{}[]()&*^!@""'`\/#"
(
id integer NOT NULL,
name text COLLATE pg_catalog."default",
CONSTRAINT "table_like_tbl$%{}[]()&*^!@""'`\/#_pkey" PRIMARY KEY (id),
CONSTRAINT "table_like_tbl$%{}[]()&*^!@""'`\/#_name_key" UNIQUE (name)
)
WITH (
FILLFACTOR = 13
)
TABLESPACE pg_default;
ALTER TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#"
OWNER to postgres;
GRANT ALL ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#" TO postgres;
GRANT REFERENCES, TRIGGER, TRUNCATE ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#" TO PUBLIC;
COMMENT ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#"
IS 'test comment';

View File

@ -1,7 +0,0 @@
ALTER TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#"
SET (FILLFACTOR=13);
COMMENT ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#"
IS 'test comment';
GRANT TRUNCATE, REFERENCES, TRIGGER ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#" TO PUBLIC;

View File

@ -1485,47 +1485,6 @@
"expected_sql_file": "create_table_with_lik_tbl.sql",
"expected_msql_file": "create_table_with_lik_tbl_msql.sql"
},
{
"type": "alter",
"name": "Alter Table update grants",
"endpoint": "NODE-table.obj_id",
"sql_endpoint": "NODE-table.sql_id",
"msql_endpoint": "NODE-table.msql_id",
"data": {
"name": "table_like_tbl$%{}[]()&*^!@\"'`\\/#",
"description": "test comment",
"fillfactor": "13",
"replica_identity": "",
"relacl": {
"added": [
{
"grantee": "PUBLIC",
"grantor": "postgres",
"privileges": [
{
"privilege_type": "D",
"privilege": true,
"with_grant": false
},
{
"privilege_type": "x",
"privilege": true,
"with_grant": false
},
{
"privilege_type": "t",
"privilege": true,
"with_grant": false
}
]
}
]
}
},
"store_object_id": true,
"expected_sql_file": "alter_table_update_grants2.sql",
"expected_msql_file": "alter_table_update_grants2_msql.sql"
},
{
"type": "delete",
"name": "Delete Table with advanced options",

View File

@ -1,26 +0,0 @@
-- Table: public.table_like_tbl$%{}[]()&*^!@"'`\/#
-- DROP TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#";
CREATE TABLE IF NOT EXISTS public."table_like_tbl$%{}[]()&*^!@""'`\/#"
(
id integer NOT NULL,
name text COLLATE pg_catalog."default",
CONSTRAINT "table_like_tbl$%{}[]()&*^!@""'`\/#_pkey" PRIMARY KEY (id),
CONSTRAINT "table_like_tbl$%{}[]()&*^!@""'`\/#_name_key" UNIQUE (name)
)
WITH (
OIDS = FALSE,
FILLFACTOR = 13
)
TABLESPACE pg_default;
ALTER TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#"
OWNER to postgres;
GRANT ALL ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#" TO postgres;
GRANT REFERENCES, TRIGGER, TRUNCATE ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#" TO PUBLIC;
COMMENT ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#"
IS 'test comment';

View File

@ -1,7 +0,0 @@
ALTER TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#"
SET (FILLFACTOR=13);
COMMENT ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#"
IS 'test comment';
GRANT TRUNCATE, REFERENCES, TRIGGER ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#" TO PUBLIC;

View File

@ -1485,47 +1485,6 @@
"expected_sql_file": "create_table_with_lik_tbl.sql",
"expected_msql_file": "create_table_with_lik_tbl_msql.sql"
},
{
"type": "alter",
"name": "Alter Table update grants",
"endpoint": "NODE-table.obj_id",
"sql_endpoint": "NODE-table.sql_id",
"msql_endpoint": "NODE-table.msql_id",
"data": {
"name": "table_like_tbl$%{}[]()&*^!@\"'`\\/#",
"description": "test comment",
"fillfactor": "13",
"replica_identity": "",
"relacl": {
"added": [
{
"grantee": "PUBLIC",
"grantor": "postgres",
"privileges": [
{
"privilege_type": "D",
"privilege": true,
"with_grant": false
},
{
"privilege_type": "x",
"privilege": true,
"with_grant": false
},
{
"privilege_type": "t",
"privilege": true,
"with_grant": false
}
]
}
]
}
},
"store_object_id": true,
"expected_sql_file": "alter_table_update_grants2.sql",
"expected_msql_file": "alter_table_update_grants2_msql.sql"
},
{
"type": "delete",
"name": "Delete Table with advanced options",

View File

@ -1485,47 +1485,6 @@
"expected_sql_file": "create_table_with_lik_tbl.sql",
"expected_msql_file": "create_table_with_lik_tbl_msql.sql"
},
{
"type": "alter",
"name": "Alter Table update grants",
"endpoint": "NODE-table.obj_id",
"sql_endpoint": "NODE-table.sql_id",
"msql_endpoint": "NODE-table.msql_id",
"data": {
"name": "table_like_tbl$%{}[]()&*^!@\"'`\\/#",
"description": "test comment",
"fillfactor": "13",
"replica_identity": "",
"relacl": {
"added": [
{
"grantee": "PUBLIC",
"grantor": "postgres",
"privileges": [
{
"privilege_type": "D",
"privilege": true,
"with_grant": false
},
{
"privilege_type": "x",
"privilege": true,
"with_grant": false
},
{
"privilege_type": "t",
"privilege": true,
"with_grant": false
}
]
}
]
}
},
"store_object_id": true,
"expected_sql_file": "alter_table_update_grants2.sql",
"expected_msql_file": "alter_table_update_grants2_msql.sql"
},
{
"type": "delete",
"name": "Delete Table with advanced options",

View File

@ -1485,47 +1485,6 @@
"expected_sql_file": "create_table_with_lik_tbl.sql",
"expected_msql_file": "create_table_with_lik_tbl_msql.sql"
},
{
"type": "alter",
"name": "Alter Table update grants",
"endpoint": "NODE-table.obj_id",
"sql_endpoint": "NODE-table.sql_id",
"msql_endpoint": "NODE-table.msql_id",
"data": {
"name": "table_like_tbl$%{}[]()&*^!@\"'`\\/#",
"description": "test comment",
"fillfactor": "13",
"replica_identity": "",
"relacl": {
"added": [
{
"grantee": "PUBLIC",
"grantor": "postgres",
"privileges": [
{
"privilege_type": "D",
"privilege": true,
"with_grant": false
},
{
"privilege_type": "x",
"privilege": true,
"with_grant": false
},
{
"privilege_type": "t",
"privilege": true,
"with_grant": false
}
]
}
]
}
},
"store_object_id": true,
"expected_sql_file": "alter_table_update_grants2.sql",
"expected_msql_file": "alter_table_update_grants2_msql.sql"
},
{
"type": "delete",
"name": "Delete Table with advanced options",

View File

@ -1,26 +0,0 @@
-- Table: public.table_like_tbl$%{}[]()&*^!@"'`\/#
-- DROP TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#";
CREATE TABLE IF NOT EXISTS public."table_like_tbl$%{}[]()&*^!@""'`\/#"
(
id integer NOT NULL,
name text COLLATE pg_catalog."default",
CONSTRAINT "table_like_tbl$%{}[]()&*^!@""'`\/#_pkey" PRIMARY KEY (id),
CONSTRAINT "table_like_tbl$%{}[]()&*^!@""'`\/#_name_key" UNIQUE (name)
)
WITH (
FILLFACTOR = 13
)
TABLESPACE pg_default;
ALTER TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#"
OWNER to enterprisedb;
GRANT ALL ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#" TO enterprisedb;
GRANT REFERENCES, TRIGGER, TRUNCATE ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#" TO PUBLIC;
COMMENT ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#"
IS 'test comment';

View File

@ -1,7 +0,0 @@
ALTER TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#"
SET (FILLFACTOR=13);
COMMENT ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#"
IS 'test comment';
GRANT TRUNCATE, REFERENCES, TRIGGER ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#" TO PUBLIC;

View File

@ -1485,47 +1485,6 @@
"expected_sql_file": "create_table_with_lik_tbl.sql",
"expected_msql_file": "create_table_with_lik_tbl_msql.sql"
},
{
"type": "alter",
"name": "Alter Table update grants",
"endpoint": "NODE-table.obj_id",
"sql_endpoint": "NODE-table.sql_id",
"msql_endpoint": "NODE-table.msql_id",
"data": {
"name": "table_like_tbl$%{}[]()&*^!@\"'`\\/#",
"description": "test comment",
"fillfactor": "13",
"replica_identity": "",
"relacl": {
"added": [
{
"grantee": "PUBLIC",
"grantor": "postgres",
"privileges": [
{
"privilege_type": "D",
"privilege": true,
"with_grant": false
},
{
"privilege_type": "x",
"privilege": true,
"with_grant": false
},
{
"privilege_type": "t",
"privilege": true,
"with_grant": false
}
]
}
]
}
},
"store_object_id": true,
"expected_sql_file": "alter_table_update_grants2.sql",
"expected_msql_file": "alter_table_update_grants2_msql.sql"
},
{
"type": "delete",
"name": "Delete Table with advanced options",

View File

@ -1,26 +0,0 @@
-- Table: public.table_like_tbl$%{}[]()&*^!@"'`\/#
-- DROP TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#";
CREATE TABLE IF NOT EXISTS public."table_like_tbl$%{}[]()&*^!@""'`\/#"
(
id integer NOT NULL,
name text COLLATE pg_catalog."default",
CONSTRAINT "table_like_tbl$%{}[]()&*^!@""'`\/#_pkey" PRIMARY KEY (id),
CONSTRAINT "table_like_tbl$%{}[]()&*^!@""'`\/#_name_key" UNIQUE (name)
)
WITH (
OIDS = FALSE,
FILLFACTOR = 13
)
TABLESPACE pg_default;
ALTER TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#"
OWNER to enterprisedb;
GRANT ALL ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#" TO enterprisedb;
GRANT REFERENCES, TRIGGER, TRUNCATE ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#" TO PUBLIC;
COMMENT ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#"
IS 'test comment';

View File

@ -1,7 +0,0 @@
ALTER TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#"
SET (FILLFACTOR=13);
COMMENT ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#"
IS 'test comment';
GRANT TRUNCATE, REFERENCES, TRIGGER ON TABLE public."table_like_tbl$%{}[]()&*^!@""'`\/#" TO PUBLIC;

View File

@ -1485,47 +1485,6 @@
"expected_sql_file": "create_table_with_lik_tbl.sql",
"expected_msql_file": "create_table_with_lik_tbl_msql.sql"
},
{
"type": "alter",
"name": "Alter Table update grants",
"endpoint": "NODE-table.obj_id",
"sql_endpoint": "NODE-table.sql_id",
"msql_endpoint": "NODE-table.msql_id",
"data": {
"name": "table_like_tbl$%{}[]()&*^!@\"'`\\/#",
"description": "test comment",
"fillfactor": "13",
"replica_identity": "",
"relacl": {
"added": [
{
"grantee": "PUBLIC",
"grantor": "postgres",
"privileges": [
{
"privilege_type": "D",
"privilege": true,
"with_grant": false
},
{
"privilege_type": "x",
"privilege": true,
"with_grant": false
},
{
"privilege_type": "t",
"privilege": true,
"with_grant": false
}
]
}
]
}
},
"store_object_id": true,
"expected_sql_file": "alter_table_update_grants2.sql",
"expected_msql_file": "alter_table_update_grants2_msql.sql"
},
{
"type": "delete",
"name": "Delete Table with advanced options",

View File

@ -56,7 +56,6 @@ class PGUtilitiesBackupFeatureTest(BaseFeatureTest):
self.server['sslmode']
)
test_utils.drop_database(connection, self.database_name)
self._update_preferences()
db_id = test_utils.create_database(self.server, self.database_name)
if not db_id:
self.assertTrue(False, "Database {} is not "
@ -294,13 +293,6 @@ class PGUtilitiesBackupFeatureTest(BaseFeatureTest):
path_input.clear()
path_input.click()
path_input.send_keys(default_binary_path['pg'])
elif serv == 'gpdb':
path_input = self.page.find_by_xpath(
"//label[text()='Greenplum Database Binary "
"Path']/following-sibling::div//input")
path_input.clear()
path_input.click()
path_input.send_keys(default_binary_path['gpdb'])
elif serv == 'ppas':
path_input = self.page.find_by_xpath(
"//label[text()='EDB Advanced Server Binary "