mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure external table node should be visible only for GPDB. Fixes #3548
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user