Ensure external table node should be visible only for GPDB. Fixes #3548

This commit is contained in:
Akshay Joshi
2018-08-27 19:11:25 +05:30
parent ea787b30eb
commit dd3c7c94e6
3 changed files with 12 additions and 0 deletions

View File

@@ -67,6 +67,7 @@ class ExternalTablesModule(CollectionNodeModule):
super(ExternalTablesModule, self).__init__(*args, **kwargs)
self.max_ver = 0
self.server_type = ['gpdb']
def get_nodes(self, gid, sid, did):
yield self.generate_browser_collection_node(did)

View File

@@ -33,6 +33,16 @@ class TestExternalTablesModule(BaseTestGenerator):
),
expected_result=False,
)),
('#BackendSupported When access the on a Postgres Plus Advance Server '
'Database, it returns false',
dict(
test_type='backend-support',
manager=dict(
server_type='ppas',
sversion=90100
),
expected_result=False,
)),
('#BackendSupported When access the on a GreenPlum Database, '
'it returns true',
dict(