nss-pam-ldapd branch master updated. 0.9.6-16-g525c996
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd branch master updated. 0.9.6-16-g525c996
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd branch master updated. 0.9.6-16-g525c996
- Date: Wed, 20 Jan 2016 23:07:35 +0100 (CET)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "nss-pam-ldapd".
The branch, master has been updated
via 525c996c534ee68dc5ff26a11c7863a1e0c27c88 (commit)
from 31cd2cf4dc588f2a11c8223ef9e1962c849466eb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://arthurdejong.org/git/nss-pam-ldapd/commit/?id=525c996c534ee68dc5ff26a11c7863a1e0c27c88
commit 525c996c534ee68dc5ff26a11c7863a1e0c27c88
Author: Arthur de Jong <arthur@arthurdejong.org>
Date: Mon Jan 18 22:13:12 2016 +0100
Add a few IPv6 tests
This adds a few test hosts that have IPv6 addresses. This ensures that
we have an IPv6-only host and hosts which have address values in
different order in the ipHostNumber attribute (although attribute order
is probably not guaranteed).
diff --git a/tests/test.ldif b/tests/test.ldif
index d032b22..08985a2 100644
--- a/tests/test.ldif
+++ b/tests/test.ldif
@@ -40181,8 +40181,26 @@ dn: cn=testhost2,ou=hosts,dc=test,dc=tld
objectClass: top
objectClass: ieee802Device
objectClass: device
+objectClass: ipHost
cn: testhost2
macAddress: 0:18:8a:54:1a:8b
+ipHostNumber: 192.0.2.124
+ipHostNumber: 2001:db8::dead:beef
+
+dn: cn=testhost3,ou=hosts,dc=test,dc=tld
+objectClass: top
+objectClass: device
+objectClass: ipHost
+cn: testhost3
+ipHostNumber: 2001:db8::feed:c0de
+
+dn: cn=testhost4,ou=hosts,dc=test,dc=tld
+objectClass: top
+objectClass: device
+objectClass: ipHost
+cn: testhost4
+ipHostNumber: 2001:db8::7e27:ac1d
+ipHostNumber: 192.0.2.126
dn: ou=networks,dc=test,dc=tld
objectClass: top
diff --git a/tests/test_nsscmds.sh b/tests/test_nsscmds.sh
index 5cd54c3..7c8056a 100755
--- a/tests/test_nsscmds.sh
+++ b/tests/test_nsscmds.sh
@@ -245,11 +245,43 @@ check "getent hosts 192.0.2.123" << EOM
192.0.2.123 testhost testhostalias
EOM
-check "getent hosts | grep testhost" << EOM
+check "getent hosts | grep testhost | sort" << EOM
192.0.2.123 testhost testhostalias
+192.0.2.124 testhost2
+192.0.2.126 testhost4
EOM
-# TODO: add more tests for IPv6 support
+check "getent hosts 2001:db8::dead:beef" << EOM
+2001:db8::dead:beef testhost2
+EOM
+
+check "getent ahosts testhost2" << EOM
+2001:db8::dead:beef STREAM testhost2
+2001:db8::dead:beef DGRAM
+2001:db8::dead:beef RAW
+192.0.2.124 STREAM
+192.0.2.124 DGRAM
+192.0.2.124 RAW
+EOM
+
+check "getent hosts testhost3" << EOM
+2001:db8::feed:c0de testhost3
+EOM
+
+check "getent ahosts testhost3" << EOM
+2001:db8::feed:c0de STREAM testhost3
+2001:db8::feed:c0de DGRAM
+2001:db8::feed:c0de RAW
+EOM
+
+check "getent ahosts testhost4" << EOM
+2001:db8::7e27:ac1d STREAM testhost4
+2001:db8::7e27:ac1d DGRAM
+2001:db8::7e27:ac1d RAW
+192.0.2.126 STREAM
+192.0.2.126 DGRAM
+192.0.2.126 RAW
+EOM
fi # end of hosts tests
-----------------------------------------------------------------------
Summary of changes:
tests/test.ldif | 18 ++++++++++++++++++
tests/test_nsscmds.sh | 36 ++++++++++++++++++++++++++++++++++--
2 files changed, 52 insertions(+), 2 deletions(-)
hooks/post-receive
--
nss-pam-ldapd
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/
- nss-pam-ldapd branch master updated. 0.9.6-16-g525c996,
Commits of the nss-pam-ldapd project