Pin MySQL installer to 8.0.43

This commit is contained in:
王鹏
2026-10-09 08:45:18 +08:00
parent 9732d53ba7
commit 5e5e075d33
4 changed files with 14 additions and 4 deletions

View File

@@ -7,6 +7,7 @@ from pathlib import Path
from deploy_tool.installer import (
MAVEN_ARCHIVE_NAME,
MYSQL_VERSION,
TOMCAT_VERSION,
install_maven,
install_tomcat,
@@ -103,6 +104,8 @@ class InstallerTests(unittest.TestCase):
command = build_install_command("MySQL")
self.assertEqual(command[0:5], ["winget", "install", "--exact", "--id", "Oracle.MySQL"])
self.assertEqual(command[command.index("--version") + 1], MYSQL_VERSION)
self.assertEqual(MYSQL_VERSION, "8.0.43")
self.assertIn("--accept-source-agreements", command)
self.assertIn("--accept-package-agreements", command)
self.assertIn("--disable-interactivity", command)