[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: Disable failing tests that need to b
From: Rafal Somla <noreply () php ! net>
Date: 2022-07-26 10:54:23
Message-ID: lviwvrlYWMS63VGen9lBnSrWUEnYqD6ZPjjxd6G0 () main ! php ! net
[Download RAW message or body]
Author: Rafal Somla (rsomla1)
Pusher: hramilison
Date: 2022-07-12T12:29:44+02:00
Commit: https://github.com/php/pecl-database-mysql_xdevapi/commit/8cc9a136d9e9b8276ff5505e5ee9d546e698784e
Raw diff: https://github.com/php/pecl-database-mysql_xdevapi/commit/8cc9a136d9e9b8276ff5505e5ee9d546e698784e.diff
tests: Disable failing tests that need to be fixed.
Changed paths:
M tests/auth/secure_connection_options.phpt
M tests/connection_test_uri_string.phpt
M tests/simple_ssl.phpt
Diff:
diff --git a/tests/auth/secure_connection_options.phpt \
b/tests/auth/secure_connection_options.phpt index 88ca147f..e45dcdd1 100644
--- a/tests/auth/secure_connection_options.phpt
+++ b/tests/auth/secure_connection_options.phpt
@@ -8,6 +8,15 @@ default_socket_timeout=4
<?php
require_once(__DIR__."/auth_utils.inc");
+/*
+ FIXME: This test requires that it is possible to login to test user account
+ without SSL. But this is not the case if the test account uses
+ `caching_sha2_password` authentication, for example, because this
+ authentication method requires SSL and then the test fails miserably.
+
+ Probably best to create and use dedicated account for these scenarios.
+*/
+
function test_ssl_connection_options($user, $ssl_mode, $ssl_option = '', \
$expect_success = true, $only_report = false) { global $connection_uri;
$uri = $connection_uri;
diff --git a/tests/connection_test_uri_string.phpt \
b/tests/connection_test_uri_string.phpt index d47031c4..4a49a5f6 100644
--- a/tests/connection_test_uri_string.phpt
+++ b/tests/connection_test_uri_string.phpt
@@ -1,6 +1,10 @@
--TEST--
mysqlx connection test / URI string
--SKIPIF--
+<?php
+ // FIXME: on win error codes are different from expected
+ if(substr(PHP_OS,0,3) == 'WIN') echo 'skip';
+?>
--INI--
error_reporting=0
default_socket_timeout=1
diff --git a/tests/simple_ssl.phpt b/tests/simple_ssl.phpt
index 35bc56b7..8f6b8215 100644
--- a/tests/simple_ssl.phpt
+++ b/tests/simple_ssl.phpt
@@ -28,7 +28,10 @@ mysqlx simple SSL connection
$res = $session->sql('SELECT USER()')->execute();
$userdata = $res->fetchOne();
- expect_eq($userdata['USER()'], $user.'@'.$host);
+ // FIXME:
+ // - fails when DNS hostname is converted to IP address
+ // - fails when test server runs inside docker
+ // expect_eq($userdata['USER()'], $user.'@'.$host);
verify_expectations();
print "done!\n";
?>
--
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