Merge ~ahasenack/ubuntu/+source/bind9:mantic-dyndb-dep8-fixes into ubuntu/+source/bind9:ubuntu/devel

Proposed by Andreas Hasenack
Status: Superseded
Proposed branch: ~ahasenack/ubuntu/+source/bind9:mantic-dyndb-dep8-fixes
Merge into: ubuntu/+source/bind9:ubuntu/devel
Diff against target: 49 lines (+11/-1)
3 files modified
debian/changelog (+8/-0)
debian/tests/control (+1/-0)
debian/tests/dyndb-ldap (+2/-1)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Bryce Harrington (community) Approve
Canonical Server Reporter Pending
Review via email: mp+450171@code.launchpad.net

This proposal has been superseded by a proposal from 2023-08-30.

Description of the change

Skip the dyndb-test on i386, because bind-dyndb-ldap is not built on i386.

I opted to add the skipping logic to the test itself, instead of "Architecture:"[1] in d/control, because I can then also check for "Ubuntu", and this makes the test more suitable for sending to debian.

PPA: https://launchpad.net/~ahasenack/+archive/ubuntu/bind9-dyndb-ldap/+packages

I'll trigger the test after the build is finished.

1. https://salsa.debian.org/ci-team/autopkgtest/-/blob/master/doc/README.package-tests.rst

To post a comment you must log in.
Revision history for this message
Bryce Harrington (bryce) wrote :

LGTM, +1

Does error code 77 have a special significance in autopkgtest? I've not run into that before.

review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

> LGTM, +1
>
> Does error code 77 have a special significance in autopkgtest? I've not run
> into that before.

Yes, 77 means the test was skipped, but you also need to add the "skippable" restriction to d/t/control.

Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: ahasenack, bryce
Uploaders: ahasenack, bryce
MP auto-approved

review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Ahh, I'm afraid this won't work. bind-dyndb-ldap is being pulled in via d/t/control, and that's before the test script runs, obviously:

734s builddeps:/tmp/autopkgtest.4KbRaN/7-autopkgtest-satdep.dsc:i386 : Depends: bind9-dyndb-ldap:i386 but it is not installable

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I now pushed a different set of changes, please take another look.

These fix the i386 problem, and I also included a small fix that was not affecting the test, but is addressing something I had wrong in the ldap_bind9_dn ldap entry.

The tests finished, and here is the summary:

a) non-i386:

594s autopkgtest [16:51:38]: @@@@@@@@@@@@@@@@@@@@ summary
594s simpletest PASS
594s validation FLAKY non-zero exit status 1
594s zonetest PASS
594s dyndb-ldap PASS

b) i386:

260s autopkgtest [16:46:05]: @@@@@@@@@@@@@@@@@@@@ summary
260s dyndb-ldap SKIP Test declares architecture as not supported: i386
260s simpletest PASS
260s validation FLAKY non-zero exit status 1
260s zonetest PASS

The i386 exclusion will have to be part of our delta I'm afraid :/

Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: ahasenack, bryce
Uploaders: ahasenack, bryce
MP auto-approved

review: Approve
Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: ahasenack, bryce
Uploaders: ahasenack, bryce
MP auto-approved

review: Approve

Unmerged commits

25ced90... by Andreas Hasenack

changelog

a362cc3... by Andreas Hasenack

  * d/t/dyndb-ldap: fix for the ldap bind9 dn entry

e9d4140... by Andreas Hasenack

  * d/t/control: exclude the i386 architecture for the dyndb-ldap test,
    since bind9-dyndb-ldap is not available there on Ubuntu

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index bdf90e2..3952a8a 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+bind9 (1:9.18.16-1ubuntu3) mantic; urgency=medium
7+
8+ * d/t/control: exclude the i386 architecture for the dyndb-ldap test,
9+ since bind9-dyndb-ldap is not available there on Ubuntu
10+ * d/t/dyndb-ldap: fix for the ldap bind9 dn entry
11+
12+ -- Andreas Hasenack <andreas@canonical.com> Wed, 30 Aug 2023 10:14:04 -0300
13+
14 bind9 (1:9.18.16-1ubuntu2) mantic; urgency=medium
15
16 * d/t/control, d/t/dyndb-ldap: add DEP8 test (LP: #2032650)
17diff --git a/debian/tests/control b/debian/tests/control
18index 09a620e..deea1ac 100644
19--- a/debian/tests/control
20+++ b/debian/tests/control
21@@ -16,6 +16,7 @@ Depends: bind9,
22
23 Tests: dyndb-ldap
24 Restrictions: isolation-container, needs-root
25+Architecture: !i386
26 Depends: bind9,
27 bind9-dyndb-ldap,
28 slapd,
29diff --git a/debian/tests/dyndb-ldap b/debian/tests/dyndb-ldap
30index 5482bc0..019bf24 100644
31--- a/debian/tests/dyndb-ldap
32+++ b/debian/tests/dyndb-ldap
33@@ -8,6 +8,7 @@ myhostname="dep8"
34 ldap_admin_dn="cn=admin,${ldap_suffix}"
35 ldap_admin_pw="secret"
36 ldap_bind9_dn="uid=bind9,${ldap_suffix}"
37+ldap_bind9_rdn="uid: bind9" # match ldap_bind9_dn
38 ldap_bind9_pw="secretagain"
39
40 cleanup() {
41@@ -122,7 +123,7 @@ EOF
42 create_bind9_uid() {
43 ldapadd -x -D "${ldap_admin_dn}" -w "${ldap_admin_pw}" <<EOF
44 dn: ${ldap_bind9_dn}
45-uid: replicator
46+${ldap_bind9_rdn}
47 objectClass: simpleSecurityObject
48 objectClass: account
49 userPassword: {CRYPT}x

Subscribers

People subscribed via source and target branches