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

@ -25,6 +25,7 @@ Bug fixes
| `Bug #3461 <https://redmine.postgresql.org/issues/3461>`_ - Ensure that refreshing a node also updates the Property list.
| `Bug #3528 <https://redmine.postgresql.org/issues/3528>`_ - Handle connection errors properly in the query tool.
| `Bug #3547 <https://redmine.postgresql.org/issues/3547>`_ - Make session implementation thread safe
| `Bug #3548 <https://redmine.postgresql.org/issues/3548>`_ - Ensure external table node should be visible only for GPDB.
| `Bug #3558 <https://redmine.postgresql.org/issues/3558>`_ - Fix sort/filter dialog editing issue.
| `Bug #3561 <https://redmine.postgresql.org/issues/3561>`_ - Ensure sort/filter dialog should display proper message after losing database connection.
| `Bug #3578 <https://redmine.postgresql.org/issues/3578>`_ - Ensure sql for Role should be visible in SQL panel for GPDB.

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(