|
27 | 27 | #include "modules/mod_mysql_session.h"
|
28 | 28 | #include "shell_script_tester.h"
|
29 | 29 | #include "utils/utils_general.h"
|
| 30 | +#include "utils/utils_path.h" |
30 | 31 | #include "utils/utils_connection.h"
|
31 | 32 | #include "utils/utils_file.h"
|
32 | 33 |
|
@@ -490,10 +491,19 @@ TEST_F(Shell_js_dba_tests, configure_local_instance) {
|
490 | 491 | validate_interactive("dba_configure_local_instance.js");
|
491 | 492 | // MP should have been called with the cluster admin account that was created
|
492 | 493 | // (BUG#26979375)
|
| 494 | +#ifndef _WIN32 |
493 | 495 | MY_EXPECT_LOG_CONTAINS("mysqlprovision check --instance=gr_user2@", false);
|
| 496 | +#else |
| 497 | + MY_EXPECT_LOG_CONTAINS("mysqlprovision.zip check --instance=gr_user2@", |
| 498 | + false); |
| 499 | +#endif |
494 | 500 | // MP should have been called with the cluster admin account that already
|
495 | 501 | // existed (BUG#26979375)
|
| 502 | +#ifndef _WIN32 |
496 | 503 | MY_EXPECT_LOG_CONTAINS("mysqlprovision check --instance=gr_user@", true);
|
| 504 | +#else |
| 505 | + MY_EXPECT_LOG_CONTAINS("mysqlprovision.zip check --instance=gr_user@", true); |
| 506 | +#endif |
497 | 507 | // Clean up sandboxes.
|
498 | 508 | execute("cleanup_sandboxes(true)");
|
499 | 509 | }
|
@@ -675,10 +685,10 @@ TEST_F(Shell_js_dba_tests, dba_cluster_add_instance) {
|
675 | 685 |
|
676 | 686 | validate_interactive("dba_cluster_add_instance.js");
|
677 | 687 | // BUG#26393614
|
| 688 | + std::string sandbox_path = |
| 689 | + shcore::join_path({_sandbox_dir, _mysql_sandbox_port2, "sandboxdata"}); |
678 | 690 | std::vector<std::string> log{
|
679 |
| - "'localhost' (" + _sandbox_dir + _path_splitter + _mysql_sandbox_port2 + |
680 |
| - _path_splitter + |
681 |
| - "sandboxdata) detected as local sandbox. " |
| 691 | + "'localhost' (" +sandbox_path + ") detected as local sandbox. " |
682 | 692 | "Sandbox instances are only suitable for deploying and "
|
683 | 693 | "running on your local machine for testing purposes and are not "
|
684 | 694 | "accessible from external networks."};
|
|
0 commit comments