From c6ab3084df3abb5f1af1d2efc09799b9b00ce052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Tomulik?= Date: Fri, 3 Jul 2020 12:50:40 +0200 Subject: fix some ext/ldap/tests --- ext/ldap/tests/connect.inc | 3 ++- ext/ldap/tests/ldap_sasl_bind_basic.phpt | 13 ++++++++++++- ext/ldap/tests/ldap_sasl_bind_error.phpt | 21 ++++++++++++++++----- 3 files changed, 30 insertions(+), 7 deletions(-) (limited to 'ext/ldap') diff --git a/ext/ldap/tests/connect.inc b/ext/ldap/tests/connect.inc index de41cca63c..101895c33d 100644 --- a/ext/ldap/tests/connect.inc +++ b/ext/ldap/tests/connect.inc @@ -9,8 +9,9 @@ $host = getenv("LDAP_TEST_HOST") ?: "localhost"; $port = getenv("LDAP_TEST_PORT") ?: 389; $base = getenv("LDAP_TEST_BASE") ?: "dc=my-domain,dc=com"; $user = getenv("LDAP_TEST_USER") ?: "cn=Manager,$base"; -$sasl_user = getenv("LDAP_TEST_SASL_USER") ?: "Manager"; $passwd = getenv("LDAP_TEST_PASSWD") ?: "secret"; +$sasl_user = getenv("LDAP_TEST_SASL_USER") ?: "userA"; +$sasl_passwd = getenv("LDAP_TEST_SASL_PASSWD") ?: "oops"; $protocol_version = getenv("LDAP_TEST_OPT_PROTOCOL_VERSION") ?: 3; $skip_on_bind_failure = getenv("LDAP_TEST_SKIP_BIND_FAILURE") ?: true; diff --git a/ext/ldap/tests/ldap_sasl_bind_basic.phpt b/ext/ldap/tests/ldap_sasl_bind_basic.phpt index 49c2f24a67..d85cd73a5c 100644 --- a/ext/ldap/tests/ldap_sasl_bind_basic.phpt +++ b/ext/ldap/tests/ldap_sasl_bind_basic.phpt @@ -17,11 +17,22 @@ Patrick Allaert ===DONE=== +--CLEAN-- + --EXPECT-- bool(true) ===DONE=== diff --git a/ext/ldap/tests/ldap_sasl_bind_error.phpt b/ext/ldap/tests/ldap_sasl_bind_error.phpt index 180066bb2c..8e2e5e1d13 100644 --- a/ext/ldap/tests/ldap_sasl_bind_error.phpt +++ b/ext/ldap/tests/ldap_sasl_bind_error.phpt @@ -11,6 +11,10 @@ Patrick Allaert ===DONE=== +--CLEAN-- + --EXPECTF-- Warning: ldap_sasl_bind() expects at least 1 parameter, 0 given in %s on line %d bool(false) -- cgit v1.2.1 From b291c926937fdcf3635a8aa3b83571f591c8c022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Tomulik?= Date: Fri, 3 Jul 2020 12:49:25 +0200 Subject: enable ext/ldap/tests on azure --- ext/ldap/tests/CONFLICTS | 1 + 1 file changed, 1 insertion(+) create mode 100644 ext/ldap/tests/CONFLICTS (limited to 'ext/ldap') diff --git a/ext/ldap/tests/CONFLICTS b/ext/ldap/tests/CONFLICTS new file mode 100644 index 0000000000..c1142c3c5c --- /dev/null +++ b/ext/ldap/tests/CONFLICTS @@ -0,0 +1 @@ +ldap -- cgit v1.2.1