[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pecl-cvs
Subject:    [PECL-CVS] [pecl-database-mysql_xdevapi] release/8.0.30: tests: Make tests work also with non-local 
From:       Rafal Somla <noreply () php ! net>
Date:       2022-07-26 10:54:20
Message-ID: SEhXe0gfTy8cU0Y8l2NedW8ulI81ZFW3i5KnPRcBU () main ! php ! net
[Download RAW message or body]

Author: Rafal Somla (rsomla1)
Pusher: hramilison
Date: 2022-07-12T12:19:09+02:00

Commit: https://github.com/php/pecl-database-mysql_xdevapi/commit/c6908cb9cbf998a5dd15ce481e0945880fa4b6bd
 Raw diff: https://github.com/php/pecl-database-mysql_xdevapi/commit/c6908cb9cbf998a5dd15ce481e0945880fa4b6bd.diff


tests: Make tests work also with non-local server.

Changed paths:
  M  tests/auth/secure_native.phpt
  M  tests/auth/secure_sha256_mem.phpt
  M  tests/auth/sha256_mem.phpt
  M  tests/auth/timeout/incorrect_timeout.phpt
  M  tests/auth/timeout/successful_no_timeout.phpt
  M  tests/auth/unsecure_native.phpt
  M  tests/auth/unsecure_sha256_mem.phpt
  M  tests/auth/warnings_secure_caching_sha2.phpt
  M  tests/auth/warnings_secure_native.phpt
  M  tests/auth/warnings_unsecure_caching_sha2.phpt
  M  tests/auth/warnings_unsecure_native.phpt


Diff:

diff --git a/tests/auth/secure_native.phpt b/tests/auth/secure_native.phpt
index c7993ff1..4d7efb45 100644
--- a/tests/auth/secure_native.phpt
+++ b/tests/auth/secure_native.phpt
@@ -56,7 +56,7 @@ print "done!\n";
 --EXPECTF--
 [1251][HY000] Invalid authentication method EXTERNAL
 [10046][HY000] Invalid authentication mechanism UNSUPPORTED
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_native'@'localhost' \
(using password: YES) +[1045][HY000] Access denied for user \
'mysql_xdevapi_test_user_native'@'%S' (using password: YES)  [1251][HY000] Invalid \
authentication method EXTERNAL  [10046][HY000] Invalid authentication mechanism \
nonworking  [1251][HY000] Invalid authentication method EXTERNAL
diff --git a/tests/auth/secure_sha256_mem.phpt b/tests/auth/secure_sha256_mem.phpt
index 3305e9d4..45c9e4ec 100644
--- a/tests/auth/secure_sha256_mem.phpt
+++ b/tests/auth/secure_sha256_mem.phpt
@@ -54,14 +54,14 @@ print "done!\n";
 	clean_test_db();
 ?>
 --EXPECTF--
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
                (using password: YES)
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
(using password: YES) +[1045][HY000] Access denied for user \
'mysql_xdevapi_test_user_sha2'@'%S' (using password: YES) +[1045][HY000] Access \
denied for user 'mysql_xdevapi_test_user_sha2'@'%S' (using password: YES)  \
[1251][HY000] Invalid authentication method EXTERNAL  [10046][HY000] Invalid \
                authentication mechanism UNSUPPORTED
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
(using password: YES) +[1045][HY000] Access denied for user \
'mysql_xdevapi_test_user_sha2'@'%S' (using password: YES)  [1251][HY000] Invalid \
authentication method EXTERNAL  [10046][HY000] Invalid authentication mechanism \
                nonworking
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
(using password: YES) +[1045][HY000] Access denied for user \
'mysql_xdevapi_test_user_sha2'@'%S' (using password: YES)  [1251][HY000] Invalid \
authentication method EXTERNAL  [10046][HY000] Invalid authentication mechanism \
NonSupporteD  done!%A
diff --git a/tests/auth/sha256_mem.phpt b/tests/auth/sha256_mem.phpt
index 632a29b5..5c741fea 100644
--- a/tests/auth/sha256_mem.phpt
+++ b/tests/auth/sha256_mem.phpt
@@ -53,11 +53,11 @@ print "done!\n";
 --EXPECTF--
 [10054][HY000] Authentication failure. Authentication failed using MYSQL41, \
SHA256_MEMORY. Check username and password or try a secure connection  [1251][HY000] \
                Invalid authentication method PLAIN
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
                (using password: YES)
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
                (using password: YES)
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
                (using password: YES)
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
                (using password: YES)
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
(using password: YES) +[1045][HY000] Access denied for user \
'mysql_xdevapi_test_user_sha2'@'%S' (using password: YES) +[1045][HY000] Access \
denied for user 'mysql_xdevapi_test_user_sha2'@'%S' (using password: YES) \
+[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'%S' (using \
password: YES) +[1045][HY000] Access denied for user \
'mysql_xdevapi_test_user_sha2'@'%S' (using password: YES) +[1045][HY000] Access \
denied for user 'mysql_xdevapi_test_user_sha2'@'%S' (using password: YES)  \
[10054][HY000] Authentication failure. Authentication failed using MYSQL41, \
                SHA256_MEMORY. Check username and password or try a secure connection
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
(using password: YES) +[1045][HY000] Access denied for user \
'mysql_xdevapi_test_user_sha2'@'%S' (using password: YES)  done!%A
diff --git a/tests/auth/timeout/incorrect_timeout.phpt \
b/tests/auth/timeout/incorrect_timeout.phpt index 516d34c8..557b0f18 100644
--- a/tests/auth/timeout/incorrect_timeout.phpt
+++ b/tests/auth/timeout/incorrect_timeout.phpt
@@ -32,31 +32,31 @@ print "done!\n";
 	clean_test_db();
 ?>
 --EXPECTF--
-mysqlx://%s:%S@127.0.0.1/?connect-timeout=-5
+mysqlx://%s:%S@%S/?connect-timeout=-5
 [10050][HY000] TypeError: The connection timeout value must be a positive integer \
                (including 0).
 ----------------------
-mysqlx://%s:%S@127.0.0.1:81/?connect-timeout=-10
+mysqlx://%s:%S@%S:81/?connect-timeout=-10
 [10050][HY000] TypeError: The connection timeout value must be a positive integer \
                (including 0).
 ----------------------
-mysqlx://%s:%S@127.0.0.1:80/?connect-timeout=this_is_incorrect_timeout
+mysqlx://%s:%S@%S:80/?connect-timeout=this_is_incorrect_timeout
 [10052][HY000] Invalid argument. The argument to connect-timeout must be an integer, \
                but it is 'this_is_incorrect_timeout'.
 ----------------------
-mysqlx://%s:%S@127.0.0.1:82/?connect-timeout=invalid-time-out
+mysqlx://%s:%S@%S:82/?connect-timeout=invalid-time-out
 [10052][HY000] Invalid argument. The argument to connect-timeout must be an integer, \
                but it is 'invalid-time-out'.
 ----------------------
-mysqlx://%s:%S@127.0.0.1/?connect-timeout=-1.1
+mysqlx://%s:%S@%S/?connect-timeout=-1.1
 [10050][HY000] TypeError: The connection timeout value must be a positive integer \
                (including 0).
 ----------------------
-mysqlx://%s:%S@127.0.0.1:83/?connect-timeout=-10.101
+mysqlx://%s:%S@%S:83/?connect-timeout=-10.101
 [10050][HY000] TypeError: The connection timeout value must be a positive integer \
                (including 0).
 ----------------------
-mysqlx://%s:%S@127.0.0.1/?connect-timeout= ,
+mysqlx://%s:%S@%S/?connect-timeout= ,
 [10052][HY000] Invalid argument. The argument to connect-timeout must be an integer, \
                but it is ','.
 ----------------------
-mysqlx://%s:%S@127.0.0.1/?connect-timeout=++--
+mysqlx://%s:%S@%S/?connect-timeout=++--
 [10052][HY000] Invalid argument. The argument to connect-timeout must be an integer, \
                but it is '++--'.
 ----------------------
-mysqlx://%s:%S@127.0.0.1/?connect-timeout=
+mysqlx://%s:%S@%S/?connect-timeout=
 [10052][HY000] Invalid argument. The argument to connect-timeout cannot be empty.
 ----------------------
 mysqlx://%s:%S@198.51.100.255/?connect-timeout=-5
@@ -86,31 +86,31 @@ mysqlx://%s:%S@198.51.100.255/?connect-timeout=++--
 mysqlx://%s:%S@198.51.100.255/?connect-timeout=
 [10052][HY000] Invalid argument. The argument to connect-timeout cannot be empty.
 ----------------------
-mysqlx://%s:%S@localhost/?connect-timeout=-5
+mysqlx://%s:%S@%S/?connect-timeout=-5
 [10050][HY000] TypeError: The connection timeout value must be a positive integer \
                (including 0).
 ----------------------
-mysqlx://%s:%S@localhost:81/?connect-timeout=-10
+mysqlx://%s:%S@%S:81/?connect-timeout=-10
 [10050][HY000] TypeError: The connection timeout value must be a positive integer \
                (including 0).
 ----------------------
-mysqlx://%s:%S@localhost:80/?connect-timeout=this_is_incorrect_timeout
+mysqlx://%s:%S@%S:80/?connect-timeout=this_is_incorrect_timeout
 [10052][HY000] Invalid argument. The argument to connect-timeout must be an integer, \
                but it is 'this_is_incorrect_timeout'.
 ----------------------
-mysqlx://%s:%S@localhost:82/?connect-timeout=invalid-time-out
+mysqlx://%s:%S@%S:82/?connect-timeout=invalid-time-out
 [10052][HY000] Invalid argument. The argument to connect-timeout must be an integer, \
                but it is 'invalid-time-out'.
 ----------------------
-mysqlx://%s:%S@localhost/?connect-timeout=-1.1
+mysqlx://%s:%S@%S/?connect-timeout=-1.1
 [10050][HY000] TypeError: The connection timeout value must be a positive integer \
                (including 0).
 ----------------------
-mysqlx://%s:%S@localhost:83/?connect-timeout=-10.101
+mysqlx://%s:%S@%S:83/?connect-timeout=-10.101
 [10050][HY000] TypeError: The connection timeout value must be a positive integer \
                (including 0).
 ----------------------
-mysqlx://%s:%S@localhost/?connect-timeout= ,
+mysqlx://%s:%S@%S/?connect-timeout= ,
 [10052][HY000] Invalid argument. The argument to connect-timeout must be an integer, \
                but it is ','.
 ----------------------
-mysqlx://%s:%S@localhost/?connect-timeout=++--
+mysqlx://%s:%S@%S/?connect-timeout=++--
 [10052][HY000] Invalid argument. The argument to connect-timeout must be an integer, \
                but it is '++--'.
 ----------------------
-mysqlx://%s:%S@localhost/?connect-timeout=
+mysqlx://%s:%S@%S/?connect-timeout=
 [10052][HY000] Invalid argument. The argument to connect-timeout cannot be empty.
 ----------------------
 done!%A
diff --git a/tests/auth/timeout/successful_no_timeout.phpt \
b/tests/auth/timeout/successful_no_timeout.phpt index 75d48a34..afeb3353 100644
--- a/tests/auth/timeout/successful_no_timeout.phpt
+++ b/tests/auth/timeout/successful_no_timeout.phpt
@@ -13,8 +13,8 @@ function test_successful_not_elapsed_timeouts($host, $timeout) {
 	test_successful_not_elapsed_timeout($host, 0);
 }
 
-test_successful_not_elapsed_timeouts("127.0.0.1", 4);
-test_successful_not_elapsed_timeouts("localhost", 7);
+test_successful_not_elapsed_timeouts($host, 4);
+test_successful_not_elapsed_timeouts($host, 7);
 
 verify_expectations();
 print "done!\n";
@@ -25,16 +25,16 @@ print "done!\n";
 	clean_test_db();
 ?>
 --EXPECTF--
-mysqlx://%s:%S@127.0.0.1:%d/?connect-timeout=4
+mysqlx://%s:%S@%S:%d/?connect-timeout=4
 ----------------------
-mysqlx://%s:%S@127.0.0.1:%d
+mysqlx://%s:%S@%S:%d
 ----------------------
-mysqlx://%s:%S@127.0.0.1:%d/?connect-timeout=0
+mysqlx://%s:%S@%S:%d/?connect-timeout=0
 ----------------------
-mysqlx://%s:%S@localhost:%d/?connect-timeout=7
+mysqlx://%s:%S@%S:%d/?connect-timeout=7
 ----------------------
-mysqlx://%s:%S@localhost:%d
+mysqlx://%s:%S@%S:%d
 ----------------------
-mysqlx://%s:%S@localhost:%d/?connect-timeout=0
+mysqlx://%s:%S@%S:%d/?connect-timeout=0
 ----------------------
 done!%A
diff --git a/tests/auth/unsecure_native.phpt b/tests/auth/unsecure_native.phpt
index 6fb7db5e..f9313bed 100644
--- a/tests/auth/unsecure_native.phpt
+++ b/tests/auth/unsecure_native.phpt
@@ -49,15 +49,15 @@ print "done!\n";
 ?>
 --EXPECTF--
 [1251][HY000] Invalid authentication method PLAIN
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_native'@'localhost' \
(using password: YES) +[1045][HY000] Access denied for user \
'mysql_xdevapi_test_user_native'@'%S' (using password: YES)  [1251][HY000] Invalid \
authentication method EXTERNAL  [10046][HY000] Invalid authentication mechanism WRONG
 [1251][HY000] Invalid authentication method PLAIN
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_native'@'localhost' \
(using password: YES) +[1045][HY000] Access denied for user \
'mysql_xdevapi_test_user_native'@'%S' (using password: YES)  [1251][HY000] Invalid \
authentication method EXTERNAL  [10046][HY000] Invalid authentication mechanism \
non-existent  [1251][HY000] Invalid authentication method PLAIN
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_native'@'localhost' \
(using password: YES) +[1045][HY000] Access denied for user \
'mysql_xdevapi_test_user_native'@'%S' (using password: YES)  [1251][HY000] Invalid \
authentication method EXTERNAL  [10046][HY000] Invalid authentication mechanism \
InCorrect  done!%A
diff --git a/tests/auth/unsecure_sha256_mem.phpt \
b/tests/auth/unsecure_sha256_mem.phpt index 1d42389b..7b871de9 100644
--- a/tests/auth/unsecure_sha256_mem.phpt
+++ b/tests/auth/unsecure_sha256_mem.phpt
@@ -63,21 +63,21 @@ print "done!\n";
 ?>
 --EXPECTF--
 [10054][HY000] Authentication failure. Authentication failed using MYSQL41, \
                SHA256_MEMORY. Check username and password or try a secure connection
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
(using password: YES) +[1045][HY000] Access denied for user \
'mysql_xdevapi_test_user_sha2'@'%S' (using password: YES)  [1251][HY000] Invalid \
                authentication method PLAIN
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
(using password: YES) +[1045][HY000] Access denied for user \
'mysql_xdevapi_test_user_sha2'@'%S' (using password: YES)  [1251][HY000] Invalid \
authentication method EXTERNAL  [10046][HY000] Invalid authentication mechanism \
                UNSUPPORTED
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
(using password: YES) +[1045][HY000] Access denied for user \
'mysql_xdevapi_test_user_sha2'@'%S' (using password: YES)  [1251][HY000] Invalid \
                authentication method PLAIN
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
(using password: YES) +[1045][HY000] Access denied for user \
'mysql_xdevapi_test_user_sha2'@'%S' (using password: YES)  [1251][HY000] Invalid \
authentication method EXTERNAL  [10046][HY000] Invalid authentication mechanism \
nonworking  [10046][HY000] Invalid authentication mechanism MyqQl41
 [1251][HY000] Invalid authentication method PLAIN
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
(using password: YES) +[1045][HY000] Access denied for user \
'mysql_xdevapi_test_user_sha2'@'%S' (using password: YES)  [1251][HY000] Invalid \
authentication method EXTERNAL  [10046][HY000] Invalid authentication mechanism \
imProper  [10054][HY000] Authentication failure. Authentication failed using MYSQL41, \
                SHA256_MEMORY. Check username and password or try a secure connection
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
(using password: YES) +[1045][HY000] Access denied for user \
'mysql_xdevapi_test_user_sha2'@'%S' (using password: YES)  done!%A
diff --git a/tests/auth/warnings_secure_caching_sha2.phpt \
b/tests/auth/warnings_secure_caching_sha2.phpt index f40bfc74..8c08afb3 100644
--- a/tests/auth/warnings_secure_caching_sha2.phpt
+++ b/tests/auth/warnings_secure_caching_sha2.phpt
@@ -36,36 +36,36 @@ print "done!\n";
 	clean_test_db();
 ?>
 --EXPECTF--
-mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@localhost:%s/?ssl-key=%s&auth=MYSQL41
 +mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@%S:%s/?ssl-key=%s&auth=MYSQL41
  
-Warning: mysql_xdevapi\getSession(): [1045][HY000] Access denied for user \
                'mysql_xdevapi_test_user_sha2'@'localhost' (using password: YES) in \
                %s
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
(using password: YES) +Warning: mysql_xdevapi\getSession(): [1045][HY000] Access \
denied for user 'mysql_xdevapi_test_user_sha2'@'%S' (using password: YES) in %s \
+[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'%S' (using \
                password: YES)
 ----------------------
-mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@localhost:%s/?ssl-key=%s&auth=SHA256_MEMORY
 +mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@%S:%s/?ssl-key=%s&auth=SHA256_MEMORY
  
-Warning: mysql_xdevapi\getSession(): [1045][HY000] Access denied for user \
                'mysql_xdevapi_test_user_sha2'@'localhost' (using password: YES) in \
                %s
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
(using password: YES) +Warning: mysql_xdevapi\getSession(): [1045][HY000] Access \
denied for user 'mysql_xdevapi_test_user_sha2'@'%S' (using password: YES) in %s \
+[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'%S' (using \
                password: YES)
 ----------------------
-mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@localhost:%s/?ssl-key=%s&auth=EXTERNAL
 +mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@%S:%s/?ssl-key=%s&auth=EXTERNAL
  
 Warning: mysql_xdevapi\getSession(): [1251][HY000] Invalid authentication method \
EXTERNAL in %s %A  [1251][HY000] Invalid authentication method EXTERNAL
 ----------------------
-mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@localhost:%s/?ssl-key=%s&auth=UNKNOWN
 +mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@%S:%s/?ssl-key=%s&auth=UNKNOWN
  [10046][HY000] Invalid authentication mechanism UNKNOWN
 ----------------------
-mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@localhost:%s/?ssl-key=%s&auth=SHA256_MEMORY
 +mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@%S:%s/?ssl-key=%s&auth=SHA256_MEMORY
                
 ----------------------
-mysqlx://mysql_xdevapi_test_user_unknown:mysql_xdevapi_test_user_unknown_password@localhost:%s/?ssl-key=%s&auth=SHA256_MEMORY
 +mysqlx://mysql_xdevapi_test_user_unknown:mysql_xdevapi_test_user_unknown_password@%S:%s/?ssl-key=%s&auth=SHA256_MEMORY
  
-Warning: mysql_xdevapi\getSession(): [1045][HY000] Access denied for user \
                'mysql_xdevapi_test_user_unknown'@'localhost' (using password: YES) \
                in %s
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_unknown'@'localhost' \
(using password: YES) +Warning: mysql_xdevapi\getSession(): [1045][HY000] Access \
denied for user 'mysql_xdevapi_test_user_unknown'@'%S' (using password: YES) in %s \
+[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_unknown'@'%S' (using \
                password: YES)
 ----------------------
-mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@localhost:%s/?ssl-key=%s&auth=sha256_memory
 +mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@%S:%s/?ssl-key=%s&auth=sha256_memory
                
 ----------------------
-mysqlx://mysql_xdevapi_test_user_unknown:mysql_xdevapi_test_user_unknown_password@localhost:%s/?ssl-key=%s&auth=sha256_memory
 +mysqlx://mysql_xdevapi_test_user_unknown:mysql_xdevapi_test_user_unknown_password@%S:%s/?ssl-key=%s&auth=sha256_memory
  
-Warning: mysql_xdevapi\getSession(): [1045][HY000] Access denied for user \
                'mysql_xdevapi_test_user_unknown'@'localhost' (using password: YES) \
                in %s
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_unknown'@'localhost' \
(using password: YES) +Warning: mysql_xdevapi\getSession(): [1045][HY000] Access \
denied for user 'mysql_xdevapi_test_user_unknown'@'%S' (using password: YES) in %s \
+[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_unknown'@'%S' (using \
                password: YES)
 ----------------------
 done!%A
diff --git a/tests/auth/warnings_secure_native.phpt \
b/tests/auth/warnings_secure_native.phpt index 92801bfd..45b3f92b 100644
--- a/tests/auth/warnings_secure_native.phpt
+++ b/tests/auth/warnings_secure_native.phpt
@@ -30,30 +30,30 @@ print "done!\n";
 	clean_test_db();
 ?>
 --EXPECTF--
-mysqlx://mysql_xdevapi_test_user_native:mysql_xdevapi_test_user_native_password@localhost:%s/?ssl-key=%s&auth=sha256_memory
 +mysqlx://mysql_xdevapi_test_user_native:mysql_xdevapi_test_user_native_password@%S:%s/?ssl-key=%s&auth=sha256_memory
  
-Warning: mysql_xdevapi\getSession(): [1045][HY000] Access denied for user \
                'mysql_xdevapi_test_user_native'@'localhost' (using password: YES) in \
                %s
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_native'@'localhost' \
(using password: YES) +Warning: mysql_xdevapi\getSession(): [1045][HY000] Access \
denied for user 'mysql_xdevapi_test_user_native'@'%S' (using password: YES) in %s \
+[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_native'@'%S' (using \
                password: YES)
 ----------------------
-mysqlx://mysql_xdevapi_test_user_native:mysql_xdevapi_test_user_native_password@localhost:%s/?ssl-key=%s&auth=unknown
 +mysqlx://mysql_xdevapi_test_user_native:mysql_xdevapi_test_user_native_password@%S:%s/?ssl-key=%s&auth=unknown
  [10046][HY000] Invalid authentication mechanism unknown
 ----------------------
-mysqlx://mysql_xdevapi_test_user_unknown:mysql_xdevapi_test_user_unknown_password@localhost:%s/?ssl-key=%s
 +mysqlx://mysql_xdevapi_test_user_unknown:mysql_xdevapi_test_user_unknown_password@%S:%s/?ssl-key=%s
  
-Warning: mysql_xdevapi\getSession(): [1045][HY000] Access denied for user \
                'mysql_xdevapi_test_user_unknown'@'localhost' (using password: YES) \
                in %s
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_unknown'@'localhost' \
(using password: YES) +Warning: mysql_xdevapi\getSession(): [1045][HY000] Access \
denied for user 'mysql_xdevapi_test_user_unknown'@'%S' (using password: YES) in %s \
+[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_unknown'@'%S' (using \
                password: YES)
 ----------------------
-mysqlx://mysql_xdevapi_test_user_unknown:mysql_xdevapi_test_user_unknown_password@localhost:%s/?ssl-key=%s&auth=mysql41
 +mysqlx://mysql_xdevapi_test_user_unknown:mysql_xdevapi_test_user_unknown_password@%S:%s/?ssl-key=%s&auth=mysql41
  
-Warning: mysql_xdevapi\getSession(): [1045][HY000] Access denied for user \
                'mysql_xdevapi_test_user_unknown'@'localhost' (using password: YES) \
                in %s
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_unknown'@'localhost' \
(using password: YES) +Warning: mysql_xdevapi\getSession(): [1045][HY000] Access \
denied for user 'mysql_xdevapi_test_user_unknown'@'%S' (using password: YES) in %s \
+[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_unknown'@'%S' (using \
                password: YES)
 ----------------------
-mysqlx://mysql_xdevapi_test_user_unknown:mysql_xdevapi_test_user_unknown_password@localhost:%s/?ssl-key=%s&auth=plain
 +mysqlx://mysql_xdevapi_test_user_unknown:mysql_xdevapi_test_user_unknown_password@%S:%s/?ssl-key=%s&auth=plain
  
-Warning: mysql_xdevapi\getSession(): [1045][HY000] Access denied for user \
                'mysql_xdevapi_test_user_unknown'@'localhost' (using password: YES) \
                in %s
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_unknown'@'localhost' \
(using password: YES) +Warning: mysql_xdevapi\getSession(): [1045][HY000] Access \
denied for user 'mysql_xdevapi_test_user_unknown'@'%S' (using password: YES) in %s \
+[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_unknown'@'%S' (using \
                password: YES)
 ----------------------
-mysqlx://mysql_xdevapi_test_user_native:mysql_xdevapi_test_user_native_password@localhost:%s/?ssl-key=%s&auth=external
 +mysqlx://mysql_xdevapi_test_user_native:mysql_xdevapi_test_user_native_password@%S:%s/?ssl-key=%s&auth=external
  
 Warning: mysql_xdevapi\getSession(): [1251][HY000] Invalid authentication method \
EXTERNAL in %s %A  [1251][HY000] Invalid authentication method EXTERNAL
diff --git a/tests/auth/warnings_unsecure_caching_sha2.phpt \
b/tests/auth/warnings_unsecure_caching_sha2.phpt index 1e9f622e..1a295e25 100644
--- a/tests/auth/warnings_unsecure_caching_sha2.phpt
+++ b/tests/auth/warnings_unsecure_caching_sha2.phpt
@@ -38,46 +38,46 @@ print "done!\n";
 	clean_test_db();
 ?>
 --EXPECTF--
-mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@localhost:%s/?ssl-mode=disabled
 +mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@%S:%s/?ssl-mode=disabled
  
 Warning: mysql_xdevapi\getSession(): [10054][HY000] Authentication failure. \
Authentication failed using MYSQL41, SHA256_MEMORY. Check username and password or \
try a secure connection in %s on line %d  [10054][HY000] Authentication failure. \
Authentication failed using MYSQL41, SHA256_MEMORY. Check username and password or \
                try a secure connection
 ----------------------
-mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@localhost:%s/?ssl-mode=disabled&auth=MYSQL41
 +mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@%S:%s/?ssl-mode=disabled&auth=MYSQL41
  
-Warning: mysql_xdevapi\getSession(): [1045][HY000] Access denied for user \
                'mysql_xdevapi_test_user_sha2'@'localhost' (using password: YES) in \
                %s on line %d
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
(using password: YES) +Warning: mysql_xdevapi\getSession(): [1045][HY000] Access \
denied for user 'mysql_xdevapi_test_user_sha2'@'%S' (using password: YES) in %s on \
line %d +[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'%S' \
                (using password: YES)
 ----------------------
-mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@localhost:%s/?ssl-mode=disabled&auth=SHA256_MEMORY
 +mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@%S:%s/?ssl-mode=disabled&auth=SHA256_MEMORY
  
-Warning: mysql_xdevapi\getSession(): [1045][HY000] Access denied for user \
                'mysql_xdevapi_test_user_sha2'@'localhost' (using password: YES) in \
                %s on line %d
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'localhost' \
(using password: YES) +Warning: mysql_xdevapi\getSession(): [1045][HY000] Access \
denied for user 'mysql_xdevapi_test_user_sha2'@'%S' (using password: YES) in %s on \
line %d +[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_sha2'@'%S' \
                (using password: YES)
 ----------------------
-mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@localhost:%s/?ssl-mode=disabled&auth=PLAIN
 +mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@%S:%s/?ssl-mode=disabled&auth=PLAIN
  
 Warning: mysql_xdevapi\getSession(): [1251][HY000] Invalid authentication method \
PLAIN in %s on line %d  [1251][HY000] Invalid authentication method PLAIN
 ----------------------
-mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@localhost:%s/?ssl-mode=disabled&auth=EXTERNAL
 +mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@%S:%s/?ssl-mode=disabled&auth=EXTERNAL
  
 Warning: mysql_xdevapi\getSession(): [1251][HY000] Invalid authentication method \
EXTERNAL in %s on line %d  [1251][HY000] Invalid authentication method EXTERNAL
 ----------------------
-mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@localhost:%s/?ssl-mode=disabled&auth=UNSUPPORTED
 +mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@%S:%s/?ssl-mode=disabled&auth=UNSUPPORTED
  [10046][HY000] Invalid authentication mechanism UNSUPPORTED
 ----------------------
-mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@localhost:%s/?ssl-mode=disabled&auth=SHA256_MEMORY
 +mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@%S:%s/?ssl-mode=disabled&auth=SHA256_MEMORY
                
 ----------------------
-mysqlx://mysql_xdevapi_test_user_unknown:mysql_xdevapi_test_user_unknown_password@localhost:%s/?ssl-mode=disabled&auth=SHA256_MEMORY
 +mysqlx://mysql_xdevapi_test_user_unknown:mysql_xdevapi_test_user_unknown_password@%S:%s/?ssl-mode=disabled&auth=SHA256_MEMORY
  
-Warning: mysql_xdevapi\getSession(): [1045][HY000] Access denied for user \
                'mysql_xdevapi_test_user_unknown'@'localhost' (using password: YES) \
                in %s on line %d
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_unknown'@'localhost' \
(using password: YES) +Warning: mysql_xdevapi\getSession(): [1045][HY000] Access \
denied for user 'mysql_xdevapi_test_user_unknown'@'%S' (using password: YES) in %s on \
line %d +[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_unknown'@'%S' \
                (using password: YES)
 ----------------------
-mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@localhost:%s/?ssl-mode=disabled&auth=sha256_memory
 +mysqlx://mysql_xdevapi_test_user_sha2:mysql_xdevapi_test_user_sha2_password@%S:%s/?ssl-mode=disabled&auth=sha256_memory
                
 ----------------------
-mysqlx://mysql_xdevapi_test_user_unknown:mysql_xdevapi_test_user_unknown_password@localhost:%s/?ssl-mode=disabled&auth=sha256_memory
 +mysqlx://mysql_xdevapi_test_user_unknown:mysql_xdevapi_test_user_unknown_password@%S:%s/?ssl-mode=disabled&auth=sha256_memory
  
-Warning: mysql_xdevapi\getSession(): [1045][HY000] Access denied for user \
                'mysql_xdevapi_test_user_unknown'@'localhost' (using password: YES) \
                in %s on line %d
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_unknown'@'localhost' \
(using password: YES) +Warning: mysql_xdevapi\getSession(): [1045][HY000] Access \
denied for user 'mysql_xdevapi_test_user_unknown'@'%S' (using password: YES) in %s on \
line %d +[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_unknown'@'%S' \
                (using password: YES)
 ----------------------
 done!%A
diff --git a/tests/auth/warnings_unsecure_native.phpt \
b/tests/auth/warnings_unsecure_native.phpt index 29a230fa..8090e34b 100644
--- a/tests/auth/warnings_unsecure_native.phpt
+++ b/tests/auth/warnings_unsecure_native.phpt
@@ -29,32 +29,32 @@ print "done!\n";
 	clean_test_db();
 ?>
 --EXPECTF--
-mysqlx://mysql_xdevapi_test_user_native:mysql_xdevapi_test_user_native_password@localhost:%s/?ssl-mode=disabled&auth=sha256_memory
 +mysqlx://mysql_xdevapi_test_user_native:mysql_xdevapi_test_user_native_password@%S:%s/?ssl-mode=disabled&auth=sha256_memory
  
-Warning: mysql_xdevapi\getSession(): [1045][HY000] Access denied for user \
                'mysql_xdevapi_test_user_native'@'localhost' (using password: YES) in \
                %s on line %d
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_native'@'localhost' \
(using password: YES) +Warning: mysql_xdevapi\getSession(): [1045][HY000] Access \
denied for user 'mysql_xdevapi_test_user_native'@'%S' (using password: YES) in %s on \
line %d +[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_native'@'%S' \
                (using password: YES)
 ----------------------
-mysqlx://mysql_xdevapi_test_user_native:mysql_xdevapi_test_user_native_password@localhost:%s/?ssl-mode=disabled&auth=plain
 +mysqlx://mysql_xdevapi_test_user_native:mysql_xdevapi_test_user_native_password@%S:%s/?ssl-mode=disabled&auth=plain
  
 Warning: mysql_xdevapi\getSession(): [1251][HY000] Invalid authentication method \
PLAIN in %s on line %d  [1251][HY000] Invalid authentication method PLAIN
 ----------------------
-mysqlx://mysql_xdevapi_test_user_native:mysql_xdevapi_test_user_native_password@localhost:%s/?ssl-mode=disabled&auth=external
 +mysqlx://mysql_xdevapi_test_user_native:mysql_xdevapi_test_user_native_password@%S:%s/?ssl-mode=disabled&auth=external
  
 Warning: mysql_xdevapi\getSession(): [1251][HY000] Invalid authentication method \
EXTERNAL in %s on line %d  [1251][HY000] Invalid authentication method EXTERNAL
 ----------------------
-mysqlx://mysql_xdevapi_test_user_native:mysql_xdevapi_test_user_native_password@localhost:%s/?ssl-mode=disabled&auth=unsupported
 +mysqlx://mysql_xdevapi_test_user_native:mysql_xdevapi_test_user_native_password@%S:%s/?ssl-mode=disabled&auth=unsupported
  [10046][HY000] Invalid authentication mechanism unsupported
 ----------------------
-mysqlx://mysql_xdevapi_test_user_unknown:mysql_xdevapi_test_user_unknown_password@localhost:%s/?ssl-mode=disabled
 +mysqlx://mysql_xdevapi_test_user_unknown:mysql_xdevapi_test_user_unknown_password@%S:%s/?ssl-mode=disabled
  
 Warning: mysql_xdevapi\getSession(): [10054][HY000] Authentication failure. \
Authentication failed using MYSQL41, SHA256_MEMORY. Check username and password or \
try a secure connection in %s on line %d  [10054][HY000] Authentication failure. \
Authentication failed using MYSQL41, SHA256_MEMORY. Check username and password or \
                try a secure connection
 ----------------------
-mysqlx://mysql_xdevapi_test_user_unknown:mysql_xdevapi_test_user_unknown_password@localhost:%s/?ssl-mode=disabled&auth=mysql41
 +mysqlx://mysql_xdevapi_test_user_unknown:mysql_xdevapi_test_user_unknown_password@%S:%s/?ssl-mode=disabled&auth=mysql41
  
-Warning: mysql_xdevapi\getSession(): [1045][HY000] Access denied for user \
                'mysql_xdevapi_test_user_unknown'@'localhost' (using password: YES) \
                in %s on line %d
-[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_unknown'@'localhost' \
(using password: YES) +Warning: mysql_xdevapi\getSession(): [1045][HY000] Access \
denied for user 'mysql_xdevapi_test_user_unknown'@'%S' (using password: YES) in %s on \
line %d +[1045][HY000] Access denied for user 'mysql_xdevapi_test_user_unknown'@'%S' \
                (using password: YES)
 ----------------------
 done!%A

-- 
PECL CVS Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic