generated from canonical/template-operator
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use cluster admin user when checking upgradability, use default port (#…
…520)
- Loading branch information
Showing
2 changed files
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1728,7 +1728,7 @@ def test_set_cluster_primary(self, _run_mysqlsh_script): | |
def test_verify_server_upgradable(self, _run_mysqlsh_script): | ||
"""Test is_server_upgradable.""" | ||
commands = ( | ||
"shell.connect('serverconfig:[email protected]:33062')", | ||
"shell.connect('clusteradmin:[email protected]:3306')", | ||
"try:\n util.check_for_server_upgrade(options={'outputFormat': 'JSON'})", | ||
"except ValueError:", | ||
" if session.run_sql('select @@version').fetch_all()[0][0].split('-')[0] == shell.version.split()[1]:", | ||
|
@@ -1752,7 +1752,7 @@ def test_verify_server_upgradable(self, _run_mysqlsh_script): | |
'"detectedProblems": [] }],' | ||
'"manualChecks": []}' | ||
) | ||
self.mysql.verify_server_upgradable() | ||
self.mysql.verify_server_upgradable("2.3.4.5") | ||
_run_mysqlsh_script.assert_called_with("\n".join(commands)) | ||
_run_mysqlsh_script.return_value = ( | ||
'{"serverAddress": "10.1.148.145:33060",' | ||
|