mirror of
https://github.com/php/pecl-database-mysql_xdevapi.git
synced 2026-03-23 23:02:08 +01:00
tests: Disable failing tests that need to be fixed.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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";
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user