1) Fixed feature tests failed due to maintenance changes.

2) Update release note.
This commit is contained in:
Akshay Joshi 2023-07-27 18:15:36 +05:30
parent 5c2d242ff8
commit b4e6d8c6d7
2 changed files with 12 additions and 6 deletions

View File

@ -20,6 +20,7 @@ Bundled PostgreSQL Utilities
New features New features
************ ************
| `Issue #6376 <https://github.com/pgadmin-org/pgadmin4/issues/6376>`_ - Added unlogged option while creating a sequence.
| `Issue #6381 <https://github.com/pgadmin-org/pgadmin4/issues/6381>`_ - Added support for SYSTEM, CONCURRENTLY and TABLESPACE options in REINDEX. | `Issue #6381 <https://github.com/pgadmin-org/pgadmin4/issues/6381>`_ - Added support for SYSTEM, CONCURRENTLY and TABLESPACE options in REINDEX.
| `Issue #6397 <https://github.com/pgadmin-org/pgadmin4/issues/6397>`_ - Added new/missing options to the VACUUM command. | `Issue #6397 <https://github.com/pgadmin-org/pgadmin4/issues/6397>`_ - Added new/missing options to the VACUUM command.
| `Issue #6415 <https://github.com/pgadmin-org/pgadmin4/issues/6415>`_ - Added SKIP_LOCKED and BUFFER_USAGE_LIMIT option to Analyze command. | `Issue #6415 <https://github.com/pgadmin-org/pgadmin4/issues/6415>`_ - Added SKIP_LOCKED and BUFFER_USAGE_LIMIT option to Analyze command.

View File

@ -130,13 +130,13 @@ class PGUtilitiesMaintenanceFeatureTest(BaseFeatureTest):
command = self.page.find_by_css_selector( command = self.page.find_by_css_selector(
NavMenuLocators.process_watcher_detailed_command_css).text NavMenuLocators.process_watcher_detailed_command_css).text
vacuum_details = \
"VACUUM (VERBOSE) on database '{0}' of server " \
"{1} ({2}:{3})".format(self.database_name, self.server['name'],
self.server['host'], self.server['port'])
if self.test_level == 'database': if self.test_level == 'database':
vacuum_details = \
"VACUUM on database '{0}' of server " \
"{1} ({2}:{3})".format(self.database_name, self.server['name'],
self.server['host'], self.server['port'])
self.assertEqual(message, vacuum_details) self.assertEqual(message, vacuum_details)
self.assertEqual(command, "VACUUM VERBOSE;") self.assertEqual(command, "VACUUM (VERBOSE);")
elif self.is_xss_check and self.test_level == 'table': elif self.is_xss_check and self.test_level == 'table':
# Check for XSS in the dialog # Check for XSS in the dialog
source_code = self.page.find_by_css_selector( source_code = self.page.find_by_css_selector(
@ -148,8 +148,13 @@ class PGUtilitiesMaintenanceFeatureTest(BaseFeatureTest):
'Maintenance detailed window' 'Maintenance detailed window'
) )
else: else:
vacuum_details = \
"VACUUM on table '{0}/public/{1}' of server " \
"{2} ({3}:{4})".format(self.database_name, self.table_name,
self.server['name'],
self.server['host'], self.server['port'])
self.assertEqual(message, vacuum_details) self.assertEqual(message, vacuum_details)
self.assertEqual(command, "VACUUM VERBOSE" self.assertEqual(command, "VACUUM (VERBOSE)"
" public." + self.table_name + ";") " public." + self.table_name + ";")
test_gui_helper.close_process_watcher(self) test_gui_helper.close_process_watcher(self)