https://launchpad.net/ubuntu/+source/adsys/0.6/+build/21711207 RUN: /usr/share/launchpad-buildd/bin/builder-prep Kernel version: Linux bos02-s390x-013 4.15.0-144-generic #148-Ubuntu SMP Sat May 8 02:31:39 UTC 2021 s390x Buildd toolchain package versions: launchpad-buildd_196~482~ubuntu18.04.1 python3-lpbuildd_196~482~ubuntu18.04.1 sbuild_0.75.0-1ubuntu1 bzr-builder_0.7.3+bzr174~ppa13~ubuntu16.04.1 bzr_2.7.0+bzr6622-10 git-build-recipe_0.3.6~git201906051340.ff11471~ubuntu18.04.1 git_1:2.17.1-1ubuntu0.8 dpkg-dev_1.19.0.5ubuntu2.3 python-debian_0.1.32 python3-debian_0.1.32. Syncing the system clock with the buildd NTP service... 21 Jun 12:45:33 ntpdate[1863]: adjust time server 10.211.37.1 offset -0.004140 sec RUN: /usr/share/launchpad-buildd/bin/in-target unpack-chroot --backend=chroot --series=impish --arch=s390x PACKAGEBUILD-21711207 --image-type chroot /home/buildd/filecache-default/b6a0d461e155d890cb32ede1aba203da854405ed Creating target for build PACKAGEBUILD-21711207 RUN: /usr/share/launchpad-buildd/bin/in-target mount-chroot --backend=chroot --series=impish --arch=s390x PACKAGEBUILD-21711207 Starting target for build PACKAGEBUILD-21711207 RUN: /usr/share/launchpad-buildd/bin/in-target override-sources-list --backend=chroot --series=impish --arch=s390x PACKAGEBUILD-21711207 'deb http://ftpmaster.internal/ubuntu impish main universe' 'deb http://ftpmaster.internal/ubuntu impish-security main universe' 'deb http://ftpmaster.internal/ubuntu impish-updates main universe' 'deb http://ftpmaster.internal/ubuntu impish-proposed main universe' Overriding sources.list in build-PACKAGEBUILD-21711207 RUN: /usr/share/launchpad-buildd/bin/in-target update-debian-chroot --backend=chroot --series=impish --arch=s390x PACKAGEBUILD-21711207 Updating target for build PACKAGEBUILD-21711207 Get:1 http://ftpmaster.internal/ubuntu impish InRelease [269 kB] Get:2 http://ftpmaster.internal/ubuntu impish-security InRelease [90.7 kB] Get:3 http://ftpmaster.internal/ubuntu impish-updates InRelease [90.7 kB] Get:4 http://ftpmaster.internal/ubuntu impish-proposed InRelease [121 kB] Get:5 http://ftpmaster.internal/ubuntu impish/main s390x Packages [1346 kB] Get:6 http://ftpmaster.internal/ubuntu impish/main Translation-en [512 kB] Get:7 http://ftpmaster.internal/ubuntu impish/universe s390x Packages [12.5 MB] Get:8 http://ftpmaster.internal/ubuntu impish/universe Translation-en [5466 kB] Get:9 http://ftpmaster.internal/ubuntu impish-proposed/main s390x Packages [50.8 kB] Get:10 http://ftpmaster.internal/ubuntu impish-proposed/main Translation-en [22.2 kB] Get:11 http://ftpmaster.internal/ubuntu impish-proposed/universe s390x Packages [105 kB] Get:12 http://ftpmaster.internal/ubuntu impish-proposed/universe Translation-en [57.8 kB] Fetched 20.6 MB in 4s (5588 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... Calculating upgrade... The following packages will be upgraded: apt base-files base-passwd bash binutils binutils-common binutils-s390x-linux-gnu build-essential cpp cpp-10 dash debconf diffutils dpkg dpkg-dev e2fsprogs g++ g++-10 gcc gcc-10 gcc-10-base gcc-11-base gzip libapparmor1 libapt-pkg6.0 libasan6 libatomic1 libbinutils libc-bin libc-dev-bin libc6 libc6-dev libcc1-0 libcom-err2 libcrypt-dev libcrypt1 libctf-nobfd0 libctf0 libdb5.3 libdevmapper1.02.1 libdpkg-perl libext2fs2 libgcc-10-dev libgcc-s1 libgcrypt20 libgnutls30 libgomp1 libgssapi-krb5-2 libhogweed6 libidn2-0 libisl23 libitm1 libk5crypto3 libkrb5-3 libkrb5support0 liblz4-1 liblzma5 libnettle8 libnsl-dev libnsl2 libpam-modules libpam-modules-bin libpam-runtime libpam0g libprocps8 libreadline8 libsqlite3-0 libss2 libssl1.1 libstdc++-10-dev libstdc++6 libsystemd0 libubsan1 libudev1 libzstd1 linux-libc-dev logsave lto-disabled-list openssl pinentry-curses procps readline-common systemd systemd-sysv systemd-timesyncd sysvinit-utils usrmerge xz-utils 88 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 65.4 MB of archives. After this operation, 3413 kB disk space will be freed. Get:1 http://ftpmaster.internal/ubuntu impish/main s390x libnsl-dev s390x 1.3.0-2 [67.5 kB] Get:2 http://ftpmaster.internal/ubuntu impish/main s390x libcrypt-dev s390x 1:4.4.18-4ubuntu1 [111 kB] Get:3 http://ftpmaster.internal/ubuntu impish-proposed/main s390x libc6-dev s390x 2.33-0ubuntu8 [1737 kB] Get:4 http://ftpmaster.internal/ubuntu impish-proposed/main s390x libc-dev-bin s390x 2.33-0ubuntu8 [18.7 kB] Get:5 http://ftpmaster.internal/ubuntu impish/main s390x libnsl2 s390x 1.3.0-2 [40.4 kB] Get:6 http://ftpmaster.internal/ubuntu impish/main s390x libcrypt1 s390x 1:4.4.18-4ubuntu1 [84.8 kB] Get:7 http://ftpmaster.internal/ubuntu impish-proposed/main s390x linux-libc-dev s390x 5.11.0-20.21+21.10.1 [1233 kB] Get:8 http://ftpmaster.internal/ubuntu impish/main s390x libasan6 s390x 11.1.0-3ubuntu1 [1934 kB] Get:9 http://ftpmaster.internal/ubuntu impish/main s390x libubsan1 s390x 11.1.0-3ubuntu1 [811 kB] Get:10 http://ftpmaster.internal/ubuntu impish/main s390x libitm1 s390x 11.1.0-3ubuntu1 [25.6 kB] Get:11 http://ftpmaster.internal/ubuntu impish/main s390x libgomp1 s390x 11.1.0-3ubuntu1 [99.4 kB] Get:12 http://ftpmaster.internal/ubuntu impish/main s390x gcc-11-base s390x 11.1.0-3ubuntu1 [20.3 kB] Get:13 http://ftpmaster.internal/ubuntu impish/main s390x libgcc-s1 s390x 11.1.0-3ubuntu1 [25.4 kB] Get:14 http://ftpmaster.internal/ubuntu impish/main s390x libcc1-0 s390x 11.1.0-3ubuntu1 [46.2 kB] Get:15 http://ftpmaster.internal/ubuntu impish/main s390x libatomic1 s390x 11.1.0-3ubuntu1 [8396 B] Get:16 http://ftpmaster.internal/ubuntu impish/main s390x libstdc++6 s390x 11.1.0-3ubuntu1 [586 kB] Get:17 http://ftpmaster.internal/ubuntu impish-proposed/main s390x libc6 s390x 2.33-0ubuntu8 [2344 kB] Get:18 http://ftpmaster.internal/ubuntu impish/main s390x base-files s390x 11.1ubuntu3 [60.8 kB] Get:19 http://ftpmaster.internal/ubuntu impish/main s390x bash s390x 5.1-3ubuntu1 [746 kB] Get:20 http://ftpmaster.internal/ubuntu impish/main s390x dpkg s390x 1.20.9ubuntu1 [1293 kB] Get:21 http://ftpmaster.internal/ubuntu impish/main s390x debconf all 1.5.77 [121 kB] Get:22 http://ftpmaster.internal/ubuntu impish/main s390x dash s390x 0.5.11+git20210120+802ebd4-1 [94.5 kB] Get:23 http://ftpmaster.internal/ubuntu impish/main s390x diffutils s390x 1:3.7-5ubuntu1 [206 kB] Get:24 http://ftpmaster.internal/ubuntu impish/main s390x gzip s390x 1.10-4ubuntu1 [102 kB] Get:25 http://ftpmaster.internal/ubuntu impish/main s390x base-passwd s390x 3.5.50 [46.9 kB] Get:26 http://ftpmaster.internal/ubuntu impish-proposed/main s390x libc-bin s390x 2.33-0ubuntu8 [595 kB] Get:27 http://ftpmaster.internal/ubuntu impish/main s390x sysvinit-utils s390x 2.96-7ubuntu1 [20.1 kB] Get:28 http://ftpmaster.internal/ubuntu impish/main s390x libgcrypt20 s390x 1.8.7-5ubuntu1 [401 kB] Get:29 http://ftpmaster.internal/ubuntu impish/main s390x liblz4-1 s390x 1.9.3-2 [55.8 kB] Get:30 http://ftpmaster.internal/ubuntu impish/main s390x liblzma5 s390x 5.2.5-2 [102 kB] Get:31 http://ftpmaster.internal/ubuntu impish/main s390x systemd-sysv s390x 248.3-1ubuntu1 [10.3 kB] Get:32 http://ftpmaster.internal/ubuntu impish/main s390x systemd-timesyncd s390x 248.3-1ubuntu1 [27.8 kB] Get:33 http://ftpmaster.internal/ubuntu impish/main s390x libapparmor1 s390x 3.0.0-0ubuntu8 [34.8 kB] Get:34 http://ftpmaster.internal/ubuntu impish/main s390x libnettle8 s390x 3.7.3-1 [157 kB] Get:35 http://ftpmaster.internal/ubuntu impish/main s390x libhogweed6 s390x 3.7.3-1 [194 kB] Get:36 http://ftpmaster.internal/ubuntu impish/main s390x libidn2-0 s390x 2.3.1-1 [49.5 kB] Get:37 http://ftpmaster.internal/ubuntu impish/main s390x libgnutls30 s390x 3.7.1-4ubuntu1 [903 kB] Get:38 http://ftpmaster.internal/ubuntu impish/main s390x libpam0g s390x 1.3.1-5ubuntu7 [55.7 kB] Get:39 http://ftpmaster.internal/ubuntu impish/main s390x systemd s390x 248.3-1ubuntu1 [4133 kB] Get:40 http://ftpmaster.internal/ubuntu impish/main s390x libsystemd0 s390x 248.3-1ubuntu1 [301 kB] Get:41 http://ftpmaster.internal/ubuntu impish/main s390x libudev1 s390x 248.3-1ubuntu1 [74.6 kB] Get:42 http://ftpmaster.internal/ubuntu impish/main s390x libzstd1 s390x 1.4.8+dfsg-2.1 [287 kB] Get:43 http://ftpmaster.internal/ubuntu impish/main s390x libapt-pkg6.0 s390x 2.3.6 [767 kB] Get:44 http://ftpmaster.internal/ubuntu impish/main s390x apt s390x 2.3.6 [1281 kB] Get:45 http://ftpmaster.internal/ubuntu impish/main s390x libpam-modules-bin s390x 1.3.1-5ubuntu7 [47.4 kB] Get:46 http://ftpmaster.internal/ubuntu impish/main s390x libpam-modules s390x 1.3.1-5ubuntu7 [270 kB] Get:47 http://ftpmaster.internal/ubuntu impish/main s390x logsave s390x 1.46.2-1ubuntu2 [11.6 kB] Get:48 http://ftpmaster.internal/ubuntu impish/main s390x libext2fs2 s390x 1.46.2-1ubuntu2 [203 kB] Get:49 http://ftpmaster.internal/ubuntu impish/main s390x e2fsprogs s390x 1.46.2-1ubuntu2 [565 kB] Get:50 http://ftpmaster.internal/ubuntu impish/main s390x libcom-err2 s390x 1.46.2-1ubuntu2 [10.7 kB] Get:51 http://ftpmaster.internal/ubuntu impish/main s390x libdb5.3 s390x 5.3.28+dfsg1-0.8ubuntu1 [638 kB] Get:52 http://ftpmaster.internal/ubuntu impish/main s390x libpam-runtime all 1.3.1-5ubuntu7 [37.3 kB] Get:53 http://ftpmaster.internal/ubuntu impish/main s390x libk5crypto3 s390x 1.18.3-5 [80.5 kB] Get:54 http://ftpmaster.internal/ubuntu impish/main s390x libkrb5support0 s390x 1.18.3-5 [30.3 kB] Get:55 http://ftpmaster.internal/ubuntu impish/main s390x libkrb5-3 s390x 1.18.3-5 [354 kB] Get:56 http://ftpmaster.internal/ubuntu impish/main s390x libgssapi-krb5-2 s390x 1.18.3-5 [141 kB] Get:57 http://ftpmaster.internal/ubuntu impish/main s390x libssl1.1 s390x 1.1.1j-1ubuntu4 [1081 kB] Get:58 http://ftpmaster.internal/ubuntu impish/main s390x libprocps8 s390x 2:3.3.17-5ubuntu2 [33.1 kB] Get:59 http://ftpmaster.internal/ubuntu impish/main s390x libss2 s390x 1.46.2-1ubuntu2 [11.2 kB] Get:60 http://ftpmaster.internal/ubuntu impish/main s390x procps s390x 2:3.3.17-5ubuntu2 [368 kB] Get:61 http://ftpmaster.internal/ubuntu impish/main s390x usrmerge all 25ubuntu1 [53.5 kB] Get:62 http://ftpmaster.internal/ubuntu impish/main s390x libdevmapper1.02.1 s390x 2:1.02.175-2.1ubuntu1 [122 kB] Get:63 http://ftpmaster.internal/ubuntu impish/main s390x readline-common all 8.1-2 [54.1 kB] Get:64 http://ftpmaster.internal/ubuntu impish/main s390x libreadline8 s390x 8.1-2 [142 kB] Get:65 http://ftpmaster.internal/ubuntu impish/main s390x libsqlite3-0 s390x 3.35.5-1 [659 kB] Get:66 http://ftpmaster.internal/ubuntu impish/main s390x openssl s390x 1.1.1j-1ubuntu4 [643 kB] Get:67 http://ftpmaster.internal/ubuntu impish/main s390x xz-utils s390x 5.2.5-2 [91.0 kB] Get:68 http://ftpmaster.internal/ubuntu impish-proposed/main s390x libctf0 s390x 2.36.50.20210618-1ubuntu1 [107 kB] Get:69 http://ftpmaster.internal/ubuntu impish-proposed/main s390x libctf-nobfd0 s390x 2.36.50.20210618-1ubuntu1 [109 kB] Get:70 http://ftpmaster.internal/ubuntu impish-proposed/main s390x binutils-s390x-linux-gnu s390x 2.36.50.20210618-1ubuntu1 [1802 kB] Get:71 http://ftpmaster.internal/ubuntu impish-proposed/main s390x libbinutils s390x 2.36.50.20210618-1ubuntu1 [441 kB] Get:72 http://ftpmaster.internal/ubuntu impish-proposed/main s390x binutils s390x 2.36.50.20210618-1ubuntu1 [3348 B] Get:73 http://ftpmaster.internal/ubuntu impish-proposed/main s390x binutils-common s390x 2.36.50.20210618-1ubuntu1 [53.3 kB] Get:74 http://ftpmaster.internal/ubuntu impish/main s390x g++-10 s390x 10.3.0-4ubuntu1 [8829 kB] Get:75 http://ftpmaster.internal/ubuntu impish/main s390x gcc-10 s390x 10.3.0-4ubuntu1 [15.1 MB] Get:76 http://ftpmaster.internal/ubuntu impish/main s390x libstdc++-10-dev s390x 10.3.0-4ubuntu1 [1758 kB] Get:77 http://ftpmaster.internal/ubuntu impish/main s390x libgcc-10-dev s390x 10.3.0-4ubuntu1 [774 kB] Get:78 http://ftpmaster.internal/ubuntu impish/main s390x cpp-10 s390x 10.3.0-4ubuntu1 [7442 kB] Get:79 http://ftpmaster.internal/ubuntu impish/main s390x gcc-10-base s390x 10.3.0-4ubuntu1 [20.5 kB] Get:80 http://ftpmaster.internal/ubuntu impish/main s390x libisl23 s390x 0.24-1 [693 kB] Get:81 http://ftpmaster.internal/ubuntu impish/main s390x g++ s390x 4:10.3.0-1ubuntu3 [1608 B] Get:82 http://ftpmaster.internal/ubuntu impish/main s390x gcc s390x 4:10.3.0-1ubuntu3 [5212 B] Get:83 http://ftpmaster.internal/ubuntu impish/main s390x cpp s390x 4:10.3.0-1ubuntu3 [27.7 kB] Get:84 http://ftpmaster.internal/ubuntu impish/main s390x dpkg-dev all 1.20.9ubuntu1 [937 kB] Get:85 http://ftpmaster.internal/ubuntu impish/main s390x libdpkg-perl all 1.20.9ubuntu1 [232 kB] Get:86 http://ftpmaster.internal/ubuntu impish/main s390x lto-disabled-list all 11 [12.2 kB] Get:87 http://ftpmaster.internal/ubuntu impish/main s390x build-essential s390x 12.9ubuntu1 [4740 B] Get:88 http://ftpmaster.internal/ubuntu impish/main s390x pinentry-curses s390x 1.1.1-1 [34.8 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 65.4 MB in 1s (57.7 MB/s) (Reading database ... 12912 files and directories currently installed.) Preparing to unpack .../libnsl-dev_1.3.0-2_s390x.deb ... Unpacking libnsl-dev:s390x (1.3.0-2) over (1.3.0-0ubuntu3) ... Preparing to unpack .../libcrypt-dev_1%3a4.4.18-4ubuntu1_s390x.deb ... Unpacking libcrypt-dev:s390x (1:4.4.18-4ubuntu1) over (1:4.4.17-1ubuntu3) ... Preparing to unpack .../libc6-dev_2.33-0ubuntu8_s390x.deb ... Unpacking libc6-dev:s390x (2.33-0ubuntu8) over (2.33-0ubuntu5) ... Preparing to unpack .../libc-dev-bin_2.33-0ubuntu8_s390x.deb ... Unpacking libc-dev-bin (2.33-0ubuntu8) over (2.33-0ubuntu5) ... Preparing to unpack .../libnsl2_1.3.0-2_s390x.deb ... Unpacking libnsl2:s390x (1.3.0-2) over (1.3.0-0ubuntu3) ... Setting up libnsl2:s390x (1.3.0-2) ... (Reading database ... 12912 files and directories currently installed.) Preparing to unpack .../libcrypt1_1%3a4.4.18-4ubuntu1_s390x.deb ... Unpacking libcrypt1:s390x (1:4.4.18-4ubuntu1) over (1:4.4.17-1ubuntu3) ... Setting up libcrypt1:s390x (1:4.4.18-4ubuntu1) ... (Reading database ... 12912 files and directories currently installed.) Preparing to unpack .../0-linux-libc-dev_5.11.0-20.21+21.10.1_s390x.deb ... Unpacking linux-libc-dev:s390x (5.11.0-20.21+21.10.1) over (5.11.0-14.15) ... Preparing to unpack .../1-libasan6_11.1.0-3ubuntu1_s390x.deb ... Unpacking libasan6:s390x (11.1.0-3ubuntu1) over (11-20210417-1ubuntu1) ... Preparing to unpack .../2-libubsan1_11.1.0-3ubuntu1_s390x.deb ... Unpacking libubsan1:s390x (11.1.0-3ubuntu1) over (11-20210417-1ubuntu1) ... Preparing to unpack .../3-libitm1_11.1.0-3ubuntu1_s390x.deb ... Unpacking libitm1:s390x (11.1.0-3ubuntu1) over (11-20210417-1ubuntu1) ... Preparing to unpack .../4-libgomp1_11.1.0-3ubuntu1_s390x.deb ... Unpacking libgomp1:s390x (11.1.0-3ubuntu1) over (11-20210417-1ubuntu1) ... Preparing to unpack .../5-gcc-11-base_11.1.0-3ubuntu1_s390x.deb ... Unpacking gcc-11-base:s390x (11.1.0-3ubuntu1) over (11-20210417-1ubuntu1) ... Setting up gcc-11-base:s390x (11.1.0-3ubuntu1) ... (Reading database ... 12912 files and directories currently installed.) Preparing to unpack .../libgcc-s1_11.1.0-3ubuntu1_s390x.deb ... Unpacking libgcc-s1:s390x (11.1.0-3ubuntu1) over (11-20210417-1ubuntu1) ... Setting up libgcc-s1:s390x (11.1.0-3ubuntu1) ... (Reading database ... 12912 files and directories currently installed.) Preparing to unpack .../libcc1-0_11.1.0-3ubuntu1_s390x.deb ... Unpacking libcc1-0:s390x (11.1.0-3ubuntu1) over (11-20210417-1ubuntu1) ... Preparing to unpack .../libatomic1_11.1.0-3ubuntu1_s390x.deb ... Unpacking libatomic1:s390x (11.1.0-3ubuntu1) over (11-20210417-1ubuntu1) ... Preparing to unpack .../libstdc++6_11.1.0-3ubuntu1_s390x.deb ... Unpacking libstdc++6:s390x (11.1.0-3ubuntu1) over (11-20210417-1ubuntu1) ... Setting up libstdc++6:s390x (11.1.0-3ubuntu1) ... (Reading database ... 12912 files and directories currently installed.) Preparing to unpack .../libc6_2.33-0ubuntu8_s390x.deb ... Unpacking libc6:s390x (2.33-0ubuntu8) over (2.33-0ubuntu5) ... Setting up libc6:s390x (2.33-0ubuntu8) ... (Reading database ... 12912 files and directories currently installed.) Preparing to unpack .../base-files_11.1ubuntu3_s390x.deb ... Unpacking base-files (11.1ubuntu3) over (11ubuntu18) ... Setting up base-files (11.1ubuntu3) ... Installing new version of config file /etc/debian_version ... Installing new version of config file /etc/dpkg/origins/debian ... Installing new version of config file /etc/issue ... Installing new version of config file /etc/issue.net ... Installing new version of config file /etc/lsb-release ... Updating /etc/profile to current default. (Reading database ... 12912 files and directories currently installed.) Preparing to unpack .../bash_5.1-3ubuntu1_s390x.deb ... Unpacking bash (5.1-3ubuntu1) over (5.1-2ubuntu1) ... Setting up bash (5.1-3ubuntu1) ... update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode (Reading database ... 12912 files and directories currently installed.) Preparing to unpack .../dpkg_1.20.9ubuntu1_s390x.deb ... Unpacking dpkg (1.20.9ubuntu1) over (1.20.7.1ubuntu4) ... Setting up dpkg (1.20.9ubuntu1) ... (Reading database ... 12917 files and directories currently installed.) Preparing to unpack .../debconf_1.5.77_all.deb ... Unpacking debconf (1.5.77) over (1.5.74) ... Setting up debconf (1.5.77) ... (Reading database ... 12917 files and directories currently installed.) Preparing to unpack .../dash_0.5.11+git20210120+802ebd4-1_s390x.deb ... Unpacking dash (0.5.11+git20210120+802ebd4-1) over (0.5.11+git20200708+dd9ef66+really0.5.11+git20200708+dd9ef66-5ubuntu1) ... Setting up dash (0.5.11+git20210120+802ebd4-1) ... (Reading database ... 12917 files and directories currently installed.) Preparing to unpack .../diffutils_1%3a3.7-5ubuntu1_s390x.deb ... Unpacking diffutils (1:3.7-5ubuntu1) over (1:3.7-3ubuntu1) ... Setting up diffutils (1:3.7-5ubuntu1) ... (Reading database ... 12917 files and directories currently installed.) Preparing to unpack .../gzip_1.10-4ubuntu1_s390x.deb ... Unpacking gzip (1.10-4ubuntu1) over (1.10-2ubuntu3) ... Setting up gzip (1.10-4ubuntu1) ... (Reading database ... 12917 files and directories currently installed.) Preparing to unpack .../base-passwd_3.5.50_s390x.deb ... Unpacking base-passwd (3.5.50) over (3.5.49) ... Setting up base-passwd (3.5.50) ... (Reading database ... 12917 files and directories currently installed.) Preparing to unpack .../libc-bin_2.33-0ubuntu8_s390x.deb ... Unpacking libc-bin (2.33-0ubuntu8) over (2.33-0ubuntu5) ... Setting up libc-bin (2.33-0ubuntu8) ... (Reading database ... 12917 files and directories currently installed.) Preparing to unpack .../sysvinit-utils_2.96-7ubuntu1_s390x.deb ... Unpacking sysvinit-utils (2.96-7ubuntu1) over (2.96-6ubuntu1) ... Setting up sysvinit-utils (2.96-7ubuntu1) ... (Reading database ... 12917 files and directories currently installed.) Preparing to unpack .../libgcrypt20_1.8.7-5ubuntu1_s390x.deb ... Unpacking libgcrypt20:s390x (1.8.7-5ubuntu1) over (1.8.7-2ubuntu2) ... Setting up libgcrypt20:s390x (1.8.7-5ubuntu1) ... (Reading database ... 12917 files and directories currently installed.) Preparing to unpack .../liblz4-1_1.9.3-2_s390x.deb ... Unpacking liblz4-1:s390x (1.9.3-2) over (1.9.3-1build1) ... Setting up liblz4-1:s390x (1.9.3-2) ... (Reading database ... 12917 files and directories currently installed.) Preparing to unpack .../liblzma5_5.2.5-2_s390x.deb ... Unpacking liblzma5:s390x (5.2.5-2) over (5.2.5-1.0build2) ... Setting up liblzma5:s390x (5.2.5-2) ... (Reading database ... 12917 files and directories currently installed.) Preparing to unpack .../systemd-sysv_248.3-1ubuntu1_s390x.deb ... Unpacking systemd-sysv (248.3-1ubuntu1) over (247.3-3ubuntu3) ... Preparing to unpack .../systemd-timesyncd_248.3-1ubuntu1_s390x.deb ... Unpacking systemd-timesyncd (248.3-1ubuntu1) over (247.3-3ubuntu3) ... Preparing to unpack .../libapparmor1_3.0.0-0ubuntu8_s390x.deb ... Unpacking libapparmor1:s390x (3.0.0-0ubuntu8) over (3.0.0-0ubuntu7) ... Preparing to unpack .../libnettle8_3.7.3-1_s390x.deb ... Unpacking libnettle8:s390x (3.7.3-1) over (3.7-2.1ubuntu1) ... Setting up libnettle8:s390x (3.7.3-1) ... (Reading database ... 12917 files and directories currently installed.) Preparing to unpack .../libhogweed6_3.7.3-1_s390x.deb ... Unpacking libhogweed6:s390x (3.7.3-1) over (3.7-2.1ubuntu1) ... Setting up libhogweed6:s390x (3.7.3-1) ... (Reading database ... 12917 files and directories currently installed.) Preparing to unpack .../libidn2-0_2.3.1-1_s390x.deb ... Unpacking libidn2-0:s390x (2.3.1-1) over (2.3.0-5) ... Setting up libidn2-0:s390x (2.3.1-1) ... (Reading database ... 12917 files and directories currently installed.) Preparing to unpack .../libgnutls30_3.7.1-4ubuntu1_s390x.deb ... Unpacking libgnutls30:s390x (3.7.1-4ubuntu1) over (3.7.1-3ubuntu1) ... Setting up libgnutls30:s390x (3.7.1-4ubuntu1) ... (Reading database ... 12917 files and directories currently installed.) Preparing to unpack .../libpam0g_1.3.1-5ubuntu7_s390x.deb ... Unpacking libpam0g:s390x (1.3.1-5ubuntu7) over (1.3.1-5ubuntu6) ... Setting up libpam0g:s390x (1.3.1-5ubuntu7) ... (Reading database ... 12917 files and directories currently installed.) Preparing to unpack .../systemd_248.3-1ubuntu1_s390x.deb ... Unpacking systemd (248.3-1ubuntu1) over (247.3-3ubuntu3) ... Preparing to unpack .../libsystemd0_248.3-1ubuntu1_s390x.deb ... Unpacking libsystemd0:s390x (248.3-1ubuntu1) over (247.3-3ubuntu3) ... Setting up libsystemd0:s390x (248.3-1ubuntu1) ... (Reading database ... 12931 files and directories currently installed.) Preparing to unpack .../libudev1_248.3-1ubuntu1_s390x.deb ... Unpacking libudev1:s390x (248.3-1ubuntu1) over (247.3-3ubuntu3) ... Setting up libudev1:s390x (248.3-1ubuntu1) ... (Reading database ... 12931 files and directories currently installed.) Preparing to unpack .../libzstd1_1.4.8+dfsg-2.1_s390x.deb ... Unpacking libzstd1:s390x (1.4.8+dfsg-2.1) over (1.4.8+dfsg-2build2) ... Setting up libzstd1:s390x (1.4.8+dfsg-2.1) ... (Reading database ... 12931 files and directories currently installed.) Preparing to unpack .../libapt-pkg6.0_2.3.6_s390x.deb ... Unpacking libapt-pkg6.0:s390x (2.3.6) over (2.2.3) ... Setting up libapt-pkg6.0:s390x (2.3.6) ... (Reading database ... 12931 files and directories currently installed.) Preparing to unpack .../archives/apt_2.3.6_s390x.deb ... Unpacking apt (2.3.6) over (2.2.3) ... Setting up apt (2.3.6) ... (Reading database ... 12931 files and directories currently installed.) Preparing to unpack .../libpam-modules-bin_1.3.1-5ubuntu7_s390x.deb ... Unpacking libpam-modules-bin (1.3.1-5ubuntu7) over (1.3.1-5ubuntu6) ... Setting up libpam-modules-bin (1.3.1-5ubuntu7) ... (Reading database ... 12933 files and directories currently installed.) Preparing to unpack .../libpam-modules_1.3.1-5ubuntu7_s390x.deb ... Unpacking libpam-modules:s390x (1.3.1-5ubuntu7) over (1.3.1-5ubuntu6) ... Setting up libpam-modules:s390x (1.3.1-5ubuntu7) ... (Reading database ... 12937 files and directories currently installed.) Preparing to unpack .../logsave_1.46.2-1ubuntu2_s390x.deb ... Unpacking logsave (1.46.2-1ubuntu2) over (1.45.7-1ubuntu2) ... Preparing to unpack .../libext2fs2_1.46.2-1ubuntu2_s390x.deb ... Unpacking libext2fs2:s390x (1.46.2-1ubuntu2) over (1.45.7-1ubuntu2) ... Setting up libext2fs2:s390x (1.46.2-1ubuntu2) ... (Reading database ... 12937 files and directories currently installed.) Preparing to unpack .../e2fsprogs_1.46.2-1ubuntu2_s390x.deb ... Unpacking e2fsprogs (1.46.2-1ubuntu2) over (1.45.7-1ubuntu2) ... Preparing to unpack .../libcom-err2_1.46.2-1ubuntu2_s390x.deb ... Unpacking libcom-err2:s390x (1.46.2-1ubuntu2) over (1.45.7-1ubuntu2) ... Setting up libcom-err2:s390x (1.46.2-1ubuntu2) ... (Reading database ... 12937 files and directories currently installed.) Preparing to unpack .../libdb5.3_5.3.28+dfsg1-0.8ubuntu1_s390x.deb ... Unpacking libdb5.3:s390x (5.3.28+dfsg1-0.8ubuntu1) over (5.3.28+dfsg1-0.6ubuntu4) ... Setting up libdb5.3:s390x (5.3.28+dfsg1-0.8ubuntu1) ... (Reading database ... 12937 files and directories currently installed.) Preparing to unpack .../libpam-runtime_1.3.1-5ubuntu7_all.deb ... Unpacking libpam-runtime (1.3.1-5ubuntu7) over (1.3.1-5ubuntu6) ... Setting up libpam-runtime (1.3.1-5ubuntu7) ... (Reading database ... 12937 files and directories currently installed.) Preparing to unpack .../libk5crypto3_1.18.3-5_s390x.deb ... Unpacking libk5crypto3:s390x (1.18.3-5) over (1.18.3-4) ... Setting up libk5crypto3:s390x (1.18.3-5) ... (Reading database ... 12937 files and directories currently installed.) Preparing to unpack .../libkrb5support0_1.18.3-5_s390x.deb ... Unpacking libkrb5support0:s390x (1.18.3-5) over (1.18.3-4) ... Setting up libkrb5support0:s390x (1.18.3-5) ... (Reading database ... 12937 files and directories currently installed.) Preparing to unpack .../libkrb5-3_1.18.3-5_s390x.deb ... Unpacking libkrb5-3:s390x (1.18.3-5) over (1.18.3-4) ... Setting up libkrb5-3:s390x (1.18.3-5) ... (Reading database ... 12937 files and directories currently installed.) Preparing to unpack .../libgssapi-krb5-2_1.18.3-5_s390x.deb ... Unpacking libgssapi-krb5-2:s390x (1.18.3-5) over (1.18.3-4) ... Setting up libgssapi-krb5-2:s390x (1.18.3-5) ... (Reading database ... 12937 files and directories currently installed.) Preparing to unpack .../libssl1.1_1.1.1j-1ubuntu4_s390x.deb ... Unpacking libssl1.1:s390x (1.1.1j-1ubuntu4) over (1.1.1j-1ubuntu3) ... Setting up libssl1.1:s390x (1.1.1j-1ubuntu4) ... (Reading database ... 12937 files and directories currently installed.) Preparing to unpack .../00-libprocps8_2%3a3.3.17-5ubuntu2_s390x.deb ... Unpacking libprocps8:s390x (2:3.3.17-5ubuntu2) over (2:3.3.16-5ubuntu3) ... Preparing to unpack .../01-libss2_1.46.2-1ubuntu2_s390x.deb ... Unpacking libss2:s390x (1.46.2-1ubuntu2) over (1.45.7-1ubuntu2) ... Preparing to unpack .../02-procps_2%3a3.3.17-5ubuntu2_s390x.deb ... Unpacking procps (2:3.3.17-5ubuntu2) over (2:3.3.16-5ubuntu3) ... Preparing to unpack .../03-usrmerge_25ubuntu1_all.deb ... Unpacking usrmerge (25ubuntu1) over (24ubuntu3) ... Preparing to unpack .../04-libdevmapper1.02.1_2%3a1.02.175-2.1ubuntu1_s390x.deb ... Unpacking libdevmapper1.02.1:s390x (2:1.02.175-2.1ubuntu1) over (2:1.02.175-2ubuntu4) ... Preparing to unpack .../05-readline-common_8.1-2_all.deb ... Unpacking readline-common (8.1-2) over (8.1-1) ... Preparing to unpack .../06-libreadline8_8.1-2_s390x.deb ... Unpacking libreadline8:s390x (8.1-2) over (8.1-1) ... Preparing to unpack .../07-libsqlite3-0_3.35.5-1_s390x.deb ... Unpacking libsqlite3-0:s390x (3.35.5-1) over (3.34.1-3) ... Preparing to unpack .../08-openssl_1.1.1j-1ubuntu4_s390x.deb ... Unpacking openssl (1.1.1j-1ubuntu4) over (1.1.1j-1ubuntu3) ... Preparing to unpack .../09-xz-utils_5.2.5-2_s390x.deb ... Unpacking xz-utils (5.2.5-2) over (5.2.5-1.0build2) ... Preparing to unpack .../10-libctf0_2.36.50.20210618-1ubuntu1_s390x.deb ... Unpacking libctf0:s390x (2.36.50.20210618-1ubuntu1) over (2.36.1-6ubuntu1) ... Preparing to unpack .../11-libctf-nobfd0_2.36.50.20210618-1ubuntu1_s390x.deb ... Unpacking libctf-nobfd0:s390x (2.36.50.20210618-1ubuntu1) over (2.36.1-6ubuntu1) ... Preparing to unpack .../12-binutils-s390x-linux-gnu_2.36.50.20210618-1ubuntu1_s390x.deb ... Unpacking binutils-s390x-linux-gnu (2.36.50.20210618-1ubuntu1) over (2.36.1-6ubuntu1) ... Preparing to unpack .../13-libbinutils_2.36.50.20210618-1ubuntu1_s390x.deb ... Unpacking libbinutils:s390x (2.36.50.20210618-1ubuntu1) over (2.36.1-6ubuntu1) ... Preparing to unpack .../14-binutils_2.36.50.20210618-1ubuntu1_s390x.deb ... Unpacking binutils (2.36.50.20210618-1ubuntu1) over (2.36.1-6ubuntu1) ... Preparing to unpack .../15-binutils-common_2.36.50.20210618-1ubuntu1_s390x.deb ... Unpacking binutils-common:s390x (2.36.50.20210618-1ubuntu1) over (2.36.1-6ubuntu1) ... Preparing to unpack .../16-g++-10_10.3.0-4ubuntu1_s390x.deb ... Unpacking g++-10 (10.3.0-4ubuntu1) over (10.3.0-1ubuntu1) ... Preparing to unpack .../17-gcc-10_10.3.0-4ubuntu1_s390x.deb ... Unpacking gcc-10 (10.3.0-4ubuntu1) over (10.3.0-1ubuntu1) ... Preparing to unpack .../18-libstdc++-10-dev_10.3.0-4ubuntu1_s390x.deb ... Unpacking libstdc++-10-dev:s390x (10.3.0-4ubuntu1) over (10.3.0-1ubuntu1) ... Preparing to unpack .../19-libgcc-10-dev_10.3.0-4ubuntu1_s390x.deb ... Unpacking libgcc-10-dev:s390x (10.3.0-4ubuntu1) over (10.3.0-1ubuntu1) ... Preparing to unpack .../20-cpp-10_10.3.0-4ubuntu1_s390x.deb ... Unpacking cpp-10 (10.3.0-4ubuntu1) over (10.3.0-1ubuntu1) ... Preparing to unpack .../21-gcc-10-base_10.3.0-4ubuntu1_s390x.deb ... Unpacking gcc-10-base:s390x (10.3.0-4ubuntu1) over (10.3.0-1ubuntu1) ... Preparing to unpack .../22-libisl23_0.24-1_s390x.deb ... Unpacking libisl23:s390x (0.24-1) over (0.23-1build1) ... Preparing to unpack .../23-g++_4%3a10.3.0-1ubuntu3_s390x.deb ... Unpacking g++ (4:10.3.0-1ubuntu3) over (4:10.3.0-1ubuntu1) ... Preparing to unpack .../24-gcc_4%3a10.3.0-1ubuntu3_s390x.deb ... Unpacking gcc (4:10.3.0-1ubuntu3) over (4:10.3.0-1ubuntu1) ... Preparing to unpack .../25-cpp_4%3a10.3.0-1ubuntu3_s390x.deb ... Unpacking cpp (4:10.3.0-1ubuntu3) over (4:10.3.0-1ubuntu1) ... Preparing to unpack .../26-dpkg-dev_1.20.9ubuntu1_all.deb ... Unpacking dpkg-dev (1.20.9ubuntu1) over (1.20.7.1ubuntu4) ... Preparing to unpack .../27-libdpkg-perl_1.20.9ubuntu1_all.deb ... Unpacking libdpkg-perl (1.20.9ubuntu1) over (1.20.7.1ubuntu4) ... Preparing to unpack .../28-lto-disabled-list_11_all.deb ... Unpacking lto-disabled-list (11) over (7) ... Preparing to unpack .../29-build-essential_12.9ubuntu1_s390x.deb ... Unpacking build-essential (12.9ubuntu1) over (12.8ubuntu3) ... Preparing to unpack .../30-pinentry-curses_1.1.1-1_s390x.deb ... Unpacking pinentry-curses (1.1.1-1) over (1.1.0-4build1) ... Setting up pinentry-curses (1.1.1-1) ... Setting up lto-disabled-list (11) ... Setting up libapparmor1:s390x (3.0.0-0ubuntu8) ... Setting up libsqlite3-0:s390x (3.35.5-1) ... Setting up binutils-common:s390x (2.36.50.20210618-1ubuntu1) ... Setting up linux-libc-dev:s390x (5.11.0-20.21+21.10.1) ... Setting up libctf-nobfd0:s390x (2.36.50.20210618-1ubuntu1) ... Setting up libgomp1:s390x (11.1.0-3ubuntu1) ... Setting up libasan6:s390x (11.1.0-3ubuntu1) ... Setting up gcc-10-base:s390x (10.3.0-4ubuntu1) ... Setting up xz-utils (5.2.5-2) ... Setting up libatomic1:s390x (11.1.0-3ubuntu1) ... Setting up usrmerge (25ubuntu1) ... Setting up libss2:s390x (1.46.2-1ubuntu2) ... Setting up libdpkg-perl (1.20.9ubuntu1) ... Setting up logsave (1.46.2-1ubuntu2) ... Setting up libubsan1:s390x (11.1.0-3ubuntu1) ... Setting up libdevmapper1.02.1:s390x (2:1.02.175-2.1ubuntu1) ... Setting up libnsl-dev:s390x (1.3.0-2) ... Setting up libcrypt-dev:s390x (1:4.4.18-4ubuntu1) ... Setting up libbinutils:s390x (2.36.50.20210618-1ubuntu1) ... Setting up libisl23:s390x (0.24-1) ... Setting up libc-dev-bin (2.33-0ubuntu8) ... Setting up openssl (1.1.1j-1ubuntu4) ... Setting up readline-common (8.1-2) ... Setting up libcc1-0:s390x (11.1.0-3ubuntu1) ... Setting up libprocps8:s390x (2:3.3.17-5ubuntu2) ... Setting up cpp-10 (10.3.0-4ubuntu1) ... Setting up libitm1:s390x (11.1.0-3ubuntu1) ... Setting up libctf0:s390x (2.36.50.20210618-1ubuntu1) ... Setting up binutils-s390x-linux-gnu (2.36.50.20210618-1ubuntu1) ... Setting up libgcc-10-dev:s390x (10.3.0-4ubuntu1) ... Setting up libreadline8:s390x (8.1-2) ... Setting up e2fsprogs (1.46.2-1ubuntu2) ... Setting up binutils (2.36.50.20210618-1ubuntu1) ... Setting up dpkg-dev (1.20.9ubuntu1) ... Setting up gcc-10 (10.3.0-4ubuntu1) ... Setting up cpp (4:10.3.0-1ubuntu3) ... Setting up procps (2:3.3.17-5ubuntu2) ... update-alternatives: warning: alternative /usr/bin/w.procps (part of link group w) doesn't exist; removing from list of alternatives update-alternatives: warning: /etc/alternatives/w is dangling; it will be updated with best choice Setting up libc6-dev:s390x (2.33-0ubuntu8) ... Setting up libstdc++-10-dev:s390x (10.3.0-4ubuntu1) ... Setting up g++-10 (10.3.0-4ubuntu1) ... Setting up gcc (4:10.3.0-1ubuntu3) ... Setting up g++ (4:10.3.0-1ubuntu3) ... Setting up build-essential (12.9ubuntu1) ... Setting up systemd-timesyncd (248.3-1ubuntu1) ... Installing new version of config file /etc/systemd/timesyncd.conf ... Setting up systemd (248.3-1ubuntu1) ... Installing new version of config file /etc/systemd/journald.conf ... Installing new version of config file /etc/systemd/logind.conf ... Installing new version of config file /etc/systemd/networkd.conf ... Installing new version of config file /etc/systemd/pstore.conf ... Installing new version of config file /etc/systemd/resolved.conf ... Installing new version of config file /etc/systemd/sleep.conf ... Installing new version of config file /etc/systemd/system.conf ... Installing new version of config file /etc/systemd/user.conf ... Initializing machine ID from random generator. Setting up systemd-sysv (248.3-1ubuntu1) ... Processing triggers for libc-bin (2.33-0ubuntu8) ... RUN: /usr/share/launchpad-buildd/bin/sbuild-package PACKAGEBUILD-21711207 s390x impish-proposed -c chroot:build-PACKAGEBUILD-21711207 --arch=s390x --dist=impish-proposed --nolog adsys_0.6.dsc Initiating build PACKAGEBUILD-21711207 with 4 jobs across 4 processor cores. Kernel reported to sbuild: 4.15.0-144-generic #148-Ubuntu SMP Sat May 8 02:31:39 UTC 2021 s390x sbuild (Debian sbuild) 0.75.0 (21 Mar 2018) on bos02-s390x-013.buildd +==============================================================================+ | adsys 0.6 (s390x) Mon, 21 Jun 2021 12:45:54 +0000 | +==============================================================================+ Package: adsys Version: 0.6 Source Version: 0.6 Distribution: impish-proposed Machine Architecture: s390x Host Architecture: s390x Build Architecture: s390x Build Type: any I: NOTICE: Log filtering will replace 'home/buildd/build-PACKAGEBUILD-21711207/chroot-autobuild' with '<>' +------------------------------------------------------------------------------+ | Fetch source files | +------------------------------------------------------------------------------+ Local sources ------------- adsys_0.6.dsc exists in .; copying to chroot I: NOTICE: Log filtering will replace 'build/adsys-hrzRJV/adsys-0.6' with '<>' I: NOTICE: Log filtering will replace 'build/adsys-hrzRJV' with '<>' +------------------------------------------------------------------------------+ | Install build-essential | +------------------------------------------------------------------------------+ Setup apt archive ----------------- Merged Build-Depends: build-essential, fakeroot Filtered Build-Depends: build-essential, fakeroot dpkg-deb: building package 'sbuild-build-depends-core-dummy' in '/<>/resolver-nx2bav/apt_archive/sbuild-build-depends-core-dummy.deb'. dpkg-scanpackages: warning: Packages in archive but missing from override file: dpkg-scanpackages: warning: sbuild-build-depends-core-dummy dpkg-scanpackages: info: Wrote 1 entries to output Packages file. Ign:1 copy:/<>/resolver-nx2bav/apt_archive ./ InRelease Get:2 copy:/<>/resolver-nx2bav/apt_archive ./ Release [957 B] Ign:3 copy:/<>/resolver-nx2bav/apt_archive ./ Release.gpg Get:4 copy:/<>/resolver-nx2bav/apt_archive ./ Sources [349 B] Get:5 copy:/<>/resolver-nx2bav/apt_archive ./ Packages [433 B] Fetched 1739 B in 0s (0 B/s) Reading package lists... Reading package lists... Install core build dependencies (apt-based resolver) ---------------------------------------------------- Installing build dependencies Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: sbuild-build-depends-core-dummy 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 852 B of archives. After this operation, 0 B of additional disk space will be used. Get:1 copy:/<>/resolver-nx2bav/apt_archive ./ sbuild-build-depends-core-dummy 0.invalid.0 [852 B] debconf: delaying package configuration, since apt-utils is not installed Fetched 852 B in 0s (0 B/s) Selecting previously unselected package sbuild-build-depends-core-dummy. (Reading database ... 13000 files and directories currently installed.) Preparing to unpack .../sbuild-build-depends-core-dummy_0.invalid.0_s390x.deb ... Unpacking sbuild-build-depends-core-dummy (0.invalid.0) ... Setting up sbuild-build-depends-core-dummy (0.invalid.0) ... +------------------------------------------------------------------------------+ | Check architectures | +------------------------------------------------------------------------------+ Arch check ok (s390x included in any) +------------------------------------------------------------------------------+ | Install package build dependencies | +------------------------------------------------------------------------------+ Setup apt archive ----------------- Merged Build-Depends: debhelper-compat (= 13), dh-apport, dh-golang, golang-go (>= 2:1.16~), libsmbclient-dev, libdbus-1-dev, python3, python3-samba, samba-dsdb-modules, libpam0g-dev, samba, dbus Filtered Build-Depends: debhelper-compat (= 13), dh-apport, dh-golang, golang-go (>= 2:1.16~), libsmbclient-dev, libdbus-1-dev, python3, python3-samba, samba-dsdb-modules, libpam0g-dev, samba, dbus dpkg-deb: building package 'sbuild-build-depends-adsys-dummy' in '/<>/resolver-nx2bav/apt_archive/sbuild-build-depends-adsys-dummy.deb'. dpkg-scanpackages: warning: Packages in archive but missing from override file: dpkg-scanpackages: warning: sbuild-build-depends-adsys-dummy sbuild-build-depends-core-dummy dpkg-scanpackages: info: Wrote 2 entries to output Packages file. Ign:1 copy:/<>/resolver-nx2bav/apt_archive ./ InRelease Get:2 copy:/<>/resolver-nx2bav/apt_archive ./ Release [963 B] Ign:3 copy:/<>/resolver-nx2bav/apt_archive ./ Release.gpg Get:4 copy:/<>/resolver-nx2bav/apt_archive ./ Sources [575 B] Get:5 copy:/<>/resolver-nx2bav/apt_archive ./ Packages [655 B] Fetched 2193 B in 0s (210 kB/s) Reading package lists... Reading package lists... Install adsys build dependencies (apt-based resolver) ----------------------------------------------------- Installing build dependencies Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: autoconf automake autopoint autotools-dev bsdextrautils dbus debhelper debugedit dh-apport dh-autoreconf dh-golang dh-strip-nondeterminism dwz file gettext gettext-base golang-1.16-go golang-1.16-src golang-go golang-src groff-base intltool-debian libarchive-zip-perl libasn1-8-heimdal libavahi-client3 libavahi-common-data libavahi-common3 libbsd0 libcups2 libdbus-1-3 libdbus-1-dev libdebhelper-perl libdw1 libelf1 libexpat1 libfile-stripnondeterminism-perl libglib2.0-0 libgpgme11 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libicu67 libjansson4 libkrb5-26-heimdal libldap-2.4-2 libldb2 liblmdb0 libmagic-mgc libmagic1 libmd0 libmpdec3 libpam0g-dev libpipeline1 libpopt0 libpython3-stdlib libpython3.9 libpython3.9-minimal libpython3.9-stdlib libroken18-heimdal libsasl2-2 libsasl2-modules-db libsigsegv2 libsmbclient libsmbclient-dev libsub-override-perl libtalloc2 libtdb1 libtevent0 libtool libuchardet0 libwbclient0 libwind0-heimdal libxml2 m4 man-db media-types netbase pkg-config po-debconf python3 python3-dnspython python3-ldb python3-minimal python3-samba python3-talloc python3-tdb python3.9 python3.9-minimal samba samba-common samba-common-bin samba-dsdb-modules samba-libs tdb-tools ucf Suggested packages: autoconf-archive gnu-standards autoconf-doc default-dbus-session-bus | dbus-session-bus dh-make gettext-doc libasprintf-dev libgettextpo-dev bzr | brz git mercurial subversion groff cups-common libtool-doc gfortran | fortran95-compiler gcj-jdk m4-doc apparmor less www-browser libmail-box-perl python3-doc python3-tk python3-venv python3.9-venv python3.9-doc binfmt-support bind9 bind9utils ctdb ldb-tools ntp | chrony smbldap-tools ufw winbind heimdal-clients python3-markdown Recommended packages: curl | wget | lynx libarchive-cpio-perl libglib2.0-data shared-mime-info xdg-user-dirs dirmngr gpg-wks-client gpgsm libldap-common libsasl2-modules libltdl-dev libmail-sendmail-perl python3-pycryptodome python3-ecdsa python3-idna python3-gpg attr logrotate python3-markdown samba-vfs-modules The following NEW packages will be installed: autoconf automake autopoint autotools-dev bsdextrautils dbus debhelper debugedit dh-apport dh-autoreconf dh-golang dh-strip-nondeterminism dwz file gettext gettext-base golang-1.16-go golang-1.16-src golang-go golang-src groff-base intltool-debian libarchive-zip-perl libasn1-8-heimdal libavahi-client3 libavahi-common-data libavahi-common3 libbsd0 libcups2 libdbus-1-3 libdbus-1-dev libdebhelper-perl libdw1 libelf1 libexpat1 libfile-stripnondeterminism-perl libglib2.0-0 libgpgme11 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libicu67 libjansson4 libkrb5-26-heimdal libldap-2.4-2 libldb2 liblmdb0 libmagic-mgc libmagic1 libmd0 libmpdec3 libpam0g-dev libpipeline1 libpopt0 libpython3-stdlib libpython3.9 libpython3.9-minimal libpython3.9-stdlib libroken18-heimdal libsasl2-2 libsasl2-modules-db libsigsegv2 libsmbclient libsmbclient-dev libsub-override-perl libtalloc2 libtdb1 libtevent0 libtool libuchardet0 libwbclient0 libwind0-heimdal libxml2 m4 man-db media-types netbase pkg-config po-debconf python3 python3-dnspython python3-ldb python3-minimal python3-samba python3-talloc python3-tdb python3.9 python3.9-minimal samba samba-common samba-common-bin samba-dsdb-modules samba-libs sbuild-build-depends-adsys-dummy tdb-tools ucf 0 upgraded, 98 newly installed, 0 to remove and 0 not upgraded. Need to get 99.4 MB of archives. After this operation, 557 MB of additional disk space will be used. Get:1 copy:/<>/resolver-nx2bav/apt_archive ./ sbuild-build-depends-adsys-dummy 0.invalid.0 [940 B] Get:2 http://ftpmaster.internal/ubuntu impish/main s390x libpython3.9-minimal s390x 3.9.5-3 [751 kB] Get:3 http://ftpmaster.internal/ubuntu impish/main s390x libexpat1 s390x 2.3.0-1 [95.5 kB] Get:4 http://ftpmaster.internal/ubuntu impish/main s390x python3.9-minimal s390x 3.9.5-3 [1893 kB] Get:5 http://ftpmaster.internal/ubuntu impish/main s390x python3-minimal s390x 3.9.4-1 [23.8 kB] Get:6 http://ftpmaster.internal/ubuntu impish/main s390x media-types all 4.0.0 [22.2 kB] Get:7 http://ftpmaster.internal/ubuntu impish/main s390x libmpdec3 s390x 2.5.1-2 [84.5 kB] Get:8 http://ftpmaster.internal/ubuntu impish/main s390x libpython3.9-stdlib s390x 3.9.5-3 [1653 kB] Get:9 http://ftpmaster.internal/ubuntu impish/main s390x python3.9 s390x 3.9.5-3 [423 kB] Get:10 http://ftpmaster.internal/ubuntu impish/main s390x libpython3-stdlib s390x 3.9.4-1 [6984 B] Get:11 http://ftpmaster.internal/ubuntu impish/main s390x python3 s390x 3.9.4-1 [22.2 kB] Get:12 http://ftpmaster.internal/ubuntu impish/main s390x bsdextrautils s390x 2.36.1-7ubuntu2 [81.5 kB] Get:13 http://ftpmaster.internal/ubuntu impish/main s390x libuchardet0 s390x 0.0.7-1 [67.5 kB] Get:14 http://ftpmaster.internal/ubuntu impish/main s390x groff-base s390x 1.22.4-6 [912 kB] Get:15 http://ftpmaster.internal/ubuntu impish/main s390x libpipeline1 s390x 1.5.3-1 [28.7 kB] Get:16 http://ftpmaster.internal/ubuntu impish/main s390x man-db s390x 2.9.4-2 [1168 kB] Get:17 http://ftpmaster.internal/ubuntu impish/main s390x libmd0 s390x 1.0.3-3build1 [21.3 kB] Get:18 http://ftpmaster.internal/ubuntu impish/main s390x libbsd0 s390x 0.11.3-1ubuntu2 [43.1 kB] Get:19 http://ftpmaster.internal/ubuntu impish/main s390x libicu67 s390x 67.1-6ubuntu2 [8483 kB] Get:20 http://ftpmaster.internal/ubuntu impish/main s390x libtalloc2 s390x 2.3.1-2ubuntu1 [25.9 kB] Get:21 http://ftpmaster.internal/ubuntu impish/main s390x libtevent0 s390x 0.10.2-1 [33.6 kB] Get:22 http://ftpmaster.internal/ubuntu impish/main s390x libwbclient0 s390x 2:4.13.5+dfsg-2ubuntu1 [178 kB] Get:23 http://ftpmaster.internal/ubuntu impish/main s390x netbase all 6.3 [12.9 kB] Get:24 http://ftpmaster.internal/ubuntu impish/main s390x python3-dnspython all 2.0.0+really1.16.0-2ubuntu2 [96.9 kB] Get:25 http://ftpmaster.internal/ubuntu impish/main s390x libroken18-heimdal s390x 7.7.0+dfsg-2 [40.0 kB] Get:26 http://ftpmaster.internal/ubuntu impish/main s390x libasn1-8-heimdal s390x 7.7.0+dfsg-2 [148 kB] Get:27 http://ftpmaster.internal/ubuntu impish/main s390x libheimbase1-heimdal s390x 7.7.0+dfsg-2 [27.7 kB] Get:28 http://ftpmaster.internal/ubuntu impish/main s390x libhcrypto4-heimdal s390x 7.7.0+dfsg-2 [83.1 kB] Get:29 http://ftpmaster.internal/ubuntu impish/main s390x libwind0-heimdal s390x 7.7.0+dfsg-2 [47.7 kB] Get:30 http://ftpmaster.internal/ubuntu impish/main s390x libhx509-5-heimdal s390x 7.7.0+dfsg-2 [97.9 kB] Get:31 http://ftpmaster.internal/ubuntu impish/main s390x libkrb5-26-heimdal s390x 7.7.0+dfsg-2 [191 kB] Get:32 http://ftpmaster.internal/ubuntu impish/main s390x libheimntlm0-heimdal s390x 7.7.0+dfsg-2 [14.4 kB] Get:33 http://ftpmaster.internal/ubuntu impish/main s390x libgssapi3-heimdal s390x 7.7.0+dfsg-2 [87.2 kB] Get:34 http://ftpmaster.internal/ubuntu impish/main s390x libsasl2-modules-db s390x 2.1.27+dfsg-2.1 [14.3 kB] Get:35 http://ftpmaster.internal/ubuntu impish/main s390x libsasl2-2 s390x 2.1.27+dfsg-2.1 [48.4 kB] Get:36 http://ftpmaster.internal/ubuntu impish/main s390x libldap-2.4-2 s390x 2.4.57+dfsg-2ubuntu1 [157 kB] Get:37 http://ftpmaster.internal/ubuntu impish/main s390x liblmdb0 s390x 0.9.24-1 [44.0 kB] Get:38 http://ftpmaster.internal/ubuntu impish/main s390x libtdb1 s390x 1.4.3-1build1 [50.9 kB] Get:39 http://ftpmaster.internal/ubuntu impish/main s390x libldb2 s390x 2:2.2.0-3ubuntu2 [138 kB] Get:40 http://ftpmaster.internal/ubuntu impish/main s390x libpython3.9 s390x 3.9.5-3 [1735 kB] Get:41 http://ftpmaster.internal/ubuntu impish/main s390x python3-ldb s390x 2:2.2.0-3ubuntu2 [37.9 kB] Get:42 http://ftpmaster.internal/ubuntu impish/main s390x python3-tdb s390x 1.4.3-1build1 [13.5 kB] Get:43 http://ftpmaster.internal/ubuntu impish/main s390x libavahi-common-data s390x 0.8-5ubuntu3 [23.9 kB] Get:44 http://ftpmaster.internal/ubuntu impish/main s390x libavahi-common3 s390x 0.8-5ubuntu3 [20.4 kB] Get:45 http://ftpmaster.internal/ubuntu impish/main s390x libdbus-1-3 s390x 1.12.20-2ubuntu1 [186 kB] Get:46 http://ftpmaster.internal/ubuntu impish/main s390x libavahi-client3 s390x 0.8-5ubuntu3 [23.5 kB] Get:47 http://ftpmaster.internal/ubuntu impish/main s390x libcups2 s390x 2.3.3op2-3ubuntu3 [232 kB] Get:48 http://ftpmaster.internal/ubuntu impish/main s390x libjansson4 s390x 2.13.1-1.1build1 [31.6 kB] Get:49 http://ftpmaster.internal/ubuntu impish/main s390x libpopt0 s390x 1.18-2build2 [30.5 kB] Get:50 http://ftpmaster.internal/ubuntu impish/main s390x python3-talloc s390x 2.3.1-2ubuntu1 [11.8 kB] Get:51 http://ftpmaster.internal/ubuntu impish/main s390x samba-libs s390x 2:4.13.5+dfsg-2ubuntu1 [5272 kB] Get:52 http://ftpmaster.internal/ubuntu impish/main s390x python3-samba s390x 2:4.13.5+dfsg-2ubuntu1 [2538 kB] Get:53 http://ftpmaster.internal/ubuntu impish/main s390x ucf all 3.0043 [56.1 kB] Get:54 http://ftpmaster.internal/ubuntu impish/main s390x samba-common all 2:4.13.5+dfsg-2ubuntu1 [65.2 kB] Get:55 http://ftpmaster.internal/ubuntu impish/main s390x samba-common-bin s390x 2:4.13.5+dfsg-2ubuntu1 [591 kB] Get:56 http://ftpmaster.internal/ubuntu impish/main s390x tdb-tools s390x 1.4.3-1build1 [25.1 kB] Get:57 http://ftpmaster.internal/ubuntu impish/main s390x samba s390x 2:4.13.5+dfsg-2ubuntu1 [1052 kB] Get:58 http://ftpmaster.internal/ubuntu impish/main s390x libsmbclient s390x 2:4.13.5+dfsg-2ubuntu1 [61.6 kB] Get:59 http://ftpmaster.internal/ubuntu impish/main s390x libsmbclient-dev s390x 2:4.13.5+dfsg-2ubuntu1 [40.2 kB] Get:60 http://ftpmaster.internal/ubuntu impish/main s390x dbus s390x 1.12.20-2ubuntu1 [152 kB] Get:61 http://ftpmaster.internal/ubuntu impish/main s390x libelf1 s390x 0.185-1 [54.6 kB] Get:62 http://ftpmaster.internal/ubuntu impish/main s390x libglib2.0-0 s390x 2.68.1-2 [1330 kB] Get:63 http://ftpmaster.internal/ubuntu impish/main s390x libxml2 s390x 2.9.10+dfsg-6.7 [615 kB] Get:64 http://ftpmaster.internal/ubuntu impish/main s390x libmagic-mgc s390x 1:5.39-3 [229 kB] Get:65 http://ftpmaster.internal/ubuntu impish/main s390x libmagic1 s390x 1:5.39-3 [83.6 kB] Get:66 http://ftpmaster.internal/ubuntu impish/main s390x file s390x 1:5.39-3 [24.0 kB] Get:67 http://ftpmaster.internal/ubuntu impish/main s390x gettext-base s390x 0.21-4ubuntu3 [38.4 kB] Get:68 http://ftpmaster.internal/ubuntu impish/main s390x libsigsegv2 s390x 2.13-1ubuntu1 [14.2 kB] Get:69 http://ftpmaster.internal/ubuntu impish/main s390x m4 s390x 1.4.18-5 [209 kB] Get:70 http://ftpmaster.internal/ubuntu impish/main s390x autoconf all 2.69-14 [293 kB] Get:71 http://ftpmaster.internal/ubuntu impish/main s390x autotools-dev all 20180224.1+nmu1 [39.4 kB] Get:72 http://ftpmaster.internal/ubuntu impish/main s390x automake all 1:1.16.3-2ubuntu1 [552 kB] Get:73 http://ftpmaster.internal/ubuntu impish/main s390x autopoint all 0.21-4ubuntu3 [422 kB] Get:74 http://ftpmaster.internal/ubuntu impish/main s390x libdebhelper-perl all 13.3.4ubuntu1 [61.1 kB] Get:75 http://ftpmaster.internal/ubuntu impish/main s390x libtool all 2.4.6-15 [161 kB] Get:76 http://ftpmaster.internal/ubuntu impish/main s390x dh-autoreconf all 20 [16.1 kB] Get:77 http://ftpmaster.internal/ubuntu impish/main s390x libarchive-zip-perl all 1.68-1 [90.2 kB] Get:78 http://ftpmaster.internal/ubuntu impish/main s390x libsub-override-perl all 0.09-2 [9532 B] Get:79 http://ftpmaster.internal/ubuntu impish/main s390x libfile-stripnondeterminism-perl all 1.12.0-1 [17.5 kB] Get:80 http://ftpmaster.internal/ubuntu impish/main s390x dh-strip-nondeterminism all 1.12.0-1 [5228 B] Get:81 http://ftpmaster.internal/ubuntu impish/main s390x libdw1 s390x 0.185-1 [218 kB] Get:82 http://ftpmaster.internal/ubuntu impish/main s390x debugedit s390x 1:0.3-0ubuntu1 [46.4 kB] Get:83 http://ftpmaster.internal/ubuntu impish/main s390x dwz s390x 0.14-1 [110 kB] Get:84 http://ftpmaster.internal/ubuntu impish/main s390x gettext s390x 0.21-4ubuntu3 [848 kB] Get:85 http://ftpmaster.internal/ubuntu impish/main s390x intltool-debian all 0.35.0+20060710.5 [24.9 kB] Get:86 http://ftpmaster.internal/ubuntu impish/main s390x po-debconf all 1.0.21+nmu1 [233 kB] Get:87 http://ftpmaster.internal/ubuntu impish/main s390x debhelper all 13.3.4ubuntu1 [920 kB] Get:88 http://ftpmaster.internal/ubuntu impish/universe s390x dh-apport all 2.20.11-0ubuntu67 [6496 B] Get:89 http://ftpmaster.internal/ubuntu impish/main s390x golang-1.16-src all 1.16.5-1ubuntu1 [14.2 MB] Get:90 http://ftpmaster.internal/ubuntu impish/main s390x golang-1.16-go s390x 1.16.5-1ubuntu1 [48.2 MB] Get:91 http://ftpmaster.internal/ubuntu impish/main s390x golang-src s390x 2:1.16~0ubuntu1 [4120 B] Get:92 http://ftpmaster.internal/ubuntu impish/main s390x golang-go s390x 2:1.16~0ubuntu1 [22.0 kB] Get:93 http://ftpmaster.internal/ubuntu impish/main s390x pkg-config s390x 0.29.2-1ubuntu1 [45.0 kB] Get:94 http://ftpmaster.internal/ubuntu impish/main s390x libdbus-1-dev s390x 1.12.20-2ubuntu1 [190 kB] Get:95 http://ftpmaster.internal/ubuntu impish/main s390x libgpgme11 s390x 1.14.0-1ubuntu3 [123 kB] Get:96 http://ftpmaster.internal/ubuntu impish/main s390x libpam0g-dev s390x 1.3.1-5ubuntu7 [111 kB] Get:97 http://ftpmaster.internal/ubuntu impish/main s390x samba-dsdb-modules s390x 2:4.13.5+dfsg-2ubuntu1 [274 kB] Get:98 http://ftpmaster.internal/ubuntu impish/main s390x dh-golang all 1.51 [20.6 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 99.4 MB in 5s (18.7 MB/s) Selecting previously unselected package libpython3.9-minimal:s390x. (Reading database ... 13000 files and directories currently installed.) Preparing to unpack .../libpython3.9-minimal_3.9.5-3_s390x.deb ... Unpacking libpython3.9-minimal:s390x (3.9.5-3) ... Selecting previously unselected package libexpat1:s390x. Preparing to unpack .../libexpat1_2.3.0-1_s390x.deb ... Unpacking libexpat1:s390x (2.3.0-1) ... Selecting previously unselected package python3.9-minimal. Preparing to unpack .../python3.9-minimal_3.9.5-3_s390x.deb ... Unpacking python3.9-minimal (3.9.5-3) ... Setting up libpython3.9-minimal:s390x (3.9.5-3) ... Setting up libexpat1:s390x (2.3.0-1) ... Setting up python3.9-minimal (3.9.5-3) ... Selecting previously unselected package python3-minimal. (Reading database ... 13293 files and directories currently installed.) Preparing to unpack .../0-python3-minimal_3.9.4-1_s390x.deb ... Unpacking python3-minimal (3.9.4-1) ... Selecting previously unselected package media-types. Preparing to unpack .../1-media-types_4.0.0_all.deb ... Unpacking media-types (4.0.0) ... Selecting previously unselected package libmpdec3:s390x. Preparing to unpack .../2-libmpdec3_2.5.1-2_s390x.deb ... Unpacking libmpdec3:s390x (2.5.1-2) ... Selecting previously unselected package libpython3.9-stdlib:s390x. Preparing to unpack .../3-libpython3.9-stdlib_3.9.5-3_s390x.deb ... Unpacking libpython3.9-stdlib:s390x (3.9.5-3) ... Selecting previously unselected package python3.9. Preparing to unpack .../4-python3.9_3.9.5-3_s390x.deb ... Unpacking python3.9 (3.9.5-3) ... Selecting previously unselected package libpython3-stdlib:s390x. Preparing to unpack .../5-libpython3-stdlib_3.9.4-1_s390x.deb ... Unpacking libpython3-stdlib:s390x (3.9.4-1) ... Setting up python3-minimal (3.9.4-1) ... Selecting previously unselected package python3. (Reading database ... 13689 files and directories currently installed.) Preparing to unpack .../00-python3_3.9.4-1_s390x.deb ... Unpacking python3 (3.9.4-1) ... Selecting previously unselected package bsdextrautils. Preparing to unpack .../01-bsdextrautils_2.36.1-7ubuntu2_s390x.deb ... Unpacking bsdextrautils (2.36.1-7ubuntu2) ... Selecting previously unselected package libuchardet0:s390x. Preparing to unpack .../02-libuchardet0_0.0.7-1_s390x.deb ... Unpacking libuchardet0:s390x (0.0.7-1) ... Selecting previously unselected package groff-base. Preparing to unpack .../03-groff-base_1.22.4-6_s390x.deb ... Unpacking groff-base (1.22.4-6) ... Selecting previously unselected package libpipeline1:s390x. Preparing to unpack .../04-libpipeline1_1.5.3-1_s390x.deb ... Unpacking libpipeline1:s390x (1.5.3-1) ... Selecting previously unselected package man-db. Preparing to unpack .../05-man-db_2.9.4-2_s390x.deb ... Unpacking man-db (2.9.4-2) ... Selecting previously unselected package libmd0:s390x. Preparing to unpack .../06-libmd0_1.0.3-3build1_s390x.deb ... Unpacking libmd0:s390x (1.0.3-3build1) ... Selecting previously unselected package libbsd0:s390x. Preparing to unpack .../07-libbsd0_0.11.3-1ubuntu2_s390x.deb ... Unpacking libbsd0:s390x (0.11.3-1ubuntu2) ... Selecting previously unselected package libicu67:s390x. Preparing to unpack .../08-libicu67_67.1-6ubuntu2_s390x.deb ... Unpacking libicu67:s390x (67.1-6ubuntu2) ... Selecting previously unselected package libtalloc2:s390x. Preparing to unpack .../09-libtalloc2_2.3.1-2ubuntu1_s390x.deb ... Unpacking libtalloc2:s390x (2.3.1-2ubuntu1) ... Selecting previously unselected package libtevent0:s390x. Preparing to unpack .../10-libtevent0_0.10.2-1_s390x.deb ... Unpacking libtevent0:s390x (0.10.2-1) ... Selecting previously unselected package libwbclient0:s390x. Preparing to unpack .../11-libwbclient0_2%3a4.13.5+dfsg-2ubuntu1_s390x.deb ... Unpacking libwbclient0:s390x (2:4.13.5+dfsg-2ubuntu1) ... Selecting previously unselected package netbase. Preparing to unpack .../12-netbase_6.3_all.deb ... Unpacking netbase (6.3) ... Selecting previously unselected package python3-dnspython. Preparing to unpack .../13-python3-dnspython_2.0.0+really1.16.0-2ubuntu2_all.deb ... Unpacking python3-dnspython (2.0.0+really1.16.0-2ubuntu2) ... Selecting previously unselected package libroken18-heimdal:s390x. Preparing to unpack .../14-libroken18-heimdal_7.7.0+dfsg-2_s390x.deb ... Unpacking libroken18-heimdal:s390x (7.7.0+dfsg-2) ... Selecting previously unselected package libasn1-8-heimdal:s390x. Preparing to unpack .../15-libasn1-8-heimdal_7.7.0+dfsg-2_s390x.deb ... Unpacking libasn1-8-heimdal:s390x (7.7.0+dfsg-2) ... Selecting previously unselected package libheimbase1-heimdal:s390x. Preparing to unpack .../16-libheimbase1-heimdal_7.7.0+dfsg-2_s390x.deb ... Unpacking libheimbase1-heimdal:s390x (7.7.0+dfsg-2) ... Selecting previously unselected package libhcrypto4-heimdal:s390x. Preparing to unpack .../17-libhcrypto4-heimdal_7.7.0+dfsg-2_s390x.deb ... Unpacking libhcrypto4-heimdal:s390x (7.7.0+dfsg-2) ... Selecting previously unselected package libwind0-heimdal:s390x. Preparing to unpack .../18-libwind0-heimdal_7.7.0+dfsg-2_s390x.deb ... Unpacking libwind0-heimdal:s390x (7.7.0+dfsg-2) ... Selecting previously unselected package libhx509-5-heimdal:s390x. Preparing to unpack .../19-libhx509-5-heimdal_7.7.0+dfsg-2_s390x.deb ... Unpacking libhx509-5-heimdal:s390x (7.7.0+dfsg-2) ... Selecting previously unselected package libkrb5-26-heimdal:s390x. Preparing to unpack .../20-libkrb5-26-heimdal_7.7.0+dfsg-2_s390x.deb ... Unpacking libkrb5-26-heimdal:s390x (7.7.0+dfsg-2) ... Selecting previously unselected package libheimntlm0-heimdal:s390x. Preparing to unpack .../21-libheimntlm0-heimdal_7.7.0+dfsg-2_s390x.deb ... Unpacking libheimntlm0-heimdal:s390x (7.7.0+dfsg-2) ... Selecting previously unselected package libgssapi3-heimdal:s390x. Preparing to unpack .../22-libgssapi3-heimdal_7.7.0+dfsg-2_s390x.deb ... Unpacking libgssapi3-heimdal:s390x (7.7.0+dfsg-2) ... Selecting previously unselected package libsasl2-modules-db:s390x. Preparing to unpack .../23-libsasl2-modules-db_2.1.27+dfsg-2.1_s390x.deb ... Unpacking libsasl2-modules-db:s390x (2.1.27+dfsg-2.1) ... Selecting previously unselected package libsasl2-2:s390x. Preparing to unpack .../24-libsasl2-2_2.1.27+dfsg-2.1_s390x.deb ... Unpacking libsasl2-2:s390x (2.1.27+dfsg-2.1) ... Selecting previously unselected package libldap-2.4-2:s390x. Preparing to unpack .../25-libldap-2.4-2_2.4.57+dfsg-2ubuntu1_s390x.deb ... Unpacking libldap-2.4-2:s390x (2.4.57+dfsg-2ubuntu1) ... Selecting previously unselected package liblmdb0:s390x. Preparing to unpack .../26-liblmdb0_0.9.24-1_s390x.deb ... Unpacking liblmdb0:s390x (0.9.24-1) ... Selecting previously unselected package libtdb1:s390x. Preparing to unpack .../27-libtdb1_1.4.3-1build1_s390x.deb ... Unpacking libtdb1:s390x (1.4.3-1build1) ... Selecting previously unselected package libldb2:s390x. Preparing to unpack .../28-libldb2_2%3a2.2.0-3ubuntu2_s390x.deb ... Unpacking libldb2:s390x (2:2.2.0-3ubuntu2) ... Selecting previously unselected package libpython3.9:s390x. Preparing to unpack .../29-libpython3.9_3.9.5-3_s390x.deb ... Unpacking libpython3.9:s390x (3.9.5-3) ... Selecting previously unselected package python3-ldb. Preparing to unpack .../30-python3-ldb_2%3a2.2.0-3ubuntu2_s390x.deb ... Unpacking python3-ldb (2:2.2.0-3ubuntu2) ... Selecting previously unselected package python3-tdb. Preparing to unpack .../31-python3-tdb_1.4.3-1build1_s390x.deb ... Unpacking python3-tdb (1.4.3-1build1) ... Selecting previously unselected package libavahi-common-data:s390x. Preparing to unpack .../32-libavahi-common-data_0.8-5ubuntu3_s390x.deb ... Unpacking libavahi-common-data:s390x (0.8-5ubuntu3) ... Selecting previously unselected package libavahi-common3:s390x. Preparing to unpack .../33-libavahi-common3_0.8-5ubuntu3_s390x.deb ... Unpacking libavahi-common3:s390x (0.8-5ubuntu3) ... Selecting previously unselected package libdbus-1-3:s390x. Preparing to unpack .../34-libdbus-1-3_1.12.20-2ubuntu1_s390x.deb ... Unpacking libdbus-1-3:s390x (1.12.20-2ubuntu1) ... Selecting previously unselected package libavahi-client3:s390x. Preparing to unpack .../35-libavahi-client3_0.8-5ubuntu3_s390x.deb ... Unpacking libavahi-client3:s390x (0.8-5ubuntu3) ... Selecting previously unselected package libcups2:s390x. Preparing to unpack .../36-libcups2_2.3.3op2-3ubuntu3_s390x.deb ... Unpacking libcups2:s390x (2.3.3op2-3ubuntu3) ... Selecting previously unselected package libjansson4:s390x. Preparing to unpack .../37-libjansson4_2.13.1-1.1build1_s390x.deb ... Unpacking libjansson4:s390x (2.13.1-1.1build1) ... Selecting previously unselected package libpopt0:s390x. Preparing to unpack .../38-libpopt0_1.18-2build2_s390x.deb ... Unpacking libpopt0:s390x (1.18-2build2) ... Selecting previously unselected package python3-talloc:s390x. Preparing to unpack .../39-python3-talloc_2.3.1-2ubuntu1_s390x.deb ... Unpacking python3-talloc:s390x (2.3.1-2ubuntu1) ... Selecting previously unselected package samba-libs:s390x. Preparing to unpack .../40-samba-libs_2%3a4.13.5+dfsg-2ubuntu1_s390x.deb ... Unpacking samba-libs:s390x (2:4.13.5+dfsg-2ubuntu1) ... Selecting previously unselected package python3-samba. Preparing to unpack .../41-python3-samba_2%3a4.13.5+dfsg-2ubuntu1_s390x.deb ... Unpacking python3-samba (2:4.13.5+dfsg-2ubuntu1) ... Selecting previously unselected package ucf. Preparing to unpack .../42-ucf_3.0043_all.deb ... Moving old data out of the way Unpacking ucf (3.0043) ... Selecting previously unselected package samba-common. Preparing to unpack .../43-samba-common_2%3a4.13.5+dfsg-2ubuntu1_all.deb ... Unpacking samba-common (2:4.13.5+dfsg-2ubuntu1) ... Selecting previously unselected package samba-common-bin. Preparing to unpack .../44-samba-common-bin_2%3a4.13.5+dfsg-2ubuntu1_s390x.deb ... Unpacking samba-common-bin (2:4.13.5+dfsg-2ubuntu1) ... Selecting previously unselected package tdb-tools. Preparing to unpack .../45-tdb-tools_1.4.3-1build1_s390x.deb ... Unpacking tdb-tools (1.4.3-1build1) ... Selecting previously unselected package samba. Preparing to unpack .../46-samba_2%3a4.13.5+dfsg-2ubuntu1_s390x.deb ... Unpacking samba (2:4.13.5+dfsg-2ubuntu1) ... Selecting previously unselected package libsmbclient:s390x. Preparing to unpack .../47-libsmbclient_2%3a4.13.5+dfsg-2ubuntu1_s390x.deb ... Unpacking libsmbclient:s390x (2:4.13.5+dfsg-2ubuntu1) ... Selecting previously unselected package libsmbclient-dev:s390x. Preparing to unpack .../48-libsmbclient-dev_2%3a4.13.5+dfsg-2ubuntu1_s390x.deb ... Unpacking libsmbclient-dev:s390x (2:4.13.5+dfsg-2ubuntu1) ... Selecting previously unselected package dbus. Preparing to unpack .../49-dbus_1.12.20-2ubuntu1_s390x.deb ... Unpacking dbus (1.12.20-2ubuntu1) ... Selecting previously unselected package libelf1:s390x. Preparing to unpack .../50-libelf1_0.185-1_s390x.deb ... Unpacking libelf1:s390x (0.185-1) ... Selecting previously unselected package libglib2.0-0:s390x. Preparing to unpack .../51-libglib2.0-0_2.68.1-2_s390x.deb ... Unpacking libglib2.0-0:s390x (2.68.1-2) ... Selecting previously unselected package libxml2:s390x. Preparing to unpack .../52-libxml2_2.9.10+dfsg-6.7_s390x.deb ... Unpacking libxml2:s390x (2.9.10+dfsg-6.7) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../53-libmagic-mgc_1%3a5.39-3_s390x.deb ... Unpacking libmagic-mgc (1:5.39-3) ... Selecting previously unselected package libmagic1:s390x. Preparing to unpack .../54-libmagic1_1%3a5.39-3_s390x.deb ... Unpacking libmagic1:s390x (1:5.39-3) ... Selecting previously unselected package file. Preparing to unpack .../55-file_1%3a5.39-3_s390x.deb ... Unpacking file (1:5.39-3) ... Selecting previously unselected package gettext-base. Preparing to unpack .../56-gettext-base_0.21-4ubuntu3_s390x.deb ... Unpacking gettext-base (0.21-4ubuntu3) ... Selecting previously unselected package libsigsegv2:s390x. Preparing to unpack .../57-libsigsegv2_2.13-1ubuntu1_s390x.deb ... Unpacking libsigsegv2:s390x (2.13-1ubuntu1) ... Selecting previously unselected package m4. Preparing to unpack .../58-m4_1.4.18-5_s390x.deb ... Unpacking m4 (1.4.18-5) ... Selecting previously unselected package autoconf. Preparing to unpack .../59-autoconf_2.69-14_all.deb ... Unpacking autoconf (2.69-14) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../60-autotools-dev_20180224.1+nmu1_all.deb ... Unpacking autotools-dev (20180224.1+nmu1) ... Selecting previously unselected package automake. Preparing to unpack .../61-automake_1%3a1.16.3-2ubuntu1_all.deb ... Unpacking automake (1:1.16.3-2ubuntu1) ... Selecting previously unselected package autopoint. Preparing to unpack .../62-autopoint_0.21-4ubuntu3_all.deb ... Unpacking autopoint (0.21-4ubuntu3) ... Selecting previously unselected package libdebhelper-perl. Preparing to unpack .../63-libdebhelper-perl_13.3.4ubuntu1_all.deb ... Unpacking libdebhelper-perl (13.3.4ubuntu1) ... Selecting previously unselected package libtool. Preparing to unpack .../64-libtool_2.4.6-15_all.deb ... Unpacking libtool (2.4.6-15) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../65-dh-autoreconf_20_all.deb ... Unpacking dh-autoreconf (20) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../66-libarchive-zip-perl_1.68-1_all.deb ... Unpacking libarchive-zip-perl (1.68-1) ... Selecting previously unselected package libsub-override-perl. Preparing to unpack .../67-libsub-override-perl_0.09-2_all.deb ... Unpacking libsub-override-perl (0.09-2) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../68-libfile-stripnondeterminism-perl_1.12.0-1_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.12.0-1) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../69-dh-strip-nondeterminism_1.12.0-1_all.deb ... Unpacking dh-strip-nondeterminism (1.12.0-1) ... Selecting previously unselected package libdw1:s390x. Preparing to unpack .../70-libdw1_0.185-1_s390x.deb ... Unpacking libdw1:s390x (0.185-1) ... Selecting previously unselected package debugedit. Preparing to unpack .../71-debugedit_1%3a0.3-0ubuntu1_s390x.deb ... Unpacking debugedit (1:0.3-0ubuntu1) ... Selecting previously unselected package dwz. Preparing to unpack .../72-dwz_0.14-1_s390x.deb ... Unpacking dwz (0.14-1) ... Selecting previously unselected package gettext. Preparing to unpack .../73-gettext_0.21-4ubuntu3_s390x.deb ... Unpacking gettext (0.21-4ubuntu3) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../74-intltool-debian_0.35.0+20060710.5_all.deb ... Unpacking intltool-debian (0.35.0+20060710.5) ... Selecting previously unselected package po-debconf. Preparing to unpack .../75-po-debconf_1.0.21+nmu1_all.deb ... Unpacking po-debconf (1.0.21+nmu1) ... Selecting previously unselected package debhelper. Preparing to unpack .../76-debhelper_13.3.4ubuntu1_all.deb ... Unpacking debhelper (13.3.4ubuntu1) ... Selecting previously unselected package dh-apport. Preparing to unpack .../77-dh-apport_2.20.11-0ubuntu67_all.deb ... Unpacking dh-apport (2.20.11-0ubuntu67) ... Selecting previously unselected package golang-1.16-src. Preparing to unpack .../78-golang-1.16-src_1.16.5-1ubuntu1_all.deb ... Unpacking golang-1.16-src (1.16.5-1ubuntu1) ... Selecting previously unselected package golang-1.16-go. Preparing to unpack .../79-golang-1.16-go_1.16.5-1ubuntu1_s390x.deb ... Unpacking golang-1.16-go (1.16.5-1ubuntu1) ... Selecting previously unselected package golang-src:s390x. Preparing to unpack .../80-golang-src_2%3a1.16~0ubuntu1_s390x.deb ... Unpacking golang-src:s390x (2:1.16~0ubuntu1) ... Selecting previously unselected package golang-go. Preparing to unpack .../81-golang-go_2%3a1.16~0ubuntu1_s390x.deb ... Unpacking golang-go (2:1.16~0ubuntu1) ... Selecting previously unselected package pkg-config. Preparing to unpack .../82-pkg-config_0.29.2-1ubuntu1_s390x.deb ... Unpacking pkg-config (0.29.2-1ubuntu1) ... Selecting previously unselected package libdbus-1-dev:s390x. Preparing to unpack .../83-libdbus-1-dev_1.12.20-2ubuntu1_s390x.deb ... Unpacking libdbus-1-dev:s390x (1.12.20-2ubuntu1) ... Selecting previously unselected package libgpgme11:s390x. Preparing to unpack .../84-libgpgme11_1.14.0-1ubuntu3_s390x.deb ... Unpacking libgpgme11:s390x (1.14.0-1ubuntu3) ... Selecting previously unselected package libpam0g-dev:s390x. Preparing to unpack .../85-libpam0g-dev_1.3.1-5ubuntu7_s390x.deb ... Unpacking libpam0g-dev:s390x (1.3.1-5ubuntu7) ... Selecting previously unselected package samba-dsdb-modules:s390x. Preparing to unpack .../86-samba-dsdb-modules_2%3a4.13.5+dfsg-2ubuntu1_s390x.deb ... Unpacking samba-dsdb-modules:s390x (2:4.13.5+dfsg-2ubuntu1) ... Selecting previously unselected package dh-golang. Preparing to unpack .../87-dh-golang_1.51_all.deb ... Unpacking dh-golang (1.51) ... Selecting previously unselected package sbuild-build-depends-adsys-dummy. Preparing to unpack .../88-sbuild-build-depends-adsys-dummy_0.invalid.0_s390x.deb ... Unpacking sbuild-build-depends-adsys-dummy (0.invalid.0) ... Setting up media-types (4.0.0) ... Setting up libpipeline1:s390x (1.5.3-1) ... Setting up liblmdb0:s390x (0.9.24-1) ... Setting up bsdextrautils (2.36.1-7ubuntu2) ... update-alternatives: using /usr/bin/write.ul to provide /usr/bin/write (write) in auto mode Setting up libicu67:s390x (67.1-6ubuntu2) ... Setting up libpam0g-dev:s390x (1.3.1-5ubuntu7) ... Setting up libmagic-mgc (1:5.39-3) ... Setting up libarchive-zip-perl (1.68-1) ... Setting up libglib2.0-0:s390x (2.68.1-2) ... No schema files found: doing nothing. Setting up libtdb1:s390x (1.4.3-1build1) ... Setting up libdebhelper-perl (13.3.4ubuntu1) ... Setting up libmagic1:s390x (1:5.39-3) ... Setting up gettext-base (0.21-4ubuntu3) ... Setting up file (1:5.39-3) ... Setting up libgpgme11:s390x (1.14.0-1ubuntu3) ... Setting up dh-apport (2.20.11-0ubuntu67) ... Setting up libjansson4:s390x (2.13.1-1.1build1) ... Setting up libsasl2-modules-db:s390x (2.1.27+dfsg-2.1) ... Setting up libtalloc2:s390x (2.3.1-2ubuntu1) ... Setting up autotools-dev (20180224.1+nmu1) ... Setting up libtevent0:s390x (0.10.2-1) ... Setting up golang-1.16-src (1.16.5-1ubuntu1) ... Setting up libavahi-common-data:s390x (0.8-5ubuntu3) ... Setting up tdb-tools (1.4.3-1build1) ... update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide /usr/bin/tdbbackup (tdbbackup) in auto mode Setting up libdbus-1-3:s390x (1.12.20-2ubuntu1) ... Setting up dbus (1.12.20-2ubuntu1) ... Setting up libsigsegv2:s390x (2.13-1ubuntu1) ... Setting up autopoint (0.21-4ubuntu3) ... Setting up pkg-config (0.29.2-1ubuntu1) ... Setting up ucf (3.0043) ... Setting up libsasl2-2:s390x (2.1.27+dfsg-2.1) ... Setting up libroken18-heimdal:s390x (7.7.0+dfsg-2) ... Setting up libmd0:s390x (1.0.3-3build1) ... Setting up libuchardet0:s390x (0.0.7-1) ... Setting up libmpdec3:s390x (2.5.1-2) ... Setting up libsub-override-perl (0.09-2) ... Setting up netbase (6.3) ... Setting up golang-src:s390x (2:1.16~0ubuntu1) ... Setting up libbsd0:s390x (0.11.3-1ubuntu2) ... Setting up libelf1:s390x (0.185-1) ... Setting up libxml2:s390x (2.9.10+dfsg-6.7) ... Setting up libpython3.9-stdlib:s390x (3.9.5-3) ... Setting up libpython3-stdlib:s390x (3.9.4-1) ... Setting up libheimbase1-heimdal:s390x (7.7.0+dfsg-2) ... Setting up libpopt0:s390x (1.18-2build2) ... Setting up libfile-stripnondeterminism-perl (1.12.0-1) ... Setting up libdw1:s390x (0.185-1) ... Setting up gettext (0.21-4ubuntu3) ... Setting up libtool (2.4.6-15) ... Setting up libasn1-8-heimdal:s390x (7.7.0+dfsg-2) ... Setting up libavahi-common3:s390x (0.8-5ubuntu3) ... Setting up m4 (1.4.18-5) ... Setting up golang-1.16-go (1.16.5-1ubuntu1) ... Setting up samba-common (2:4.13.5+dfsg-2ubuntu1) ... Creating config file /etc/samba/smb.conf with new version Setting up libhcrypto4-heimdal:s390x (7.7.0+dfsg-2) ... Setting up libwbclient0:s390x (2:4.13.5+dfsg-2ubuntu1) ... Setting up intltool-debian (0.35.0+20060710.5) ... Setting up libwind0-heimdal:s390x (7.7.0+dfsg-2) ... Setting up libpython3.9:s390x (3.9.5-3) ... Setting up libdbus-1-dev:s390x (1.12.20-2ubuntu1) ... Setting up autoconf (2.69-14) ... Setting up dh-strip-nondeterminism (1.12.0-1) ... Setting up dwz (0.14-1) ... Setting up groff-base (1.22.4-6) ... Setting up debugedit (1:0.3-0ubuntu1) ... Setting up libavahi-client3:s390x (0.8-5ubuntu3) ... Setting up python3.9 (3.9.5-3) ... Setting up automake (1:1.16.3-2ubuntu1) ... update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode Setting up golang-go (2:1.16~0ubuntu1) ... Setting up libhx509-5-heimdal:s390x (7.7.0+dfsg-2) ... Setting up po-debconf (1.0.21+nmu1) ... Setting up python3 (3.9.4-1) ... Setting up man-db (2.9.4-2) ... Not building database; man-db/auto-update is not 'true'. Created symlink /etc/systemd/system/timers.target.wants/man-db.timer → /lib/systemd/system/man-db.timer. Setting up dh-autoreconf (20) ... Setting up python3-tdb (1.4.3-1build1) ... Setting up libcups2:s390x (2.3.3op2-3ubuntu3) ... Setting up python3-dnspython (2.0.0+really1.16.0-2ubuntu2) ... Setting up libkrb5-26-heimdal:s390x (7.7.0+dfsg-2) ... Setting up python3-talloc:s390x (2.3.1-2ubuntu1) ... Setting up debhelper (13.3.4ubuntu1) ... Setting up libheimntlm0-heimdal:s390x (7.7.0+dfsg-2) ... Setting up libgssapi3-heimdal:s390x (7.7.0+dfsg-2) ... Setting up dh-golang (1.51) ... Setting up libldap-2.4-2:s390x (2.4.57+dfsg-2ubuntu1) ... Setting up libldb2:s390x (2:2.2.0-3ubuntu2) ... Setting up python3-ldb (2:2.2.0-3ubuntu2) ... Setting up samba-libs:s390x (2:4.13.5+dfsg-2ubuntu1) ... Setting up libsmbclient:s390x (2:4.13.5+dfsg-2ubuntu1) ... Setting up libsmbclient-dev:s390x (2:4.13.5+dfsg-2ubuntu1) ... Setting up samba-dsdb-modules:s390x (2:4.13.5+dfsg-2ubuntu1) ... Setting up python3-samba (2:4.13.5+dfsg-2ubuntu1) ... Setting up samba-common-bin (2:4.13.5+dfsg-2ubuntu1) ... Checking smb.conf with testparm Load smb config files from /etc/samba/smb.conf Loaded services file OK. Weak crypto is allowed Server role: ROLE_STANDALONE Done Setting up samba (2:4.13.5+dfsg-2ubuntu1) ... Adding group `sambashare' (GID 106) ... Done. Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service Please ignore the following error about deb-systemd-helper not finding those services. (samba-ad-dc.service masked) Running in chroot, ignoring request. invoke-rc.d: policy-rc.d denied execution of start. Running in chroot, ignoring request. invoke-rc.d: policy-rc.d denied execution of start. Running in chroot, ignoring request. invoke-rc.d: policy-rc.d denied execution of start. Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service. Failed to preset unit, unit /etc/systemd/system/samba-ad-dc.service is masked. /usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service. Setting up sbuild-build-depends-adsys-dummy (0.invalid.0) ... Processing triggers for libc-bin (2.33-0ubuntu8) ... +------------------------------------------------------------------------------+ | Build environment | +------------------------------------------------------------------------------+ Kernel: Linux 4.15.0-144-generic s390x (s390x) Toolchain package versions: binutils_2.36.50.20210618-1ubuntu1 dpkg-dev_1.20.9ubuntu1 g++-10_10.3.0-4ubuntu1 gcc-10_10.3.0-4ubuntu1 libc6-dev_2.33-0ubuntu8 libstdc++-10-dev_10.3.0-4ubuntu1 libstdc++6_11.1.0-3ubuntu1 linux-libc-dev_5.11.0-20.21+21.10.1 Package versions: adduser_3.118ubuntu5 advancecomp_2.1-2.1build1 apt_2.3.6 autoconf_2.69-14 automake_1:1.16.3-2ubuntu1 autopoint_0.21-4ubuntu3 autotools-dev_20180224.1+nmu1 base-files_11.1ubuntu3 base-passwd_3.5.50 bash_5.1-3ubuntu1 binutils_2.36.50.20210618-1ubuntu1 binutils-common_2.36.50.20210618-1ubuntu1 binutils-s390x-linux-gnu_2.36.50.20210618-1ubuntu1 bsdextrautils_2.36.1-7ubuntu2 bsdutils_1:2.36.1-7ubuntu2 build-essential_12.9ubuntu1 bzip2_1.0.8-4ubuntu3 ca-certificates_20210119build1 coreutils_8.32-4ubuntu2 cpp_4:10.3.0-1ubuntu3 cpp-10_10.3.0-4ubuntu1 dash_0.5.11+git20210120+802ebd4-1 dbus_1.12.20-2ubuntu1 debconf_1.5.77 debhelper_13.3.4ubuntu1 debianutils_4.11.2 debugedit_1:0.3-0ubuntu1 dh-apport_2.20.11-0ubuntu67 dh-autoreconf_20 dh-golang_1.51 dh-strip-nondeterminism_1.12.0-1 diffutils_1:3.7-5ubuntu1 dpkg_1.20.9ubuntu1 dpkg-dev_1.20.9ubuntu1 dwz_0.14-1 e2fsprogs_1.46.2-1ubuntu2 fakeroot_1.25.3-1.1ubuntu2 file_1:5.39-3 findutils_4.8.0-1ubuntu1 g++_4:10.3.0-1ubuntu3 g++-10_10.3.0-4ubuntu1 gcc_4:10.3.0-1ubuntu3 gcc-10_10.3.0-4ubuntu1 gcc-10-base_10.3.0-4ubuntu1 gcc-11-base_11.1.0-3ubuntu1 gettext_0.21-4ubuntu3 gettext-base_0.21-4ubuntu3 golang-1.16-go_1.16.5-1ubuntu1 golang-1.16-src_1.16.5-1ubuntu1 golang-go_2:1.16~0ubuntu1 golang-src_2:1.16~0ubuntu1 gpg_2.2.20-1ubuntu3 gpg-agent_2.2.20-1ubuntu3 gpgconf_2.2.20-1ubuntu3 gpgv_2.2.20-1ubuntu3 grep_3.6-1 groff-base_1.22.4-6 gzip_1.10-4ubuntu1 hostname_3.23 init_1.60 init-system-helpers_1.60 intltool-debian_0.35.0+20060710.5 libacl1_2.2.53-10ubuntu1 libapparmor1_3.0.0-0ubuntu8 libapt-pkg6.0_2.3.6 libarchive-zip-perl_1.68-1 libargon2-1_0~20171227-0.2build21.04.0 libasan6_11.1.0-3ubuntu1 libasn1-8-heimdal_7.7.0+dfsg-2 libassuan0_2.5.4-1ubuntu1 libatomic1_11.1.0-3ubuntu1 libattr1_1:2.4.48-6build1 libaudit-common_1:3.0-2ubuntu1 libaudit1_1:3.0-2ubuntu1 libavahi-client3_0.8-5ubuntu3 libavahi-common-data_0.8-5ubuntu3 libavahi-common3_0.8-5ubuntu3 libbinutils_2.36.50.20210618-1ubuntu1 libblkid1_2.36.1-7ubuntu2 libbsd0_0.11.3-1ubuntu2 libbz2-1.0_1.0.8-4ubuntu3 libc-bin_2.33-0ubuntu8 libc-dev-bin_2.33-0ubuntu8 libc6_2.33-0ubuntu8 libc6-dev_2.33-0ubuntu8 libcap-ng0_0.7.9-2.2build1 libcap2_1:2.44-1build1 libcc1-0_11.1.0-3ubuntu1 libcom-err2_1.46.2-1ubuntu2 libcrypt-dev_1:4.4.18-4ubuntu1 libcrypt1_1:4.4.18-4ubuntu1 libcryptsetup12_2:2.3.4-1ubuntu3 libctf-nobfd0_2.36.50.20210618-1ubuntu1 libctf0_2.36.50.20210618-1ubuntu1 libcups2_2.3.3op2-3ubuntu3 libdb5.3_5.3.28+dfsg1-0.8ubuntu1 libdbus-1-3_1.12.20-2ubuntu1 libdbus-1-dev_1.12.20-2ubuntu1 libdebconfclient0_0.256ubuntu3 libdebhelper-perl_13.3.4ubuntu1 libdevmapper1.02.1_2:1.02.175-2.1ubuntu1 libdpkg-perl_1.20.9ubuntu1 libdw1_0.185-1 libelf1_0.185-1 libexpat1_2.3.0-1 libext2fs2_1.46.2-1ubuntu2 libfakeroot_1.25.3-1.1ubuntu2 libffi8ubuntu1_3.4~20200819gead65ca871-0ubuntu5 libfile-stripnondeterminism-perl_1.12.0-1 libgcc-10-dev_10.3.0-4ubuntu1 libgcc-s1_11.1.0-3ubuntu1 libgcrypt20_1.8.7-5ubuntu1 libgdbm-compat4_1.19-2 libgdbm6_1.19-2 libglib2.0-0_2.68.1-2 libgmp10_2:6.2.1+dfsg-1ubuntu2 libgnutls30_3.7.1-4ubuntu1 libgomp1_11.1.0-3ubuntu1 libgpg-error0_1.38-2build1 libgpgme11_1.14.0-1ubuntu3 libgssapi-krb5-2_1.18.3-5 libgssapi3-heimdal_7.7.0+dfsg-2 libhcrypto4-heimdal_7.7.0+dfsg-2 libheimbase1-heimdal_7.7.0+dfsg-2 libheimntlm0-heimdal_7.7.0+dfsg-2 libhogweed6_3.7.3-1 libhx509-5-heimdal_7.7.0+dfsg-2 libicu67_67.1-6ubuntu2 libidn2-0_2.3.1-1 libip4tc2_1.8.7-1ubuntu2 libisl23_0.24-1 libitm1_11.1.0-3ubuntu1 libjansson4_2.13.1-1.1build1 libjson-c5_0.15-2build2 libk5crypto3_1.18.3-5 libkeyutils1_1.6.1-2ubuntu1 libkmod2_28-1ubuntu2 libkrb5-26-heimdal_7.7.0+dfsg-2 libkrb5-3_1.18.3-5 libkrb5support0_1.18.3-5 libldap-2.4-2_2.4.57+dfsg-2ubuntu1 libldb2_2:2.2.0-3ubuntu2 liblmdb0_0.9.24-1 liblockfile-bin_1.17-1 liblockfile1_1.17-1 liblz4-1_1.9.3-2 liblzma5_5.2.5-2 libmagic-mgc_1:5.39-3 libmagic1_1:5.39-3 libmd0_1.0.3-3build1 libmount1_2.36.1-7ubuntu2 libmpc3_1.2.0-1build1 libmpdec3_2.5.1-2 libmpfr6_4.1.0-3build1 libncurses6_6.2+20201114-2build1 libncursesw6_6.2+20201114-2build1 libnettle8_3.7.3-1 libnpth0_1.6-3 libnsl-dev_1.3.0-2 libnsl2_1.3.0-2 libp11-kit0_0.23.22-1 libpam-modules_1.3.1-5ubuntu7 libpam-modules-bin_1.3.1-5ubuntu7 libpam-runtime_1.3.1-5ubuntu7 libpam0g_1.3.1-5ubuntu7 libpam0g-dev_1.3.1-5ubuntu7 libpcre2-8-0_10.36-2ubuntu5 libpcre3_2:8.39-13build3 libperl5.32_5.32.1-3ubuntu2 libpipeline1_1.5.3-1 libpng16-16_1.6.37-3build3 libpopt0_1.18-2build2 libprocps8_2:3.3.17-5ubuntu2 libpython3-stdlib_3.9.4-1 libpython3.9_3.9.5-3 libpython3.9-minimal_3.9.5-3 libpython3.9-stdlib_3.9.5-3 libreadline8_8.1-2 libroken18-heimdal_7.7.0+dfsg-2 libsasl2-2_2.1.27+dfsg-2.1 libsasl2-modules-db_2.1.27+dfsg-2.1 libseccomp2_2.5.1-1ubuntu1 libselinux1_3.1-3build1 libsemanage-common_3.1-1ubuntu1 libsemanage1_3.1-1ubuntu1 libsepol1_3.1-1ubuntu1 libsigsegv2_2.13-1ubuntu1 libsmartcols1_2.36.1-7ubuntu2 libsmbclient_2:4.13.5+dfsg-2ubuntu1 libsmbclient-dev_2:4.13.5+dfsg-2ubuntu1 libsqlite3-0_3.35.5-1 libss2_1.46.2-1ubuntu2 libssl1.1_1.1.1j-1ubuntu4 libstdc++-10-dev_10.3.0-4ubuntu1 libstdc++6_11.1.0-3ubuntu1 libsub-override-perl_0.09-2 libsystemd0_248.3-1ubuntu1 libtalloc2_2.3.1-2ubuntu1 libtasn1-6_4.16.0-2 libtdb1_1.4.3-1build1 libtevent0_0.10.2-1 libtinfo6_6.2+20201114-2build1 libtirpc-common_1.3.1-1build1 libtirpc-dev_1.3.1-1build1 libtirpc3_1.3.1-1build1 libtool_2.4.6-15 libubsan1_11.1.0-3ubuntu1 libuchardet0_0.0.7-1 libudev1_248.3-1ubuntu1 libunistring2_0.9.10-4 libuuid1_2.36.1-7ubuntu2 libwbclient0_2:4.13.5+dfsg-2ubuntu1 libwind0-heimdal_7.7.0+dfsg-2 libxml2_2.9.10+dfsg-6.7 libxxhash0_0.8.0-2 libzstd1_1.4.8+dfsg-2.1 linux-libc-dev_5.11.0-20.21+21.10.1 lockfile-progs_0.1.18 login_1:4.8.1-1ubuntu8 logsave_1.46.2-1ubuntu2 lsb-base_11.1.0ubuntu2 lto-disabled-list_11 m4_1.4.18-5 make_4.3-4ubuntu1 man-db_2.9.4-2 mawk_1.3.4.20200120-2 media-types_4.0.0 mount_2.36.1-7ubuntu2 ncurses-base_6.2+20201114-2build1 ncurses-bin_6.2+20201114-2build1 netbase_6.3 openssl_1.1.1j-1ubuntu4 optipng_0.7.7-1 passwd_1:4.8.1-1ubuntu8 patch_2.7.6-7 perl_5.32.1-3ubuntu2 perl-base_5.32.1-3ubuntu2 perl-modules-5.32_5.32.1-3ubuntu2 pinentry-curses_1.1.1-1 pkg-config_0.29.2-1ubuntu1 pkgbinarymangler_147 po-debconf_1.0.21+nmu1 policyrcd-script-zg2_0.1-3 procps_2:3.3.17-5ubuntu2 python3_3.9.4-1 python3-dnspython_2.0.0+really1.16.0-2ubuntu2 python3-ldb_2:2.2.0-3ubuntu2 python3-minimal_3.9.4-1 python3-samba_2:4.13.5+dfsg-2ubuntu1 python3-talloc_2.3.1-2ubuntu1 python3-tdb_1.4.3-1build1 python3.9_3.9.5-3 python3.9-minimal_3.9.5-3 readline-common_8.1-2 rpcsvc-proto_1.4.2-0ubuntu4 samba_2:4.13.5+dfsg-2ubuntu1 samba-common_2:4.13.5+dfsg-2ubuntu1 samba-common-bin_2:4.13.5+dfsg-2ubuntu1 samba-dsdb-modules_2:4.13.5+dfsg-2ubuntu1 samba-libs_2:4.13.5+dfsg-2ubuntu1 sbuild-build-depends-adsys-dummy_0.invalid.0 sbuild-build-depends-core-dummy_0.invalid.0 sed_4.7-1ubuntu1 sensible-utils_0.0.14 systemd_248.3-1ubuntu1 systemd-sysv_248.3-1ubuntu1 systemd-timesyncd_248.3-1ubuntu1 sysvinit-utils_2.96-7ubuntu1 tar_1.34+dfsg-1build1 tdb-tools_1.4.3-1build1 tzdata_2021a-1ubuntu1 ubuntu-keyring_2021.03.26 ucf_3.0043 usrmerge_25ubuntu1 util-linux_2.36.1-7ubuntu2 xz-utils_5.2.5-2 zlib1g_1:1.2.11.dfsg-2ubuntu6 +------------------------------------------------------------------------------+ | Build | +------------------------------------------------------------------------------+ Unpack source ------------- gpgv: Signature made Mon Jun 21 12:43:37 2021 UTC gpgv: using DSA key DD00EF8F4D23C30D78EC990998B24A9CE4AC208E gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./adsys_0.6.dsc dpkg-source: info: extracting adsys in /<> dpkg-source: info: unpacking adsys_0.6.tar.xz Check disk space ---------------- Sufficient free space for build User Environment ---------------- APT_CONFIG=/var/lib/sbuild/apt.conf DEB_BUILD_OPTIONS=parallel=4 HOME=/sbuild-nonexistent LANG=C.UTF-8 LC_ALL=C.UTF-8 LOGNAME=buildd PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games SCHROOT_ALIAS_NAME=build-PACKAGEBUILD-21711207 SCHROOT_CHROOT_NAME=build-PACKAGEBUILD-21711207 SCHROOT_COMMAND=env SCHROOT_GID=2501 SCHROOT_GROUP=buildd SCHROOT_SESSION_ID=build-PACKAGEBUILD-21711207 SCHROOT_UID=2001 SCHROOT_USER=buildd SHELL=/bin/sh TERM=unknown USER=buildd V=1 dpkg-buildpackage ----------------- dpkg-buildpackage: info: source package adsys dpkg-buildpackage: info: source version 0.6 dpkg-buildpackage: info: source distribution impish dpkg-source --before-build . dpkg-buildpackage: info: host architecture s390x fakeroot debian/rules clean dh clean --buildsystem=golang --with=golang,apport debian/rules override_dh_auto_clean make[1]: Entering directory '/<>' dh_auto_clean # create the vendor directory when building the source package [ -d vendor/ ] || go mod vendor make[1]: Leaving directory '/<>' dh_autoreconf_clean -O--buildsystem=golang dh_clean -O--buildsystem=golang debian/rules build-arch dh build-arch --buildsystem=golang --with=golang,apport dh_update_autotools_config -a -O--buildsystem=golang dh_autoreconf -a -O--buildsystem=golang dh_auto_configure -a -O--buildsystem=golang dh_auto_build -a -O--buildsystem=golang cd obj-s390x-linux-gnu && go install -trimpath -v -p 4 github.com/ubuntu/adsys github.com/ubuntu/adsys/cmd/adsysd github.com/ubuntu/adsys/cmd/adsysd/client github.com/ubuntu/adsys/cmd/adsysd/daemon github.com/ubuntu/adsys/cmd/integration_tests github.com/ubuntu/adsys/doc github.com/ubuntu/adsys/internal/adsysservice github.com/ubuntu/adsys/internal/adsysservice/actions github.com/ubuntu/adsys/internal/authorizer github.com/ubuntu/adsys/internal/cmdhandler github.com/ubuntu/adsys/internal/config github.com/ubuntu/adsys/internal/consts github.com/ubuntu/adsys/internal/daemon github.com/ubuntu/adsys/internal/decorate github.com/ubuntu/adsys/internal/generators github.com/ubuntu/adsys/internal/grpc/connectionnotify github.com/ubuntu/adsys/internal/grpc/contextidler github.com/ubuntu/adsys/internal/grpc/grpcerror github.com/ubuntu/adsys/internal/grpc/interceptorschain github.com/ubuntu/adsys/internal/grpc/logconnections github.com/ubuntu/adsys/internal/grpc/logstreamer github.com/ubuntu/adsys/internal/grpc/logstreamer/test github.com/ubuntu/adsys/internal/grpc/unixsocket github.com/ubuntu/adsys/internal/i18n github.com/ubuntu/adsys/internal/policies github.com/ubuntu/adsys/internal/policies/ad github.com/ubuntu/adsys/internal/policies/ad/admxgen github.com/ubuntu/adsys/internal/policies/ad/admxgen/common github.com/ubuntu/adsys/internal/policies/ad/admxgen/dconf github.com/ubuntu/adsys/internal/policies/ad/common github.com/ubuntu/adsys/internal/policies/ad/registry github.com/ubuntu/adsys/internal/policies/dconf github.com/ubuntu/adsys/internal/policies/entry github.com/ubuntu/adsys/internal/policies/gdm github.com/ubuntu/adsys/internal/smbsafe github.com/ubuntu/adsys/internal/stdforward github.com/ubuntu/adsys/internal/testutils github.com/ubuntu/adsys/policies internal/unsafeheader runtime/internal/sys runtime/internal/atomic internal/cpu internal/race sync/atomic runtime/internal/math unicode unicode/utf8 math/bits internal/bytealg math encoding unicode/utf16 runtime internal/nettrace container/list runtime/cgo crypto/internal/subtle crypto/subtle vendor/golang.org/x/crypto/cryptobyte/asn1 vendor/golang.org/x/crypto/internal/subtle github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/internal/flags github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/internal/set github.com/ubuntu/adsys/vendor/google.golang.org/grpc/serviceconfig github.com/ubuntu/adsys/vendor/golang.org/x/sys/internal/unsafeheader github.com/ubuntu/adsys/vendor/github.com/danwakefield/fnmatch github.com/ubuntu/adsys/vendor/golang.org/x/net/html/atom github.com/ubuntu/adsys/vendor/github.com/rivo/uniseg image/color github.com/ubuntu/adsys/cmd/integration_tests internal/reflectlite sync internal/testlog internal/singleflight math/rand github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/internal/pragma github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/buffer github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/grpcsync github.com/ubuntu/adsys/vendor/github.com/yuin/goldmark-emoji/definition internal/sysinfo errors sort internal/oserror io syscall strconv bytes strings reflect bufio time internal/syscall/unix internal/syscall/execenv path hash hash/crc32 context internal/poll io/fs html vendor/golang.org/x/net/dns/dnsmessage os internal/fmtsort encoding/binary encoding/base64 fmt path/filepath net crypto/cipher crypto/aes compress/flate encoding/json compress/gzip log github.com/ubuntu/adsys/vendor/golang.org/x/net/internal/timeseries net/url text/template/parse math/big text/template html/template crypto/rand crypto crypto/des crypto/elliptic crypto/internal/randutil crypto/sha512 encoding/asn1 crypto/ed25519/internal/edwards25519 crypto/hmac crypto/md5 vendor/golang.org/x/crypto/cryptobyte crypto/ed25519 crypto/rc4 crypto/rsa crypto/sha1 crypto/ecdsa crypto/sha256 crypto/dsa encoding/hex encoding/pem io/ioutil crypto/x509/pkix vendor/golang.org/x/crypto/curve25519 vendor/golang.org/x/sys/cpu crypto/x509 vendor/golang.org/x/crypto/hkdf vendor/golang.org/x/text/transform vendor/golang.org/x/crypto/chacha20 vendor/golang.org/x/crypto/poly1305 vendor/golang.org/x/text/unicode/bidi vendor/golang.org/x/crypto/chacha20poly1305 vendor/golang.org/x/text/unicode/norm crypto/tls vendor/golang.org/x/text/secure/bidirule net/textproto vendor/golang.org/x/net/http2/hpack vendor/golang.org/x/net/idna mime mime/quotedprintable vendor/golang.org/x/net/http/httpguts vendor/golang.org/x/net/http/httpproxy mime/multipart net/http/internal text/tabwriter github.com/ubuntu/adsys/vendor/google.golang.org/grpc/backoff github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/grpclog hash/fnv github.com/ubuntu/adsys/vendor/google.golang.org/grpc/grpclog github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/internal/detrand github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/internal/errors github.com/ubuntu/adsys/vendor/google.golang.org/grpc/connectivity github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/encoding/protowire go/token github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/reflect/protoreflect net/http/httptrace regexp/syntax net/http github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/internal/encoding/messageset github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/internal/strs regexp github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/internal/genid github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/internal/order github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/reflect/protoregistry github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/internal/encoding/text github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/runtime/protoiface github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/proto github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/internal/encoding/defval github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/internal/descfmt github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/internal/descopts github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/encoding/prototext github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/internal/filedesc github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/internal/version github.com/ubuntu/adsys/vendor/google.golang.org/grpc/attributes github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/credentials github.com/ubuntu/adsys/vendor/google.golang.org/grpc/metadata github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/grpcrand github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/internal/encoding/tag github.com/ubuntu/adsys/vendor/google.golang.org/grpc/codes github.com/ubuntu/adsys/vendor/google.golang.org/grpc/encoding github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/backoff github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/internal/impl github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/balancerload github.com/ubuntu/adsys/vendor/golang.org/x/sys/unix github.com/ubuntu/adsys/vendor/golang.org/x/net/trace github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/envconfig github.com/ubuntu/adsys/vendor/golang.org/x/text/transform github.com/ubuntu/adsys/vendor/golang.org/x/text/unicode/bidi github.com/ubuntu/adsys/vendor/golang.org/x/text/unicode/norm github.com/ubuntu/adsys/vendor/golang.org/x/text/secure/bidirule github.com/ubuntu/adsys/vendor/golang.org/x/net/http2/hpack github.com/ubuntu/adsys/vendor/golang.org/x/net/idna github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/syscall github.com/ubuntu/adsys/vendor/google.golang.org/grpc/keepalive github.com/ubuntu/adsys/vendor/golang.org/x/net/http/httpguts github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/internal/filetype github.com/ubuntu/adsys/vendor/google.golang.org/grpc/stats github.com/ubuntu/adsys/vendor/golang.org/x/net/http2 github.com/ubuntu/adsys/vendor/google.golang.org/grpc/tap net/http/httputil github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/runtime/protoimpl github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/types/descriptorpb github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/types/known/anypb github.com/ubuntu/adsys/vendor/github.com/golang/protobuf/ptypes/any github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/reflect/protodesc github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/types/known/durationpb github.com/ubuntu/adsys/vendor/github.com/golang/protobuf/ptypes/duration github.com/ubuntu/adsys/vendor/google.golang.org/protobuf/types/known/timestamppb github.com/ubuntu/adsys/vendor/github.com/golang/protobuf/ptypes/timestamp github.com/ubuntu/adsys/vendor/github.com/sirupsen/logrus github.com/ubuntu/adsys/vendor/github.com/golang/protobuf/proto github.com/ubuntu/adsys/vendor/github.com/dlclark/regexp2/syntax github.com/ubuntu/adsys/vendor/github.com/aymerick/douceur/css github.com/ubuntu/adsys/vendor/github.com/gorilla/css/scanner github.com/ubuntu/adsys/vendor/google.golang.org/grpc/credentials github.com/ubuntu/adsys/vendor/google.golang.org/grpc/encoding/proto github.com/ubuntu/adsys/vendor/google.golang.org/grpc/resolver github.com/ubuntu/adsys/vendor/github.com/golang/protobuf/ptypes github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal github.com/ubuntu/adsys/vendor/google.golang.org/grpc/balancer github.com/ubuntu/adsys/vendor/google.golang.org/grpc/binarylog/grpc_binarylog_v1 github.com/ubuntu/adsys/vendor/google.golang.org/grpc/balancer/base github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/grpcutil github.com/ubuntu/adsys/vendor/google.golang.org/grpc/balancer/roundrobin github.com/ubuntu/adsys/vendor/google.golang.org/genproto/googleapis/rpc/status github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/channelz github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/serviceconfig github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/resolver github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/status github.com/ubuntu/adsys/vendor/google.golang.org/grpc/balancer/grpclb/state github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/resolver/dns github.com/ubuntu/adsys/vendor/google.golang.org/grpc/status github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/resolver/passthrough github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/binarylog github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/transport/networktype github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/metadata github.com/ubuntu/adsys/vendor/google.golang.org/grpc/peer github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/resolver/unix github.com/ubuntu/adsys/vendor/github.com/dlclark/regexp2 github.com/ubuntu/adsys/vendor/google.golang.org/grpc/internal/transport github.com/ubuntu/adsys/vendor/github.com/aymerick/douceur/parser github.com/ubuntu/adsys/vendor/golang.org/x/net/html github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/formatters/html github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/formatters/svg github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/internal github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/formatters github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/a github.com/ubuntu/adsys/vendor/google.golang.org/grpc github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/b github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/p github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/j github.com/ubuntu/adsys github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/d github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/e github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/c github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/f github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/i github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/k github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/l github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/n github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/o github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/q github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/r github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/t github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/v github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/h github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/w github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/x github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/y github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/z github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/styles github.com/ubuntu/adsys/vendor/github.com/microcosm-cc/bluemonday github.com/ubuntu/adsys/vendor/github.com/mattn/go-runewidth github.com/ubuntu/adsys/vendor/github.com/muesli/reflow/ansi database/sql/driver github.com/ubuntu/adsys/vendor/github.com/muesli/reflow/indent github.com/ubuntu/adsys/vendor/github.com/muesli/reflow/padding github.com/ubuntu/adsys/vendor/github.com/muesli/reflow/wordwrap github.com/ubuntu/adsys/vendor/github.com/lucasb-eyer/go-colorful github.com/ubuntu/adsys/vendor/github.com/mattn/go-isatty encoding/csv github.com/ubuntu/adsys/vendor/github.com/yuin/goldmark/util github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/circular github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/g github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/m github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers/s github.com/ubuntu/adsys/vendor/github.com/muesli/termenv github.com/ubuntu/adsys/vendor/github.com/olekukonko/tablewriter github.com/ubuntu/adsys/vendor/github.com/mattn/go-colorable github.com/ubuntu/adsys/vendor/github.com/gomarkdown/markdown/ast github.com/ubuntu/adsys/vendor/github.com/fatih/color flag github.com/ubuntu/adsys/vendor/github.com/gomarkdown/markdown/parser github.com/ubuntu/adsys/vendor/github.com/spf13/pflag github.com/ubuntu/adsys/vendor/github.com/gomarkdown/markdown/html github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/lexers github.com/ubuntu/adsys/vendor/github.com/alecthomas/chroma/quick github.com/ubuntu/adsys/vendor/github.com/gomarkdown/markdown github.com/ubuntu/adsys/vendor/github.com/fsnotify/fsnotify github.com/ubuntu/adsys/vendor/github.com/hashicorp/hcl/hcl/strconv github.com/ubuntu/adsys/vendor/github.com/magiconair/properties github.com/ubuntu/adsys/vendor/github.com/hashicorp/hcl/hcl/token github.com/ubuntu/adsys/vendor/github.com/hashicorp/hcl/hcl/ast github.com/ubuntu/adsys/vendor/github.com/spf13/cobra github.com/ubuntu/adsys/vendor/github.com/hashicorp/hcl/hcl/scanner github.com/ubuntu/adsys/vendor/github.com/hashicorp/hcl/json/token github.com/ubuntu/adsys/vendor/github.com/hashicorp/hcl/hcl/parser github.com/ubuntu/adsys/vendor/github.com/hashicorp/hcl/json/scanner github.com/ubuntu/adsys/vendor/github.com/hashicorp/hcl/json/parser github.com/ubuntu/adsys/vendor/github.com/hashicorp/hcl/hcl/printer github.com/ubuntu/adsys/vendor/github.com/hashicorp/hcl github.com/ubuntu/adsys/vendor/github.com/mitchellh/mapstructure github.com/ubuntu/adsys/vendor/github.com/pelletier/go-toml github.com/ubuntu/adsys/vendor/github.com/spf13/afero/mem github.com/ubuntu/adsys/vendor/github.com/spf13/cast github.com/ubuntu/adsys/vendor/github.com/spf13/afero github.com/ubuntu/adsys/vendor/github.com/spf13/jwalterweatherman github.com/ubuntu/adsys/vendor/github.com/subosito/gotenv github.com/ubuntu/adsys/vendor/gopkg.in/ini.v1 github.com/ubuntu/adsys/vendor/gopkg.in/yaml.v2 embed github.com/ubuntu/adsys/doc os/exec os/user github.com/ubuntu/adsys/vendor/github.com/snapcore/go-gettext/pluralforms runtime/debug runtime/trace github.com/ubuntu/adsys/vendor/github.com/spf13/viper testing github.com/ubuntu/adsys/vendor/github.com/snapcore/go-gettext github.com/ubuntu/adsys/internal/consts github.com/ubuntu/adsys/vendor/github.com/coreos/go-systemd/activation github.com/ubuntu/adsys/internal/i18n github.com/ubuntu/adsys/vendor/github.com/coreos/go-systemd/daemon github.com/ubuntu/adsys/internal/grpc/logstreamer github.com/ubuntu/adsys/internal/grpc/connectionnotify github.com/ubuntu/adsys/internal/grpc/interceptorschain github.com/ubuntu/adsys/vendor/gopkg.in/yaml.v3 github.com/ubuntu/adsys/internal/decorate github.com/ubuntu/adsys/internal/daemon github.com/ubuntu/adsys/vendor/github.com/godbus/dbus/v5 github.com/ubuntu/adsys/internal/grpc/contextidler github.com/ubuntu/adsys/internal/grpc/logconnections github.com/ubuntu/adsys/internal/grpc/unixsocket github.com/ubuntu/adsys/internal/smbsafe github.com/ubuntu/adsys/internal/authorizer github.com/ubuntu/adsys/vendor/golang.org/x/sync/errgroup github.com/ubuntu/adsys/vendor/github.com/mvo5/libsmbclient-go github.com/ubuntu/adsys/internal/policies/entry github.com/ubuntu/adsys/internal/adsysservice/actions github.com/ubuntu/adsys/internal/policies/dconf github.com/ubuntu/adsys/internal/policies/ad/common github.com/ubuntu/adsys/internal/policies/ad/registry github.com/ubuntu/adsys/internal/policies/gdm github.com/ubuntu/adsys/internal/policies github.com/ubuntu/adsys/policies github.com/ubuntu/adsys/internal/stdforward github.com/ubuntu/adsys/internal/cmdhandler github.com/ubuntu/adsys/internal/config github.com/ubuntu/adsys/internal/grpc/grpcerror os/signal github.com/ubuntu/adsys/internal/generators github.com/ubuntu/adsys/internal/grpc/logstreamer/test github.com/ubuntu/adsys/internal/policies/ad/admxgen/common encoding/xml github.com/ubuntu/adsys/vendor/github.com/davecgh/go-spew/spew github.com/ubuntu/adsys/vendor/github.com/pmezard/go-difflib/difflib net/http/httptest github.com/ubuntu/adsys/internal/policies/ad/admxgen/dconf github.com/ubuntu/adsys/internal/policies/ad/admxgen github.com/ubuntu/adsys/vendor/github.com/stretchr/testify/assert github.com/ubuntu/adsys/internal/policies/ad github.com/ubuntu/adsys/internal/adsysservice github.com/ubuntu/adsys/vendor/github.com/stretchr/testify/require github.com/ubuntu/adsys/cmd/adsysd/daemon github.com/ubuntu/adsys/vendor/github.com/termie/go-shutil github.com/ubuntu/adsys/internal/testutils github.com/ubuntu/adsys/vendor/github.com/yuin/goldmark/text github.com/ubuntu/adsys/vendor/github.com/yuin/goldmark/ast github.com/ubuntu/adsys/vendor/github.com/yuin/goldmark-emoji/ast github.com/ubuntu/adsys/vendor/github.com/yuin/goldmark/extension/ast github.com/ubuntu/adsys/vendor/github.com/yuin/goldmark/renderer github.com/ubuntu/adsys/vendor/github.com/yuin/goldmark/parser github.com/ubuntu/adsys/vendor/github.com/yuin/goldmark/renderer/html github.com/ubuntu/adsys/vendor/github.com/charmbracelet/glamour/ansi github.com/ubuntu/adsys/vendor/github.com/yuin/goldmark github.com/ubuntu/adsys/vendor/github.com/yuin/goldmark-emoji github.com/ubuntu/adsys/vendor/github.com/yuin/goldmark/extension github.com/ubuntu/adsys/vendor/github.com/charmbracelet/glamour github.com/ubuntu/adsys/cmd/adsysd/client github.com/ubuntu/adsys/cmd/adsysd dh_auto_test -a -O--buildsystem=golang cd obj-s390x-linux-gnu && go test -vet=off -v -p 4 github.com/ubuntu/adsys github.com/ubuntu/adsys/cmd/adsysd github.com/ubuntu/adsys/cmd/adsysd/client github.com/ubuntu/adsys/cmd/adsysd/daemon github.com/ubuntu/adsys/cmd/integration_tests github.com/ubuntu/adsys/doc github.com/ubuntu/adsys/internal/adsysservice github.com/ubuntu/adsys/internal/adsysservice/actions github.com/ubuntu/adsys/internal/authorizer github.com/ubuntu/adsys/internal/cmdhandler github.com/ubuntu/adsys/internal/config github.com/ubuntu/adsys/internal/consts github.com/ubuntu/adsys/internal/daemon github.com/ubuntu/adsys/internal/decorate github.com/ubuntu/adsys/internal/generators github.com/ubuntu/adsys/internal/grpc/connectionnotify github.com/ubuntu/adsys/internal/grpc/contextidler github.com/ubuntu/adsys/internal/grpc/grpcerror github.com/ubuntu/adsys/internal/grpc/interceptorschain github.com/ubuntu/adsys/internal/grpc/logconnections github.com/ubuntu/adsys/internal/grpc/logstreamer github.com/ubuntu/adsys/internal/grpc/logstreamer/test github.com/ubuntu/adsys/internal/grpc/unixsocket github.com/ubuntu/adsys/internal/i18n github.com/ubuntu/adsys/internal/policies github.com/ubuntu/adsys/internal/policies/ad github.com/ubuntu/adsys/internal/policies/ad/admxgen github.com/ubuntu/adsys/internal/policies/ad/admxgen/common github.com/ubuntu/adsys/internal/policies/ad/admxgen/dconf github.com/ubuntu/adsys/internal/policies/ad/common github.com/ubuntu/adsys/internal/policies/ad/registry github.com/ubuntu/adsys/internal/policies/dconf github.com/ubuntu/adsys/internal/policies/entry github.com/ubuntu/adsys/internal/policies/gdm github.com/ubuntu/adsys/internal/smbsafe github.com/ubuntu/adsys/internal/stdforward github.com/ubuntu/adsys/internal/testutils github.com/ubuntu/adsys/policies ? github.com/ubuntu/adsys [no test files] === RUN TestRun === PAUSE TestRun === CONT TestRun === RUN TestRun/Send_SIGINT_exits === RUN TestRun/Send_SIGTERM_exits === RUN TestRun/Send_SIGHUP_without_exiting === RUN TestRun/Send_SIGHUP_with_exit === RUN TestRun/Run_and_exit_successfully === RUN TestRun/Run_and_return_error level=error msg="Error requested" === RUN TestRun/Run_and_return_usage_error level=error msg="Error requested" === RUN TestRun/Run_and_usage_error_only_does_not_fail --- PASS: TestRun (0.86s) --- PASS: TestRun/Send_SIGINT_exits (0.10s) --- PASS: TestRun/Send_SIGTERM_exits (0.11s) --- PASS: TestRun/Send_SIGHUP_without_exiting (0.15s) --- PASS: TestRun/Send_SIGHUP_with_exit (0.10s) --- PASS: TestRun/Run_and_exit_successfully (0.10s) --- PASS: TestRun/Run_and_return_error (0.10s) --- PASS: TestRun/Run_and_return_usage_error (0.10s) --- PASS: TestRun/Run_and_usage_error_only_does_not_fail (0.10s) PASS ok github.com/ubuntu/adsys/cmd/adsysd 0.929s === RUN TestColorizePolicies --- PASS: TestColorizePolicies (0.00s) === RUN TestInitApp === PAUSE TestInitApp === RUN TestAppHelp Active Directory integration bridging toolset command line tool. Usage: adsysctl COMMAND [flags] adsysctl [command] Available Commands: applied Print last applied GPOs for current or given user/machine completion Generates bash completion scripts doc Documentation help Help about any command policy Policy management service Service management update Updates/Create a policy for current user or given user with its kerberos ticket version Returns version of client and service Flags: -c, --config string use a specific configuration file -h, --help help for adsysctl -s, --socket string socket path to use between daemon and client. Can be overridden by systemd socket activation. (default "/run/adsysd.sock") -t, --timeout int time in seconds before cancelling the client request when the server gives no result. 0 for no timeout. (default 30) -v, --verbose count issue INFO (-v), DEBUG (-vv) or DEBUG with caller (-vvv) output Use "adsysctl [command] --help" for more information about a command. --- PASS: TestAppHelp (0.01s) === RUN TestAppCompletion # bash completion for adsysctl -*- shell-script -*- __adsysctl_debug() { if [[ -n ${BASH_COMP_DEBUG_FILE} ]]; then echo "$*" >> "${BASH_COMP_DEBUG_FILE}" fi } # Homebrew on Macs have version 1.3 of bash-completion which doesn't include # _init_completion. This is a very minimal version of that function. __adsysctl_init_completion() { COMPREPLY=() _get_comp_words_by_ref "$@" cur prev words cword } __adsysctl_index_of_word() { local w word=$1 shift index=0 for w in "$@"; do [[ $w = "$word" ]] && return index=$((index+1)) done index=-1 } __adsysctl_contains_word() { local w word=$1; shift for w in "$@"; do [[ $w = "$word" ]] && return done return 1 } __adsysctl_handle_go_custom_completion() { __adsysctl_debug "${FUNCNAME[0]}: cur is ${cur}, words[*] is ${words[*]}, #words[@] is ${#words[@]}" local shellCompDirectiveError=1 local shellCompDirectiveNoSpace=2 local shellCompDirectiveNoFileComp=4 local shellCompDirectiveFilterFileExt=8 local shellCompDirectiveFilterDirs=16 local out requestComp lastParam lastChar comp directive args # Prepare the command to request completions for the program. # Calling ${words[0]} instead of directly adsysctl allows to handle aliases args=("${words[@]:1}") requestComp="${words[0]} __completeNoDesc ${args[*]}" lastParam=${words[$((${#words[@]}-1))]} lastChar=${lastParam:$((${#lastParam}-1)):1} __adsysctl_debug "${FUNCNAME[0]}: lastParam ${lastParam}, lastChar ${lastChar}" if [ -z "${cur}" ] && [ "${lastChar}" != "=" ]; then # If the last parameter is complete (there is a space following it) # We add an extra empty parameter so we can indicate this to the go method. __adsysctl_debug "${FUNCNAME[0]}: Adding extra empty parameter" requestComp="${requestComp} \"\"" fi __adsysctl_debug "${FUNCNAME[0]}: calling ${requestComp}" # Use eval to handle any environment variables and such out=$(eval "${requestComp}" 2>/dev/null) # Extract the directive integer at the very end of the output following a colon (:) directive=${out##*:} # Remove the directive out=${out%:*} if [ "${directive}" = "${out}" ]; then # There is not directive specified directive=0 fi __adsysctl_debug "${FUNCNAME[0]}: the completion directive is: ${directive}" __adsysctl_debug "${FUNCNAME[0]}: the completions are: ${out[*]}" if [ $((directive & shellCompDirectiveError)) -ne 0 ]; then # Error code. No completion. __adsysctl_debug "${FUNCNAME[0]}: received error from custom completion go code" return else if [ $((directive & shellCompDirectiveNoSpace)) -ne 0 ]; then if [[ $(type -t compopt) = "builtin" ]]; then __adsysctl_debug "${FUNCNAME[0]}: activating no space" compopt -o nospace fi fi if [ $((directive & shellCompDirectiveNoFileComp)) -ne 0 ]; then if [[ $(type -t compopt) = "builtin" ]]; then __adsysctl_debug "${FUNCNAME[0]}: activating no file completion" compopt +o default fi fi fi if [ $((directive & shellCompDirectiveFilterFileExt)) -ne 0 ]; then # File extension filtering local fullFilter filter filteringCmd # Do not use quotes around the $out variable or else newline # characters will be kept. for filter in ${out[*]}; do fullFilter+="$filter|" done filteringCmd="_filedir $fullFilter" __adsysctl_debug "File filtering command: $filteringCmd" $filteringCmd elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then # File completion for directories only local subDir # Use printf to strip any trailing newline subdir=$(printf "%s" "${out[0]}") if [ -n "$subdir" ]; then __adsysctl_debug "Listing directories in $subdir" __adsysctl_handle_subdirs_in_dir_flag "$subdir" else __adsysctl_debug "Listing directories in ." _filedir -d fi else while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${out[*]}" -- "$cur") fi } __adsysctl_handle_reply() { __adsysctl_debug "${FUNCNAME[0]}" local comp case $cur in -*) if [[ $(type -t compopt) = "builtin" ]]; then compopt -o nospace fi local allflags if [ ${#must_have_one_flag[@]} -ne 0 ]; then allflags=("${must_have_one_flag[@]}") else allflags=("${flags[*]} ${two_word_flags[*]}") fi while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${allflags[*]}" -- "$cur") if [[ $(type -t compopt) = "builtin" ]]; then [[ "${COMPREPLY[0]}" == *= ]] || compopt +o nospace fi # complete after --flag=abc if [[ $cur == *=* ]]; then if [[ $(type -t compopt) = "builtin" ]]; then compopt +o nospace fi local index flag flag="${cur%=*}" __adsysctl_index_of_word "${flag}" "${flags_with_completion[@]}" COMPREPLY=() if [[ ${index} -ge 0 ]]; then PREFIX="" cur="${cur#*=}" ${flags_completion[${index}]} if [ -n "${ZSH_VERSION}" ]; then # zsh completion needs --flag= prefix eval "COMPREPLY=( \"\${COMPREPLY[@]/#/${flag}=}\" )" fi fi fi return 0; ;; esac # check if we are handling a flag with special work handling local index __adsysctl_index_of_word "${prev}" "${flags_with_completion[@]}" if [[ ${index} -ge 0 ]]; then ${flags_completion[${index}]} return fi # we are parsing a flag and don't have a special handler, no completion if [[ ${cur} != "${words[cword]}" ]]; then return fi local completions completions=("${commands[@]}") if [[ ${#must_have_one_noun[@]} -ne 0 ]]; then completions+=("${must_have_one_noun[@]}") elif [[ -n "${has_completion_function}" ]]; then # if a go completion function is provided, defer to that function __adsysctl_handle_go_custom_completion fi if [[ ${#must_have_one_flag[@]} -ne 0 ]]; then completions+=("${must_have_one_flag[@]}") fi while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${completions[*]}" -- "$cur") if [[ ${#COMPREPLY[@]} -eq 0 && ${#noun_aliases[@]} -gt 0 && ${#must_have_one_noun[@]} -ne 0 ]]; then while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${noun_aliases[*]}" -- "$cur") fi if [[ ${#COMPREPLY[@]} -eq 0 ]]; then if declare -F __adsysctl_custom_func >/dev/null; then # try command name qualified custom func __adsysctl_custom_func else # otherwise fall back to unqualified for compatibility declare -F __custom_func >/dev/null && __custom_func fi fi # available in bash-completion >= 2, not always present on macOS if declare -F __ltrim_colon_completions >/dev/null; then __ltrim_colon_completions "$cur" fi # If there is only 1 completion and it is a flag with an = it will be completed # but we don't want a space after the = if [[ "${#COMPREPLY[@]}" -eq "1" ]] && [[ $(type -t compopt) = "builtin" ]] && [[ "${COMPREPLY[0]}" == --*= ]]; then compopt -o nospace fi } # The arguments should be in the form "ext1|ext2|extn" __adsysctl_handle_filename_extension_flag() { local ext="$1" _filedir "@(${ext})" } __adsysctl_handle_subdirs_in_dir_flag() { local dir="$1" pushd "${dir}" >/dev/null 2>&1 && _filedir -d && popd >/dev/null 2>&1 || return } __adsysctl_handle_flag() { __adsysctl_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" # if a command required a flag, and we found it, unset must_have_one_flag() local flagname=${words[c]} local flagvalue # if the word contained an = if [[ ${words[c]} == *"="* ]]; then flagvalue=${flagname#*=} # take in as flagvalue after the = flagname=${flagname%=*} # strip everything after the = flagname="${flagname}=" # but put the = back fi __adsysctl_debug "${FUNCNAME[0]}: looking for ${flagname}" if __adsysctl_contains_word "${flagname}" "${must_have_one_flag[@]}"; then must_have_one_flag=() fi # if you set a flag which only applies to this command, don't show subcommands if __adsysctl_contains_word "${flagname}" "${local_nonpersistent_flags[@]}"; then commands=() fi # keep flag value with flagname as flaghash # flaghash variable is an associative array which is only supported in bash > 3. if [[ -z "${BASH_VERSION}" || "${BASH_VERSINFO[0]}" -gt 3 ]]; then if [ -n "${flagvalue}" ] ; then flaghash[${flagname}]=${flagvalue} elif [ -n "${words[ $((c+1)) ]}" ] ; then flaghash[${flagname}]=${words[ $((c+1)) ]} else flaghash[${flagname}]="true" # pad "true" for bool flag fi fi # skip the argument to a two word flag if [[ ${words[c]} != *"="* ]] && __adsysctl_contains_word "${words[c]}" "${two_word_flags[@]}"; then __adsysctl_debug "${FUNCNAME[0]}: found a flag ${words[c]}, skip the next argument" c=$((c+1)) # if we are looking for a flags value, don't show commands if [[ $c -eq $cword ]]; then commands=() fi fi c=$((c+1)) } __adsysctl_handle_noun() { __adsysctl_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" if __adsysctl_contains_word "${words[c]}" "${must_have_one_noun[@]}"; then must_have_one_noun=() elif __adsysctl_contains_word "${words[c]}" "${noun_aliases[@]}"; then must_have_one_noun=() fi nouns+=("${words[c]}") c=$((c+1)) } __adsysctl_handle_command() { __adsysctl_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" local next_command if [[ -n ${last_command} ]]; then next_command="_${last_command}_${words[c]//:/__}" else if [[ $c -eq 0 ]]; then next_command="_adsysctl_root_command" else next_command="_${words[c]//:/__}" fi fi c=$((c+1)) __adsysctl_debug "${FUNCNAME[0]}: looking for ${next_command}" declare -F "$next_command" >/dev/null && $next_command } __adsysctl_handle_word() { if [[ $c -ge $cword ]]; then __adsysctl_handle_reply return fi __adsysctl_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" if [[ "${words[c]}" == -* ]]; then __adsysctl_handle_flag elif __adsysctl_contains_word "${words[c]}" "${commands[@]}"; then __adsysctl_handle_command elif [[ $c -eq 0 ]]; then __adsysctl_handle_command elif __adsysctl_contains_word "${words[c]}" "${command_aliases[@]}"; then # aliashash variable is an associative array which is only supported in bash > 3. if [[ -z "${BASH_VERSION}" || "${BASH_VERSINFO[0]}" -gt 3 ]]; then words[c]=${aliashash[${words[c]}]} __adsysctl_handle_command else __adsysctl_handle_noun fi else __adsysctl_handle_noun fi __adsysctl_handle_word } _adsysctl_applied() { last_command="adsysctl_applied" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("-a") local_nonpersistent_flags+=("--all") local_nonpersistent_flags+=("-a") flags+=("--details") local_nonpersistent_flags+=("--details") flags+=("--no-color") local_nonpersistent_flags+=("--no-color") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_completion() { last_command="adsysctl_completion" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--help") flags+=("-h") local_nonpersistent_flags+=("--help") local_nonpersistent_flags+=("-h") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_doc() { last_command="adsysctl_doc" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--dest=") two_word_flags+=("--dest") two_word_flags+=("-d") local_nonpersistent_flags+=("--dest") local_nonpersistent_flags+=("--dest=") local_nonpersistent_flags+=("-d") flags+=("--format=") two_word_flags+=("--format") two_word_flags+=("-f") local_nonpersistent_flags+=("--format") local_nonpersistent_flags+=("--format=") local_nonpersistent_flags+=("-f") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_help() { last_command="adsysctl_help" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_policy_admx() { last_command="adsysctl_policy_admx" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--distro=") two_word_flags+=("--distro") local_nonpersistent_flags+=("--distro") local_nonpersistent_flags+=("--distro=") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_policy_applied() { last_command="adsysctl_policy_applied" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("-a") local_nonpersistent_flags+=("--all") local_nonpersistent_flags+=("-a") flags+=("--details") local_nonpersistent_flags+=("--details") flags+=("--no-color") local_nonpersistent_flags+=("--no-color") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_policy_update() { last_command="adsysctl_policy_update" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("-a") local_nonpersistent_flags+=("--all") local_nonpersistent_flags+=("-a") flags+=("--machine") flags+=("-m") local_nonpersistent_flags+=("--machine") local_nonpersistent_flags+=("-m") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_policy() { last_command="adsysctl_policy" command_aliases=() commands=() commands+=("admx") commands+=("applied") commands+=("update") flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() noun_aliases=() } _adsysctl_service_cat() { last_command="adsysctl_service_cat" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_service_status() { last_command="adsysctl_service_status" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_service_stop() { last_command="adsysctl_service_stop" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--force") flags+=("-f") local_nonpersistent_flags+=("--force") local_nonpersistent_flags+=("-f") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_service() { last_command="adsysctl_service" command_aliases=() commands=() commands+=("cat") commands+=("status") commands+=("stop") flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() noun_aliases=() } _adsysctl_update() { last_command="adsysctl_update" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("-a") local_nonpersistent_flags+=("--all") local_nonpersistent_flags+=("-a") flags+=("--machine") flags+=("-m") local_nonpersistent_flags+=("--machine") local_nonpersistent_flags+=("-m") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_version() { last_command="adsysctl_version" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_root_command() { last_command="adsysctl" command_aliases=() commands=() commands+=("applied") commands+=("completion") commands+=("doc") commands+=("help") commands+=("policy") commands+=("service") commands+=("update") commands+=("version") flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() noun_aliases=() } __start_adsysctl() { local cur prev words cword declare -A flaghash 2>/dev/null || : declare -A aliashash 2>/dev/null || : if declare -F _init_completion >/dev/null 2>&1; then _init_completion -s || return else __adsysctl_init_completion -n "=" || return fi local c=0 local flags=() local two_word_flags=() local local_nonpersistent_flags=() local flags_with_completion=() local flags_completion=() local commands=("adsysctl") local must_have_one_flag=() local must_have_one_noun=() local has_completion_function local last_command local nouns=() __adsysctl_handle_word } if [[ $(type -t compopt) = "builtin" ]]; then complete -o default -F __start_adsysctl adsysctl else complete -o default -o nospace -F __start_adsysctl adsysctl fi # ex: ts=4 sw=4 et filetype=sh --- PASS: TestAppCompletion (0.00s) === RUN TestAppNoUsageError # bash completion for adsysctl -*- shell-script -*- __adsysctl_debug() { if [[ -n ${BASH_COMP_DEBUG_FILE} ]]; then echo "$*" >> "${BASH_COMP_DEBUG_FILE}" fi } # Homebrew on Macs have version 1.3 of bash-completion which doesn't include # _init_completion. This is a very minimal version of that function. __adsysctl_init_completion() { COMPREPLY=() _get_comp_words_by_ref "$@" cur prev words cword } __adsysctl_index_of_word() { local w word=$1 shift index=0 for w in "$@"; do [[ $w = "$word" ]] && return index=$((index+1)) done index=-1 } __adsysctl_contains_word() { local w word=$1; shift for w in "$@"; do [[ $w = "$word" ]] && return done return 1 } __adsysctl_handle_go_custom_completion() { __adsysctl_debug "${FUNCNAME[0]}: cur is ${cur}, words[*] is ${words[*]}, #words[@] is ${#words[@]}" local shellCompDirectiveError=1 local shellCompDirectiveNoSpace=2 local shellCompDirectiveNoFileComp=4 local shellCompDirectiveFilterFileExt=8 local shellCompDirectiveFilterDirs=16 local out requestComp lastParam lastChar comp directive args # Prepare the command to request completions for the program. # Calling ${words[0]} instead of directly adsysctl allows to handle aliases args=("${words[@]:1}") requestComp="${words[0]} __completeNoDesc ${args[*]}" lastParam=${words[$((${#words[@]}-1))]} lastChar=${lastParam:$((${#lastParam}-1)):1} __adsysctl_debug "${FUNCNAME[0]}: lastParam ${lastParam}, lastChar ${lastChar}" if [ -z "${cur}" ] && [ "${lastChar}" != "=" ]; then # If the last parameter is complete (there is a space following it) # We add an extra empty parameter so we can indicate this to the go method. __adsysctl_debug "${FUNCNAME[0]}: Adding extra empty parameter" requestComp="${requestComp} \"\"" fi __adsysctl_debug "${FUNCNAME[0]}: calling ${requestComp}" # Use eval to handle any environment variables and such out=$(eval "${requestComp}" 2>/dev/null) # Extract the directive integer at the very end of the output following a colon (:) directive=${out##*:} # Remove the directive out=${out%:*} if [ "${directive}" = "${out}" ]; then # There is not directive specified directive=0 fi __adsysctl_debug "${FUNCNAME[0]}: the completion directive is: ${directive}" __adsysctl_debug "${FUNCNAME[0]}: the completions are: ${out[*]}" if [ $((directive & shellCompDirectiveError)) -ne 0 ]; then # Error code. No completion. __adsysctl_debug "${FUNCNAME[0]}: received error from custom completion go code" return else if [ $((directive & shellCompDirectiveNoSpace)) -ne 0 ]; then if [[ $(type -t compopt) = "builtin" ]]; then __adsysctl_debug "${FUNCNAME[0]}: activating no space" compopt -o nospace fi fi if [ $((directive & shellCompDirectiveNoFileComp)) -ne 0 ]; then if [[ $(type -t compopt) = "builtin" ]]; then __adsysctl_debug "${FUNCNAME[0]}: activating no file completion" compopt +o default fi fi fi if [ $((directive & shellCompDirectiveFilterFileExt)) -ne 0 ]; then # File extension filtering local fullFilter filter filteringCmd # Do not use quotes around the $out variable or else newline # characters will be kept. for filter in ${out[*]}; do fullFilter+="$filter|" done filteringCmd="_filedir $fullFilter" __adsysctl_debug "File filtering command: $filteringCmd" $filteringCmd elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then # File completion for directories only local subDir # Use printf to strip any trailing newline subdir=$(printf "%s" "${out[0]}") if [ -n "$subdir" ]; then __adsysctl_debug "Listing directories in $subdir" __adsysctl_handle_subdirs_in_dir_flag "$subdir" else __adsysctl_debug "Listing directories in ." _filedir -d fi else while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${out[*]}" -- "$cur") fi } __adsysctl_handle_reply() { __adsysctl_debug "${FUNCNAME[0]}" local comp case $cur in -*) if [[ $(type -t compopt) = "builtin" ]]; then compopt -o nospace fi local allflags if [ ${#must_have_one_flag[@]} -ne 0 ]; then allflags=("${must_have_one_flag[@]}") else allflags=("${flags[*]} ${two_word_flags[*]}") fi while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${allflags[*]}" -- "$cur") if [[ $(type -t compopt) = "builtin" ]]; then [[ "${COMPREPLY[0]}" == *= ]] || compopt +o nospace fi # complete after --flag=abc if [[ $cur == *=* ]]; then if [[ $(type -t compopt) = "builtin" ]]; then compopt +o nospace fi local index flag flag="${cur%=*}" __adsysctl_index_of_word "${flag}" "${flags_with_completion[@]}" COMPREPLY=() if [[ ${index} -ge 0 ]]; then PREFIX="" cur="${cur#*=}" ${flags_completion[${index}]} if [ -n "${ZSH_VERSION}" ]; then # zsh completion needs --flag= prefix eval "COMPREPLY=( \"\${COMPREPLY[@]/#/${flag}=}\" )" fi fi fi return 0; ;; esac # check if we are handling a flag with special work handling local index __adsysctl_index_of_word "${prev}" "${flags_with_completion[@]}" if [[ ${index} -ge 0 ]]; then ${flags_completion[${index}]} return fi # we are parsing a flag and don't have a special handler, no completion if [[ ${cur} != "${words[cword]}" ]]; then return fi local completions completions=("${commands[@]}") if [[ ${#must_have_one_noun[@]} -ne 0 ]]; then completions+=("${must_have_one_noun[@]}") elif [[ -n "${has_completion_function}" ]]; then # if a go completion function is provided, defer to that function __adsysctl_handle_go_custom_completion fi if [[ ${#must_have_one_flag[@]} -ne 0 ]]; then completions+=("${must_have_one_flag[@]}") fi while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${completions[*]}" -- "$cur") if [[ ${#COMPREPLY[@]} -eq 0 && ${#noun_aliases[@]} -gt 0 && ${#must_have_one_noun[@]} -ne 0 ]]; then while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${noun_aliases[*]}" -- "$cur") fi if [[ ${#COMPREPLY[@]} -eq 0 ]]; then if declare -F __adsysctl_custom_func >/dev/null; then # try command name qualified custom func __adsysctl_custom_func else # otherwise fall back to unqualified for compatibility declare -F __custom_func >/dev/null && __custom_func fi fi # available in bash-completion >= 2, not always present on macOS if declare -F __ltrim_colon_completions >/dev/null; then __ltrim_colon_completions "$cur" fi # If there is only 1 completion and it is a flag with an = it will be completed # but we don't want a space after the = if [[ "${#COMPREPLY[@]}" -eq "1" ]] && [[ $(type -t compopt) = "builtin" ]] && [[ "${COMPREPLY[0]}" == --*= ]]; then compopt -o nospace fi } # The arguments should be in the form "ext1|ext2|extn" __adsysctl_handle_filename_extension_flag() { local ext="$1" _filedir "@(${ext})" } __adsysctl_handle_subdirs_in_dir_flag() { local dir="$1" pushd "${dir}" >/dev/null 2>&1 && _filedir -d && popd >/dev/null 2>&1 || return } __adsysctl_handle_flag() { __adsysctl_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" # if a command required a flag, and we found it, unset must_have_one_flag() local flagname=${words[c]} local flagvalue # if the word contained an = if [[ ${words[c]} == *"="* ]]; then flagvalue=${flagname#*=} # take in as flagvalue after the = flagname=${flagname%=*} # strip everything after the = flagname="${flagname}=" # but put the = back fi __adsysctl_debug "${FUNCNAME[0]}: looking for ${flagname}" if __adsysctl_contains_word "${flagname}" "${must_have_one_flag[@]}"; then must_have_one_flag=() fi # if you set a flag which only applies to this command, don't show subcommands if __adsysctl_contains_word "${flagname}" "${local_nonpersistent_flags[@]}"; then commands=() fi # keep flag value with flagname as flaghash # flaghash variable is an associative array which is only supported in bash > 3. if [[ -z "${BASH_VERSION}" || "${BASH_VERSINFO[0]}" -gt 3 ]]; then if [ -n "${flagvalue}" ] ; then flaghash[${flagname}]=${flagvalue} elif [ -n "${words[ $((c+1)) ]}" ] ; then flaghash[${flagname}]=${words[ $((c+1)) ]} else flaghash[${flagname}]="true" # pad "true" for bool flag fi fi # skip the argument to a two word flag if [[ ${words[c]} != *"="* ]] && __adsysctl_contains_word "${words[c]}" "${two_word_flags[@]}"; then __adsysctl_debug "${FUNCNAME[0]}: found a flag ${words[c]}, skip the next argument" c=$((c+1)) # if we are looking for a flags value, don't show commands if [[ $c -eq $cword ]]; then commands=() fi fi c=$((c+1)) } __adsysctl_handle_noun() { __adsysctl_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" if __adsysctl_contains_word "${words[c]}" "${must_have_one_noun[@]}"; then must_have_one_noun=() elif __adsysctl_contains_word "${words[c]}" "${noun_aliases[@]}"; then must_have_one_noun=() fi nouns+=("${words[c]}") c=$((c+1)) } __adsysctl_handle_command() { __adsysctl_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" local next_command if [[ -n ${last_command} ]]; then next_command="_${last_command}_${words[c]//:/__}" else if [[ $c -eq 0 ]]; then next_command="_adsysctl_root_command" else next_command="_${words[c]//:/__}" fi fi c=$((c+1)) __adsysctl_debug "${FUNCNAME[0]}: looking for ${next_command}" declare -F "$next_command" >/dev/null && $next_command } __adsysctl_handle_word() { if [[ $c -ge $cword ]]; then __adsysctl_handle_reply return fi __adsysctl_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" if [[ "${words[c]}" == -* ]]; then __adsysctl_handle_flag elif __adsysctl_contains_word "${words[c]}" "${commands[@]}"; then __adsysctl_handle_command elif [[ $c -eq 0 ]]; then __adsysctl_handle_command elif __adsysctl_contains_word "${words[c]}" "${command_aliases[@]}"; then # aliashash variable is an associative array which is only supported in bash > 3. if [[ -z "${BASH_VERSION}" || "${BASH_VERSINFO[0]}" -gt 3 ]]; then words[c]=${aliashash[${words[c]}]} __adsysctl_handle_command else __adsysctl_handle_noun fi else __adsysctl_handle_noun fi __adsysctl_handle_word } _adsysctl_applied() { last_command="adsysctl_applied" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("-a") local_nonpersistent_flags+=("--all") local_nonpersistent_flags+=("-a") flags+=("--details") local_nonpersistent_flags+=("--details") flags+=("--no-color") local_nonpersistent_flags+=("--no-color") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_completion() { last_command="adsysctl_completion" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--help") flags+=("-h") local_nonpersistent_flags+=("--help") local_nonpersistent_flags+=("-h") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_doc() { last_command="adsysctl_doc" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--dest=") two_word_flags+=("--dest") two_word_flags+=("-d") local_nonpersistent_flags+=("--dest") local_nonpersistent_flags+=("--dest=") local_nonpersistent_flags+=("-d") flags+=("--format=") two_word_flags+=("--format") two_word_flags+=("-f") local_nonpersistent_flags+=("--format") local_nonpersistent_flags+=("--format=") local_nonpersistent_flags+=("-f") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_help() { last_command="adsysctl_help" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_policy_admx() { last_command="adsysctl_policy_admx" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--distro=") two_word_flags+=("--distro") local_nonpersistent_flags+=("--distro") local_nonpersistent_flags+=("--distro=") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_policy_applied() { last_command="adsysctl_policy_applied" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("-a") local_nonpersistent_flags+=("--all") local_nonpersistent_flags+=("-a") flags+=("--details") local_nonpersistent_flags+=("--details") flags+=("--no-color") local_nonpersistent_flags+=("--no-color") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_policy_update() { last_command="adsysctl_policy_update" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("-a") local_nonpersistent_flags+=("--all") local_nonpersistent_flags+=("-a") flags+=("--machine") flags+=("-m") local_nonpersistent_flags+=("--machine") local_nonpersistent_flags+=("-m") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_policy() { last_command="adsysctl_policy" command_aliases=() commands=() commands+=("admx") commands+=("applied") commands+=("update") flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() noun_aliases=() } _adsysctl_service_cat() { last_command="adsysctl_service_cat" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_service_status() { last_command="adsysctl_service_status" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_service_stop() { last_command="adsysctl_service_stop" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--force") flags+=("-f") local_nonpersistent_flags+=("--force") local_nonpersistent_flags+=("-f") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_service() { last_command="adsysctl_service" command_aliases=() commands=() commands+=("cat") commands+=("status") commands+=("stop") flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() noun_aliases=() } _adsysctl_update() { last_command="adsysctl_update" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("-a") local_nonpersistent_flags+=("--all") local_nonpersistent_flags+=("-a") flags+=("--machine") flags+=("-m") local_nonpersistent_flags+=("--machine") local_nonpersistent_flags+=("-m") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_version() { last_command="adsysctl_version" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_root_command() { last_command="adsysctl" command_aliases=() commands=() commands+=("applied") commands+=("completion") commands+=("doc") commands+=("help") commands+=("policy") commands+=("service") commands+=("update") commands+=("version") flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() noun_aliases=() } __start_adsysctl() { local cur prev words cword declare -A flaghash 2>/dev/null || : declare -A aliashash 2>/dev/null || : if declare -F _init_completion >/dev/null 2>&1; then _init_completion -s || return else __adsysctl_init_completion -n "=" || return fi local c=0 local flags=() local two_word_flags=() local local_nonpersistent_flags=() local flags_with_completion=() local flags_completion=() local commands=("adsysctl") local must_have_one_flag=() local must_have_one_noun=() local has_completion_function local last_command local nouns=() __adsysctl_handle_word } if [[ $(type -t compopt) = "builtin" ]]; then complete -o default -F __start_adsysctl adsysctl else complete -o default -o nospace -F __start_adsysctl adsysctl fi # ex: ts=4 sw=4 et filetype=sh --- PASS: TestAppNoUsageError (0.00s) === RUN TestAppUsageError Usage: adsysctl COMMAND [flags] adsysctl [command] Available Commands: applied Print last applied GPOs for current or given user/machine completion Generates bash completion scripts doc Documentation help Help about any command policy Policy management service Service management update Updates/Create a policy for current user or given user with its kerberos ticket version Returns version of client and service Flags: -c, --config string use a specific configuration file -h, --help help for adsysctl -s, --socket string socket path to use between daemon and client. Can be overridden by systemd socket activation. (default "/run/adsysd.sock") -t, --timeout int time in seconds before cancelling the client request when the server gives no result. 0 for no timeout. (default 30) -v, --verbose count issue INFO (-v), DEBUG (-vv) or DEBUG with caller (-vvv) output Use "adsysctl [command] --help" for more information about a command. --- PASS: TestAppUsageError (0.00s) === RUN TestAppCanQuitWhenExecute --- PASS: TestAppCanQuitWhenExecute (0.00s) === RUN TestAppCanQuitAfterExecute # bash completion for adsysctl -*- shell-script -*- __adsysctl_debug() { if [[ -n ${BASH_COMP_DEBUG_FILE} ]]; then echo "$*" >> "${BASH_COMP_DEBUG_FILE}" fi } # Homebrew on Macs have version 1.3 of bash-completion which doesn't include # _init_completion. This is a very minimal version of that function. __adsysctl_init_completion() { COMPREPLY=() _get_comp_words_by_ref "$@" cur prev words cword } __adsysctl_index_of_word() { local w word=$1 shift index=0 for w in "$@"; do [[ $w = "$word" ]] && return index=$((index+1)) done index=-1 } __adsysctl_contains_word() { local w word=$1; shift for w in "$@"; do [[ $w = "$word" ]] && return done return 1 } __adsysctl_handle_go_custom_completion() { __adsysctl_debug "${FUNCNAME[0]}: cur is ${cur}, words[*] is ${words[*]}, #words[@] is ${#words[@]}" local shellCompDirectiveError=1 local shellCompDirectiveNoSpace=2 local shellCompDirectiveNoFileComp=4 local shellCompDirectiveFilterFileExt=8 local shellCompDirectiveFilterDirs=16 local out requestComp lastParam lastChar comp directive args # Prepare the command to request completions for the program. # Calling ${words[0]} instead of directly adsysctl allows to handle aliases args=("${words[@]:1}") requestComp="${words[0]} __completeNoDesc ${args[*]}" lastParam=${words[$((${#words[@]}-1))]} lastChar=${lastParam:$((${#lastParam}-1)):1} __adsysctl_debug "${FUNCNAME[0]}: lastParam ${lastParam}, lastChar ${lastChar}" if [ -z "${cur}" ] && [ "${lastChar}" != "=" ]; then # If the last parameter is complete (there is a space following it) # We add an extra empty parameter so we can indicate this to the go method. __adsysctl_debug "${FUNCNAME[0]}: Adding extra empty parameter" requestComp="${requestComp} \"\"" fi __adsysctl_debug "${FUNCNAME[0]}: calling ${requestComp}" # Use eval to handle any environment variables and such out=$(eval "${requestComp}" 2>/dev/null) # Extract the directive integer at the very end of the output following a colon (:) directive=${out##*:} # Remove the directive out=${out%:*} if [ "${directive}" = "${out}" ]; then # There is not directive specified directive=0 fi __adsysctl_debug "${FUNCNAME[0]}: the completion directive is: ${directive}" __adsysctl_debug "${FUNCNAME[0]}: the completions are: ${out[*]}" if [ $((directive & shellCompDirectiveError)) -ne 0 ]; then # Error code. No completion. __adsysctl_debug "${FUNCNAME[0]}: received error from custom completion go code" return else if [ $((directive & shellCompDirectiveNoSpace)) -ne 0 ]; then if [[ $(type -t compopt) = "builtin" ]]; then __adsysctl_debug "${FUNCNAME[0]}: activating no space" compopt -o nospace fi fi if [ $((directive & shellCompDirectiveNoFileComp)) -ne 0 ]; then if [[ $(type -t compopt) = "builtin" ]]; then __adsysctl_debug "${FUNCNAME[0]}: activating no file completion" compopt +o default fi fi fi if [ $((directive & shellCompDirectiveFilterFileExt)) -ne 0 ]; then # File extension filtering local fullFilter filter filteringCmd # Do not use quotes around the $out variable or else newline # characters will be kept. for filter in ${out[*]}; do fullFilter+="$filter|" done filteringCmd="_filedir $fullFilter" __adsysctl_debug "File filtering command: $filteringCmd" $filteringCmd elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then # File completion for directories only local subDir # Use printf to strip any trailing newline subdir=$(printf "%s" "${out[0]}") if [ -n "$subdir" ]; then __adsysctl_debug "Listing directories in $subdir" __adsysctl_handle_subdirs_in_dir_flag "$subdir" else __adsysctl_debug "Listing directories in ." _filedir -d fi else while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${out[*]}" -- "$cur") fi } __adsysctl_handle_reply() { __adsysctl_debug "${FUNCNAME[0]}" local comp case $cur in -*) if [[ $(type -t compopt) = "builtin" ]]; then compopt -o nospace fi local allflags if [ ${#must_have_one_flag[@]} -ne 0 ]; then allflags=("${must_have_one_flag[@]}") else allflags=("${flags[*]} ${two_word_flags[*]}") fi while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${allflags[*]}" -- "$cur") if [[ $(type -t compopt) = "builtin" ]]; then [[ "${COMPREPLY[0]}" == *= ]] || compopt +o nospace fi # complete after --flag=abc if [[ $cur == *=* ]]; then if [[ $(type -t compopt) = "builtin" ]]; then compopt +o nospace fi local index flag flag="${cur%=*}" __adsysctl_index_of_word "${flag}" "${flags_with_completion[@]}" COMPREPLY=() if [[ ${index} -ge 0 ]]; then PREFIX="" cur="${cur#*=}" ${flags_completion[${index}]} if [ -n "${ZSH_VERSION}" ]; then # zsh completion needs --flag= prefix eval "COMPREPLY=( \"\${COMPREPLY[@]/#/${flag}=}\" )" fi fi fi return 0; ;; esac # check if we are handling a flag with special work handling local index __adsysctl_index_of_word "${prev}" "${flags_with_completion[@]}" if [[ ${index} -ge 0 ]]; then ${flags_completion[${index}]} return fi # we are parsing a flag and don't have a special handler, no completion if [[ ${cur} != "${words[cword]}" ]]; then return fi local completions completions=("${commands[@]}") if [[ ${#must_have_one_noun[@]} -ne 0 ]]; then completions+=("${must_have_one_noun[@]}") elif [[ -n "${has_completion_function}" ]]; then # if a go completion function is provided, defer to that function __adsysctl_handle_go_custom_completion fi if [[ ${#must_have_one_flag[@]} -ne 0 ]]; then completions+=("${must_have_one_flag[@]}") fi while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${completions[*]}" -- "$cur") if [[ ${#COMPREPLY[@]} -eq 0 && ${#noun_aliases[@]} -gt 0 && ${#must_have_one_noun[@]} -ne 0 ]]; then while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${noun_aliases[*]}" -- "$cur") fi if [[ ${#COMPREPLY[@]} -eq 0 ]]; then if declare -F __adsysctl_custom_func >/dev/null; then # try command name qualified custom func __adsysctl_custom_func else # otherwise fall back to unqualified for compatibility declare -F __custom_func >/dev/null && __custom_func fi fi # available in bash-completion >= 2, not always present on macOS if declare -F __ltrim_colon_completions >/dev/null; then __ltrim_colon_completions "$cur" fi # If there is only 1 completion and it is a flag with an = it will be completed # but we don't want a space after the = if [[ "${#COMPREPLY[@]}" -eq "1" ]] && [[ $(type -t compopt) = "builtin" ]] && [[ "${COMPREPLY[0]}" == --*= ]]; then compopt -o nospace fi } # The arguments should be in the form "ext1|ext2|extn" __adsysctl_handle_filename_extension_flag() { local ext="$1" _filedir "@(${ext})" } __adsysctl_handle_subdirs_in_dir_flag() { local dir="$1" pushd "${dir}" >/dev/null 2>&1 && _filedir -d && popd >/dev/null 2>&1 || return } __adsysctl_handle_flag() { __adsysctl_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" # if a command required a flag, and we found it, unset must_have_one_flag() local flagname=${words[c]} local flagvalue # if the word contained an = if [[ ${words[c]} == *"="* ]]; then flagvalue=${flagname#*=} # take in as flagvalue after the = flagname=${flagname%=*} # strip everything after the = flagname="${flagname}=" # but put the = back fi __adsysctl_debug "${FUNCNAME[0]}: looking for ${flagname}" if __adsysctl_contains_word "${flagname}" "${must_have_one_flag[@]}"; then must_have_one_flag=() fi # if you set a flag which only applies to this command, don't show subcommands if __adsysctl_contains_word "${flagname}" "${local_nonpersistent_flags[@]}"; then commands=() fi # keep flag value with flagname as flaghash # flaghash variable is an associative array which is only supported in bash > 3. if [[ -z "${BASH_VERSION}" || "${BASH_VERSINFO[0]}" -gt 3 ]]; then if [ -n "${flagvalue}" ] ; then flaghash[${flagname}]=${flagvalue} elif [ -n "${words[ $((c+1)) ]}" ] ; then flaghash[${flagname}]=${words[ $((c+1)) ]} else flaghash[${flagname}]="true" # pad "true" for bool flag fi fi # skip the argument to a two word flag if [[ ${words[c]} != *"="* ]] && __adsysctl_contains_word "${words[c]}" "${two_word_flags[@]}"; then __adsysctl_debug "${FUNCNAME[0]}: found a flag ${words[c]}, skip the next argument" c=$((c+1)) # if we are looking for a flags value, don't show commands if [[ $c -eq $cword ]]; then commands=() fi fi c=$((c+1)) } __adsysctl_handle_noun() { __adsysctl_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" if __adsysctl_contains_word "${words[c]}" "${must_have_one_noun[@]}"; then must_have_one_noun=() elif __adsysctl_contains_word "${words[c]}" "${noun_aliases[@]}"; then must_have_one_noun=() fi nouns+=("${words[c]}") c=$((c+1)) } __adsysctl_handle_command() { __adsysctl_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" local next_command if [[ -n ${last_command} ]]; then next_command="_${last_command}_${words[c]//:/__}" else if [[ $c -eq 0 ]]; then next_command="_adsysctl_root_command" else next_command="_${words[c]//:/__}" fi fi c=$((c+1)) __adsysctl_debug "${FUNCNAME[0]}: looking for ${next_command}" declare -F "$next_command" >/dev/null && $next_command } __adsysctl_handle_word() { if [[ $c -ge $cword ]]; then __adsysctl_handle_reply return fi __adsysctl_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" if [[ "${words[c]}" == -* ]]; then __adsysctl_handle_flag elif __adsysctl_contains_word "${words[c]}" "${commands[@]}"; then __adsysctl_handle_command elif [[ $c -eq 0 ]]; then __adsysctl_handle_command elif __adsysctl_contains_word "${words[c]}" "${command_aliases[@]}"; then # aliashash variable is an associative array which is only supported in bash > 3. if [[ -z "${BASH_VERSION}" || "${BASH_VERSINFO[0]}" -gt 3 ]]; then words[c]=${aliashash[${words[c]}]} __adsysctl_handle_command else __adsysctl_handle_noun fi else __adsysctl_handle_noun fi __adsysctl_handle_word } _adsysctl_applied() { last_command="adsysctl_applied" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("-a") local_nonpersistent_flags+=("--all") local_nonpersistent_flags+=("-a") flags+=("--details") local_nonpersistent_flags+=("--details") flags+=("--no-color") local_nonpersistent_flags+=("--no-color") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_completion() { last_command="adsysctl_completion" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--help") flags+=("-h") local_nonpersistent_flags+=("--help") local_nonpersistent_flags+=("-h") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_doc() { last_command="adsysctl_doc" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--dest=") two_word_flags+=("--dest") two_word_flags+=("-d") local_nonpersistent_flags+=("--dest") local_nonpersistent_flags+=("--dest=") local_nonpersistent_flags+=("-d") flags+=("--format=") two_word_flags+=("--format") two_word_flags+=("-f") local_nonpersistent_flags+=("--format") local_nonpersistent_flags+=("--format=") local_nonpersistent_flags+=("-f") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_help() { last_command="adsysctl_help" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_policy_admx() { last_command="adsysctl_policy_admx" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--distro=") two_word_flags+=("--distro") local_nonpersistent_flags+=("--distro") local_nonpersistent_flags+=("--distro=") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_policy_applied() { last_command="adsysctl_policy_applied" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("-a") local_nonpersistent_flags+=("--all") local_nonpersistent_flags+=("-a") flags+=("--details") local_nonpersistent_flags+=("--details") flags+=("--no-color") local_nonpersistent_flags+=("--no-color") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_policy_update() { last_command="adsysctl_policy_update" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("-a") local_nonpersistent_flags+=("--all") local_nonpersistent_flags+=("-a") flags+=("--machine") flags+=("-m") local_nonpersistent_flags+=("--machine") local_nonpersistent_flags+=("-m") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_policy() { last_command="adsysctl_policy" command_aliases=() commands=() commands+=("admx") commands+=("applied") commands+=("update") flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() noun_aliases=() } _adsysctl_service_cat() { last_command="adsysctl_service_cat" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_service_status() { last_command="adsysctl_service_status" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_service_stop() { last_command="adsysctl_service_stop" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--force") flags+=("-f") local_nonpersistent_flags+=("--force") local_nonpersistent_flags+=("-f") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_service() { last_command="adsysctl_service" command_aliases=() commands=() commands+=("cat") commands+=("status") commands+=("stop") flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() noun_aliases=() } _adsysctl_update() { last_command="adsysctl_update" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("-a") local_nonpersistent_flags+=("--all") local_nonpersistent_flags+=("-a") flags+=("--machine") flags+=("-m") local_nonpersistent_flags+=("--machine") local_nonpersistent_flags+=("-m") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_version() { last_command="adsysctl_version" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_root_command() { last_command="adsysctl" command_aliases=() commands=() commands+=("applied") commands+=("completion") commands+=("doc") commands+=("help") commands+=("policy") commands+=("service") commands+=("update") commands+=("version") flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() noun_aliases=() } __start_adsysctl() { local cur prev words cword declare -A flaghash 2>/dev/null || : declare -A aliashash 2>/dev/null || : if declare -F _init_completion >/dev/null 2>&1; then _init_completion -s || return else __adsysctl_init_completion -n "=" || return fi local c=0 local flags=() local two_word_flags=() local local_nonpersistent_flags=() local flags_with_completion=() local flags_completion=() local commands=("adsysctl") local must_have_one_flag=() local must_have_one_noun=() local has_completion_function local last_command local nouns=() __adsysctl_handle_word } if [[ $(type -t compopt) = "builtin" ]]; then complete -o default -F __start_adsysctl adsysctl else complete -o default -o nospace -F __start_adsysctl adsysctl fi # ex: ts=4 sw=4 et filetype=sh --- PASS: TestAppCanQuitAfterExecute (0.00s) === RUN TestAppCanQuitWithoutExecute --- PASS: TestAppCanQuitWithoutExecute (0.00s) === RUN TestAppCanSigHupWhenExecute --- PASS: TestAppCanSigHupWhenExecute (0.00s) === RUN TestAppCanSigHupAfterExecute # bash completion for adsysctl -*- shell-script -*- __adsysctl_debug() { if [[ -n ${BASH_COMP_DEBUG_FILE} ]]; then echo "$*" >> "${BASH_COMP_DEBUG_FILE}" fi } # Homebrew on Macs have version 1.3 of bash-completion which doesn't include # _init_completion. This is a very minimal version of that function. __adsysctl_init_completion() { COMPREPLY=() _get_comp_words_by_ref "$@" cur prev words cword } __adsysctl_index_of_word() { local w word=$1 shift index=0 for w in "$@"; do [[ $w = "$word" ]] && return index=$((index+1)) done index=-1 } __adsysctl_contains_word() { local w word=$1; shift for w in "$@"; do [[ $w = "$word" ]] && return done return 1 } __adsysctl_handle_go_custom_completion() { __adsysctl_debug "${FUNCNAME[0]}: cur is ${cur}, words[*] is ${words[*]}, #words[@] is ${#words[@]}" local shellCompDirectiveError=1 local shellCompDirectiveNoSpace=2 local shellCompDirectiveNoFileComp=4 local shellCompDirectiveFilterFileExt=8 local shellCompDirectiveFilterDirs=16 local out requestComp lastParam lastChar comp directive args # Prepare the command to request completions for the program. # Calling ${words[0]} instead of directly adsysctl allows to handle aliases args=("${words[@]:1}") requestComp="${words[0]} __completeNoDesc ${args[*]}" lastParam=${words[$((${#words[@]}-1))]} lastChar=${lastParam:$((${#lastParam}-1)):1} __adsysctl_debug "${FUNCNAME[0]}: lastParam ${lastParam}, lastChar ${lastChar}" if [ -z "${cur}" ] && [ "${lastChar}" != "=" ]; then # If the last parameter is complete (there is a space following it) # We add an extra empty parameter so we can indicate this to the go method. __adsysctl_debug "${FUNCNAME[0]}: Adding extra empty parameter" requestComp="${requestComp} \"\"" fi __adsysctl_debug "${FUNCNAME[0]}: calling ${requestComp}" # Use eval to handle any environment variables and such out=$(eval "${requestComp}" 2>/dev/null) # Extract the directive integer at the very end of the output following a colon (:) directive=${out##*:} # Remove the directive out=${out%:*} if [ "${directive}" = "${out}" ]; then # There is not directive specified directive=0 fi __adsysctl_debug "${FUNCNAME[0]}: the completion directive is: ${directive}" __adsysctl_debug "${FUNCNAME[0]}: the completions are: ${out[*]}" if [ $((directive & shellCompDirectiveError)) -ne 0 ]; then # Error code. No completion. __adsysctl_debug "${FUNCNAME[0]}: received error from custom completion go code" return else if [ $((directive & shellCompDirectiveNoSpace)) -ne 0 ]; then if [[ $(type -t compopt) = "builtin" ]]; then __adsysctl_debug "${FUNCNAME[0]}: activating no space" compopt -o nospace fi fi if [ $((directive & shellCompDirectiveNoFileComp)) -ne 0 ]; then if [[ $(type -t compopt) = "builtin" ]]; then __adsysctl_debug "${FUNCNAME[0]}: activating no file completion" compopt +o default fi fi fi if [ $((directive & shellCompDirectiveFilterFileExt)) -ne 0 ]; then # File extension filtering local fullFilter filter filteringCmd # Do not use quotes around the $out variable or else newline # characters will be kept. for filter in ${out[*]}; do fullFilter+="$filter|" done filteringCmd="_filedir $fullFilter" __adsysctl_debug "File filtering command: $filteringCmd" $filteringCmd elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then # File completion for directories only local subDir # Use printf to strip any trailing newline subdir=$(printf "%s" "${out[0]}") if [ -n "$subdir" ]; then __adsysctl_debug "Listing directories in $subdir" __adsysctl_handle_subdirs_in_dir_flag "$subdir" else __adsysctl_debug "Listing directories in ." _filedir -d fi else while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${out[*]}" -- "$cur") fi } __adsysctl_handle_reply() { __adsysctl_debug "${FUNCNAME[0]}" local comp case $cur in -*) if [[ $(type -t compopt) = "builtin" ]]; then compopt -o nospace fi local allflags if [ ${#must_have_one_flag[@]} -ne 0 ]; then allflags=("${must_have_one_flag[@]}") else allflags=("${flags[*]} ${two_word_flags[*]}") fi while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${allflags[*]}" -- "$cur") if [[ $(type -t compopt) = "builtin" ]]; then [[ "${COMPREPLY[0]}" == *= ]] || compopt +o nospace fi # complete after --flag=abc if [[ $cur == *=* ]]; then if [[ $(type -t compopt) = "builtin" ]]; then compopt +o nospace fi local index flag flag="${cur%=*}" __adsysctl_index_of_word "${flag}" "${flags_with_completion[@]}" COMPREPLY=() if [[ ${index} -ge 0 ]]; then PREFIX="" cur="${cur#*=}" ${flags_completion[${index}]} if [ -n "${ZSH_VERSION}" ]; then # zsh completion needs --flag= prefix eval "COMPREPLY=( \"\${COMPREPLY[@]/#/${flag}=}\" )" fi fi fi return 0; ;; esac # check if we are handling a flag with special work handling local index __adsysctl_index_of_word "${prev}" "${flags_with_completion[@]}" if [[ ${index} -ge 0 ]]; then ${flags_completion[${index}]} return fi # we are parsing a flag and don't have a special handler, no completion if [[ ${cur} != "${words[cword]}" ]]; then return fi local completions completions=("${commands[@]}") if [[ ${#must_have_one_noun[@]} -ne 0 ]]; then completions+=("${must_have_one_noun[@]}") elif [[ -n "${has_completion_function}" ]]; then # if a go completion function is provided, defer to that function __adsysctl_handle_go_custom_completion fi if [[ ${#must_have_one_flag[@]} -ne 0 ]]; then completions+=("${must_have_one_flag[@]}") fi while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${completions[*]}" -- "$cur") if [[ ${#COMPREPLY[@]} -eq 0 && ${#noun_aliases[@]} -gt 0 && ${#must_have_one_noun[@]} -ne 0 ]]; then while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${noun_aliases[*]}" -- "$cur") fi if [[ ${#COMPREPLY[@]} -eq 0 ]]; then if declare -F __adsysctl_custom_func >/dev/null; then # try command name qualified custom func __adsysctl_custom_func else # otherwise fall back to unqualified for compatibility declare -F __custom_func >/dev/null && __custom_func fi fi # available in bash-completion >= 2, not always present on macOS if declare -F __ltrim_colon_completions >/dev/null; then __ltrim_colon_completions "$cur" fi # If there is only 1 completion and it is a flag with an = it will be completed # but we don't want a space after the = if [[ "${#COMPREPLY[@]}" -eq "1" ]] && [[ $(type -t compopt) = "builtin" ]] && [[ "${COMPREPLY[0]}" == --*= ]]; then compopt -o nospace fi } # The arguments should be in the form "ext1|ext2|extn" __adsysctl_handle_filename_extension_flag() { local ext="$1" _filedir "@(${ext})" } __adsysctl_handle_subdirs_in_dir_flag() { local dir="$1" pushd "${dir}" >/dev/null 2>&1 && _filedir -d && popd >/dev/null 2>&1 || return } __adsysctl_handle_flag() { __adsysctl_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" # if a command required a flag, and we found it, unset must_have_one_flag() local flagname=${words[c]} local flagvalue # if the word contained an = if [[ ${words[c]} == *"="* ]]; then flagvalue=${flagname#*=} # take in as flagvalue after the = flagname=${flagname%=*} # strip everything after the = flagname="${flagname}=" # but put the = back fi __adsysctl_debug "${FUNCNAME[0]}: looking for ${flagname}" if __adsysctl_contains_word "${flagname}" "${must_have_one_flag[@]}"; then must_have_one_flag=() fi # if you set a flag which only applies to this command, don't show subcommands if __adsysctl_contains_word "${flagname}" "${local_nonpersistent_flags[@]}"; then commands=() fi # keep flag value with flagname as flaghash # flaghash variable is an associative array which is only supported in bash > 3. if [[ -z "${BASH_VERSION}" || "${BASH_VERSINFO[0]}" -gt 3 ]]; then if [ -n "${flagvalue}" ] ; then flaghash[${flagname}]=${flagvalue} elif [ -n "${words[ $((c+1)) ]}" ] ; then flaghash[${flagname}]=${words[ $((c+1)) ]} else flaghash[${flagname}]="true" # pad "true" for bool flag fi fi # skip the argument to a two word flag if [[ ${words[c]} != *"="* ]] && __adsysctl_contains_word "${words[c]}" "${two_word_flags[@]}"; then __adsysctl_debug "${FUNCNAME[0]}: found a flag ${words[c]}, skip the next argument" c=$((c+1)) # if we are looking for a flags value, don't show commands if [[ $c -eq $cword ]]; then commands=() fi fi c=$((c+1)) } __adsysctl_handle_noun() { __adsysctl_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" if __adsysctl_contains_word "${words[c]}" "${must_have_one_noun[@]}"; then must_have_one_noun=() elif __adsysctl_contains_word "${words[c]}" "${noun_aliases[@]}"; then must_have_one_noun=() fi nouns+=("${words[c]}") c=$((c+1)) } __adsysctl_handle_command() { __adsysctl_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" local next_command if [[ -n ${last_command} ]]; then next_command="_${last_command}_${words[c]//:/__}" else if [[ $c -eq 0 ]]; then next_command="_adsysctl_root_command" else next_command="_${words[c]//:/__}" fi fi c=$((c+1)) __adsysctl_debug "${FUNCNAME[0]}: looking for ${next_command}" declare -F "$next_command" >/dev/null && $next_command } __adsysctl_handle_word() { if [[ $c -ge $cword ]]; then __adsysctl_handle_reply return fi __adsysctl_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" if [[ "${words[c]}" == -* ]]; then __adsysctl_handle_flag elif __adsysctl_contains_word "${words[c]}" "${commands[@]}"; then __adsysctl_handle_command elif [[ $c -eq 0 ]]; then __adsysctl_handle_command elif __adsysctl_contains_word "${words[c]}" "${command_aliases[@]}"; then # aliashash variable is an associative array which is only supported in bash > 3. if [[ -z "${BASH_VERSION}" || "${BASH_VERSINFO[0]}" -gt 3 ]]; then words[c]=${aliashash[${words[c]}]} __adsysctl_handle_command else __adsysctl_handle_noun fi else __adsysctl_handle_noun fi __adsysctl_handle_word } _adsysctl_applied() { last_command="adsysctl_applied" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("-a") local_nonpersistent_flags+=("--all") local_nonpersistent_flags+=("-a") flags+=("--details") local_nonpersistent_flags+=("--details") flags+=("--no-color") local_nonpersistent_flags+=("--no-color") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_completion() { last_command="adsysctl_completion" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--help") flags+=("-h") local_nonpersistent_flags+=("--help") local_nonpersistent_flags+=("-h") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_doc() { last_command="adsysctl_doc" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--dest=") two_word_flags+=("--dest") two_word_flags+=("-d") local_nonpersistent_flags+=("--dest") local_nonpersistent_flags+=("--dest=") local_nonpersistent_flags+=("-d") flags+=("--format=") two_word_flags+=("--format") two_word_flags+=("-f") local_nonpersistent_flags+=("--format") local_nonpersistent_flags+=("--format=") local_nonpersistent_flags+=("-f") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_help() { last_command="adsysctl_help" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_policy_admx() { last_command="adsysctl_policy_admx" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--distro=") two_word_flags+=("--distro") local_nonpersistent_flags+=("--distro") local_nonpersistent_flags+=("--distro=") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_policy_applied() { last_command="adsysctl_policy_applied" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("-a") local_nonpersistent_flags+=("--all") local_nonpersistent_flags+=("-a") flags+=("--details") local_nonpersistent_flags+=("--details") flags+=("--no-color") local_nonpersistent_flags+=("--no-color") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_policy_update() { last_command="adsysctl_policy_update" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("-a") local_nonpersistent_flags+=("--all") local_nonpersistent_flags+=("-a") flags+=("--machine") flags+=("-m") local_nonpersistent_flags+=("--machine") local_nonpersistent_flags+=("-m") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_policy() { last_command="adsysctl_policy" command_aliases=() commands=() commands+=("admx") commands+=("applied") commands+=("update") flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() noun_aliases=() } _adsysctl_service_cat() { last_command="adsysctl_service_cat" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_service_status() { last_command="adsysctl_service_status" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_service_stop() { last_command="adsysctl_service_stop" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--force") flags+=("-f") local_nonpersistent_flags+=("--force") local_nonpersistent_flags+=("-f") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_service() { last_command="adsysctl_service" command_aliases=() commands=() commands+=("cat") commands+=("status") commands+=("stop") flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() noun_aliases=() } _adsysctl_update() { last_command="adsysctl_update" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("-a") local_nonpersistent_flags+=("--all") local_nonpersistent_flags+=("-a") flags+=("--machine") flags+=("-m") local_nonpersistent_flags+=("--machine") local_nonpersistent_flags+=("-m") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_version() { last_command="adsysctl_version" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysctl_root_command() { last_command="adsysctl" command_aliases=() commands=() commands+=("applied") commands+=("completion") commands+=("doc") commands+=("help") commands+=("policy") commands+=("service") commands+=("update") commands+=("version") flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() noun_aliases=() } __start_adsysctl() { local cur prev words cword declare -A flaghash 2>/dev/null || : declare -A aliashash 2>/dev/null || : if declare -F _init_completion >/dev/null 2>&1; then _init_completion -s || return else __adsysctl_init_completion -n "=" || return fi local c=0 local flags=() local two_word_flags=() local local_nonpersistent_flags=() local flags_with_completion=() local flags_completion=() local commands=("adsysctl") local must_have_one_flag=() local must_have_one_noun=() local has_completion_function local last_command local nouns=() __adsysctl_handle_word } if [[ $(type -t compopt) = "builtin" ]]; then complete -o default -F __start_adsysctl adsysctl else complete -o default -o nospace -F __start_adsysctl adsysctl fi # ex: ts=4 sw=4 et filetype=sh --- PASS: TestAppCanSigHupAfterExecute (0.00s) === RUN TestAppGetRootCmd === PAUSE TestAppGetRootCmd === CONT TestInitApp === CONT TestAppGetRootCmd --- PASS: TestAppGetRootCmd (0.00s) Usage: adsysctl COMMAND [flags] adsysctl [command] Available Commands: applied Print last applied GPOs for current or given user/machine completion Generates bash completion scripts doc Documentation help Help about any command policy Policy management service Service management update Updates/Create a policy for current user or given user with its kerberos ticket version Returns version of client and service Flags: -c, --config string use a specific configuration file -h, --help help for adsysctl -s, --socket string socket path to use between daemon and client. Can be overridden by systemd socket activation. (default "/run/adsysd.sock") -t, --timeout int time in seconds before cancelling the client request when the server gives no result. 0 for no timeout. (default 30) -v, --verbose count issue INFO (-v), DEBUG (-vv) or DEBUG with caller (-vvv) output Use "adsysctl [command] --help" for more information about a command. --- PASS: TestInitApp (0.00s) PASS ok github.com/ubuntu/adsys/cmd/adsysd/client 0.071s === RUN TestAppHelp Active Directory integration bridging toolset daemon. Usage: adsysd COMMAND [flags] adsysd [command] Available Commands: completion Generates bash completion scripts help Help about any command version Returns version of service and exits Flags: -D, --ad-domain string AD domain to use. Empty to let ADSys parsing sssd.conf. -S, --ad-server string URL of the Active Directory server. Empty to let ADSys parsing sssd.conf. --cache-dir string directory where ADsys caches GPOs downloads and policies. (default "/var/cache/adsys") -c, --config string use a specific configuration file -h, --help help for adsysd --run-dir string directory where ADsys stores transient information erased on reboot. (default "/run/adsys") -s, --socket string socket path to use between daemon and client. Can be overridden by systemd socket activation. (default "/run/adsysd.sock") -t, --timeout int time in seconds without activity before the service exists. 0 for no timeout. (default 120) -v, --verbose count issue INFO (-v), DEBUG (-vv) or DEBUG with caller (-vvv) output Use "adsysd [command] --help" for more information about a command. --- PASS: TestAppHelp (0.00s) === RUN TestAppCompletion # bash completion for adsysd -*- shell-script -*- __adsysd_debug() { if [[ -n ${BASH_COMP_DEBUG_FILE} ]]; then echo "$*" >> "${BASH_COMP_DEBUG_FILE}" fi } # Homebrew on Macs have version 1.3 of bash-completion which doesn't include # _init_completion. This is a very minimal version of that function. __adsysd_init_completion() { COMPREPLY=() _get_comp_words_by_ref "$@" cur prev words cword } __adsysd_index_of_word() { local w word=$1 shift index=0 for w in "$@"; do [[ $w = "$word" ]] && return index=$((index+1)) done index=-1 } __adsysd_contains_word() { local w word=$1; shift for w in "$@"; do [[ $w = "$word" ]] && return done return 1 } __adsysd_handle_go_custom_completion() { __adsysd_debug "${FUNCNAME[0]}: cur is ${cur}, words[*] is ${words[*]}, #words[@] is ${#words[@]}" local shellCompDirectiveError=1 local shellCompDirectiveNoSpace=2 local shellCompDirectiveNoFileComp=4 local shellCompDirectiveFilterFileExt=8 local shellCompDirectiveFilterDirs=16 local out requestComp lastParam lastChar comp directive args # Prepare the command to request completions for the program. # Calling ${words[0]} instead of directly adsysd allows to handle aliases args=("${words[@]:1}") requestComp="${words[0]} __completeNoDesc ${args[*]}" lastParam=${words[$((${#words[@]}-1))]} lastChar=${lastParam:$((${#lastParam}-1)):1} __adsysd_debug "${FUNCNAME[0]}: lastParam ${lastParam}, lastChar ${lastChar}" if [ -z "${cur}" ] && [ "${lastChar}" != "=" ]; then # If the last parameter is complete (there is a space following it) # We add an extra empty parameter so we can indicate this to the go method. __adsysd_debug "${FUNCNAME[0]}: Adding extra empty parameter" requestComp="${requestComp} \"\"" fi __adsysd_debug "${FUNCNAME[0]}: calling ${requestComp}" # Use eval to handle any environment variables and such out=$(eval "${requestComp}" 2>/dev/null) # Extract the directive integer at the very end of the output following a colon (:) directive=${out##*:} # Remove the directive out=${out%:*} if [ "${directive}" = "${out}" ]; then # There is not directive specified directive=0 fi __adsysd_debug "${FUNCNAME[0]}: the completion directive is: ${directive}" __adsysd_debug "${FUNCNAME[0]}: the completions are: ${out[*]}" if [ $((directive & shellCompDirectiveError)) -ne 0 ]; then # Error code. No completion. __adsysd_debug "${FUNCNAME[0]}: received error from custom completion go code" return else if [ $((directive & shellCompDirectiveNoSpace)) -ne 0 ]; then if [[ $(type -t compopt) = "builtin" ]]; then __adsysd_debug "${FUNCNAME[0]}: activating no space" compopt -o nospace fi fi if [ $((directive & shellCompDirectiveNoFileComp)) -ne 0 ]; then if [[ $(type -t compopt) = "builtin" ]]; then __adsysd_debug "${FUNCNAME[0]}: activating no file completion" compopt +o default fi fi fi if [ $((directive & shellCompDirectiveFilterFileExt)) -ne 0 ]; then # File extension filtering local fullFilter filter filteringCmd # Do not use quotes around the $out variable or else newline # characters will be kept. for filter in ${out[*]}; do fullFilter+="$filter|" done filteringCmd="_filedir $fullFilter" __adsysd_debug "File filtering command: $filteringCmd" $filteringCmd elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then # File completion for directories only local subDir # Use printf to strip any trailing newline subdir=$(printf "%s" "${out[0]}") if [ -n "$subdir" ]; then __adsysd_debug "Listing directories in $subdir" __adsysd_handle_subdirs_in_dir_flag "$subdir" else __adsysd_debug "Listing directories in ." _filedir -d fi else while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${out[*]}" -- "$cur") fi } __adsysd_handle_reply() { __adsysd_debug "${FUNCNAME[0]}" local comp case $cur in -*) if [[ $(type -t compopt) = "builtin" ]]; then compopt -o nospace fi local allflags if [ ${#must_have_one_flag[@]} -ne 0 ]; then allflags=("${must_have_one_flag[@]}") else allflags=("${flags[*]} ${two_word_flags[*]}") fi while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${allflags[*]}" -- "$cur") if [[ $(type -t compopt) = "builtin" ]]; then [[ "${COMPREPLY[0]}" == *= ]] || compopt +o nospace fi # complete after --flag=abc if [[ $cur == *=* ]]; then if [[ $(type -t compopt) = "builtin" ]]; then compopt +o nospace fi local index flag flag="${cur%=*}" __adsysd_index_of_word "${flag}" "${flags_with_completion[@]}" COMPREPLY=() if [[ ${index} -ge 0 ]]; then PREFIX="" cur="${cur#*=}" ${flags_completion[${index}]} if [ -n "${ZSH_VERSION}" ]; then # zsh completion needs --flag= prefix eval "COMPREPLY=( \"\${COMPREPLY[@]/#/${flag}=}\" )" fi fi fi return 0; ;; esac # check if we are handling a flag with special work handling local index __adsysd_index_of_word "${prev}" "${flags_with_completion[@]}" if [[ ${index} -ge 0 ]]; then ${flags_completion[${index}]} return fi # we are parsing a flag and don't have a special handler, no completion if [[ ${cur} != "${words[cword]}" ]]; then return fi local completions completions=("${commands[@]}") if [[ ${#must_have_one_noun[@]} -ne 0 ]]; then completions+=("${must_have_one_noun[@]}") elif [[ -n "${has_completion_function}" ]]; then # if a go completion function is provided, defer to that function __adsysd_handle_go_custom_completion fi if [[ ${#must_have_one_flag[@]} -ne 0 ]]; then completions+=("${must_have_one_flag[@]}") fi while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${completions[*]}" -- "$cur") if [[ ${#COMPREPLY[@]} -eq 0 && ${#noun_aliases[@]} -gt 0 && ${#must_have_one_noun[@]} -ne 0 ]]; then while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${noun_aliases[*]}" -- "$cur") fi if [[ ${#COMPREPLY[@]} -eq 0 ]]; then if declare -F __adsysd_custom_func >/dev/null; then # try command name qualified custom func __adsysd_custom_func else # otherwise fall back to unqualified for compatibility declare -F __custom_func >/dev/null && __custom_func fi fi # available in bash-completion >= 2, not always present on macOS if declare -F __ltrim_colon_completions >/dev/null; then __ltrim_colon_completions "$cur" fi # If there is only 1 completion and it is a flag with an = it will be completed # but we don't want a space after the = if [[ "${#COMPREPLY[@]}" -eq "1" ]] && [[ $(type -t compopt) = "builtin" ]] && [[ "${COMPREPLY[0]}" == --*= ]]; then compopt -o nospace fi } # The arguments should be in the form "ext1|ext2|extn" __adsysd_handle_filename_extension_flag() { local ext="$1" _filedir "@(${ext})" } __adsysd_handle_subdirs_in_dir_flag() { local dir="$1" pushd "${dir}" >/dev/null 2>&1 && _filedir -d && popd >/dev/null 2>&1 || return } __adsysd_handle_flag() { __adsysd_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" # if a command required a flag, and we found it, unset must_have_one_flag() local flagname=${words[c]} local flagvalue # if the word contained an = if [[ ${words[c]} == *"="* ]]; then flagvalue=${flagname#*=} # take in as flagvalue after the = flagname=${flagname%=*} # strip everything after the = flagname="${flagname}=" # but put the = back fi __adsysd_debug "${FUNCNAME[0]}: looking for ${flagname}" if __adsysd_contains_word "${flagname}" "${must_have_one_flag[@]}"; then must_have_one_flag=() fi # if you set a flag which only applies to this command, don't show subcommands if __adsysd_contains_word "${flagname}" "${local_nonpersistent_flags[@]}"; then commands=() fi # keep flag value with flagname as flaghash # flaghash variable is an associative array which is only supported in bash > 3. if [[ -z "${BASH_VERSION}" || "${BASH_VERSINFO[0]}" -gt 3 ]]; then if [ -n "${flagvalue}" ] ; then flaghash[${flagname}]=${flagvalue} elif [ -n "${words[ $((c+1)) ]}" ] ; then flaghash[${flagname}]=${words[ $((c+1)) ]} else flaghash[${flagname}]="true" # pad "true" for bool flag fi fi # skip the argument to a two word flag if [[ ${words[c]} != *"="* ]] && __adsysd_contains_word "${words[c]}" "${two_word_flags[@]}"; then __adsysd_debug "${FUNCNAME[0]}: found a flag ${words[c]}, skip the next argument" c=$((c+1)) # if we are looking for a flags value, don't show commands if [[ $c -eq $cword ]]; then commands=() fi fi c=$((c+1)) } __adsysd_handle_noun() { __adsysd_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" if __adsysd_contains_word "${words[c]}" "${must_have_one_noun[@]}"; then must_have_one_noun=() elif __adsysd_contains_word "${words[c]}" "${noun_aliases[@]}"; then must_have_one_noun=() fi nouns+=("${words[c]}") c=$((c+1)) } __adsysd_handle_command() { __adsysd_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" local next_command if [[ -n ${last_command} ]]; then next_command="_${last_command}_${words[c]//:/__}" else if [[ $c -eq 0 ]]; then next_command="_adsysd_root_command" else next_command="_${words[c]//:/__}" fi fi c=$((c+1)) __adsysd_debug "${FUNCNAME[0]}: looking for ${next_command}" declare -F "$next_command" >/dev/null && $next_command } __adsysd_handle_word() { if [[ $c -ge $cword ]]; then __adsysd_handle_reply return fi __adsysd_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" if [[ "${words[c]}" == -* ]]; then __adsysd_handle_flag elif __adsysd_contains_word "${words[c]}" "${commands[@]}"; then __adsysd_handle_command elif [[ $c -eq 0 ]]; then __adsysd_handle_command elif __adsysd_contains_word "${words[c]}" "${command_aliases[@]}"; then # aliashash variable is an associative array which is only supported in bash > 3. if [[ -z "${BASH_VERSION}" || "${BASH_VERSINFO[0]}" -gt 3 ]]; then words[c]=${aliashash[${words[c]}]} __adsysd_handle_command else __adsysd_handle_noun fi else __adsysd_handle_noun fi __adsysd_handle_word } _adsysd_completion() { last_command="adsysd_completion" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--help") flags+=("-h") local_nonpersistent_flags+=("--help") local_nonpersistent_flags+=("-h") flags+=("--ad-domain=") two_word_flags+=("--ad-domain") two_word_flags+=("-D") flags+=("--ad-server=") two_word_flags+=("--ad-server") two_word_flags+=("-S") flags+=("--cache-dir=") two_word_flags+=("--cache-dir") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--run-dir=") two_word_flags+=("--run-dir") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysd_help() { last_command="adsysd_help" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--ad-domain=") two_word_flags+=("--ad-domain") two_word_flags+=("-D") flags+=("--ad-server=") two_word_flags+=("--ad-server") two_word_flags+=("-S") flags+=("--cache-dir=") two_word_flags+=("--cache-dir") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--run-dir=") two_word_flags+=("--run-dir") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysd_version() { last_command="adsysd_version" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--ad-domain=") two_word_flags+=("--ad-domain") two_word_flags+=("-D") flags+=("--ad-server=") two_word_flags+=("--ad-server") two_word_flags+=("-S") flags+=("--cache-dir=") two_word_flags+=("--cache-dir") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--run-dir=") two_word_flags+=("--run-dir") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() noun_aliases=() } _adsysd_root_command() { last_command="adsysd" command_aliases=() commands=() commands+=("completion") commands+=("help") commands+=("version") flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--ad-domain=") two_word_flags+=("--ad-domain") two_word_flags+=("-D") flags+=("--ad-server=") two_word_flags+=("--ad-server") two_word_flags+=("-S") flags+=("--cache-dir=") two_word_flags+=("--cache-dir") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--run-dir=") two_word_flags+=("--run-dir") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() noun_aliases=() } __start_adsysd() { local cur prev words cword declare -A flaghash 2>/dev/null || : declare -A aliashash 2>/dev/null || : if declare -F _init_completion >/dev/null 2>&1; then _init_completion -s || return else __adsysd_init_completion -n "=" || return fi local c=0 local flags=() local two_word_flags=() local local_nonpersistent_flags=() local flags_with_completion=() local flags_completion=() local commands=("adsysd") local must_have_one_flag=() local must_have_one_noun=() local has_completion_function local last_command local nouns=() __adsysd_handle_word } if [[ $(type -t compopt) = "builtin" ]]; then complete -o default -F __start_adsysd adsysd else complete -o default -o nospace -F __start_adsysd adsysd fi # ex: ts=4 sw=4 et filetype=sh --- PASS: TestAppCompletion (0.00s) === RUN TestAppVersion --- PASS: TestAppVersion (0.00s) === RUN TestAppNoUsageError # bash completion for adsysd -*- shell-script -*- __adsysd_debug() { if [[ -n ${BASH_COMP_DEBUG_FILE} ]]; then echo "$*" >> "${BASH_COMP_DEBUG_FILE}" fi } # Homebrew on Macs have version 1.3 of bash-completion which doesn't include # _init_completion. This is a very minimal version of that function. __adsysd_init_completion() { COMPREPLY=() _get_comp_words_by_ref "$@" cur prev words cword } __adsysd_index_of_word() { local w word=$1 shift index=0 for w in "$@"; do [[ $w = "$word" ]] && return index=$((index+1)) done index=-1 } __adsysd_contains_word() { local w word=$1; shift for w in "$@"; do [[ $w = "$word" ]] && return done return 1 } __adsysd_handle_go_custom_completion() { __adsysd_debug "${FUNCNAME[0]}: cur is ${cur}, words[*] is ${words[*]}, #words[@] is ${#words[@]}" local shellCompDirectiveError=1 local shellCompDirectiveNoSpace=2 local shellCompDirectiveNoFileComp=4 local shellCompDirectiveFilterFileExt=8 local shellCompDirectiveFilterDirs=16 local out requestComp lastParam lastChar comp directive args # Prepare the command to request completions for the program. # Calling ${words[0]} instead of directly adsysd allows to handle aliases args=("${words[@]:1}") requestComp="${words[0]} __completeNoDesc ${args[*]}" lastParam=${words[$((${#words[@]}-1))]} lastChar=${lastParam:$((${#lastParam}-1)):1} __adsysd_debug "${FUNCNAME[0]}: lastParam ${lastParam}, lastChar ${lastChar}" if [ -z "${cur}" ] && [ "${lastChar}" != "=" ]; then # If the last parameter is complete (there is a space following it) # We add an extra empty parameter so we can indicate this to the go method. __adsysd_debug "${FUNCNAME[0]}: Adding extra empty parameter" requestComp="${requestComp} \"\"" fi __adsysd_debug "${FUNCNAME[0]}: calling ${requestComp}" # Use eval to handle any environment variables and such out=$(eval "${requestComp}" 2>/dev/null) # Extract the directive integer at the very end of the output following a colon (:) directive=${out##*:} # Remove the directive out=${out%:*} if [ "${directive}" = "${out}" ]; then # There is not directive specified directive=0 fi __adsysd_debug "${FUNCNAME[0]}: the completion directive is: ${directive}" __adsysd_debug "${FUNCNAME[0]}: the completions are: ${out[*]}" if [ $((directive & shellCompDirectiveError)) -ne 0 ]; then # Error code. No completion. __adsysd_debug "${FUNCNAME[0]}: received error from custom completion go code" return else if [ $((directive & shellCompDirectiveNoSpace)) -ne 0 ]; then if [[ $(type -t compopt) = "builtin" ]]; then __adsysd_debug "${FUNCNAME[0]}: activating no space" compopt -o nospace fi fi if [ $((directive & shellCompDirectiveNoFileComp)) -ne 0 ]; then if [[ $(type -t compopt) = "builtin" ]]; then __adsysd_debug "${FUNCNAME[0]}: activating no file completion" compopt +o default fi fi fi if [ $((directive & shellCompDirectiveFilterFileExt)) -ne 0 ]; then # File extension filtering local fullFilter filter filteringCmd # Do not use quotes around the $out variable or else newline # characters will be kept. for filter in ${out[*]}; do fullFilter+="$filter|" done filteringCmd="_filedir $fullFilter" __adsysd_debug "File filtering command: $filteringCmd" $filteringCmd elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then # File completion for directories only local subDir # Use printf to strip any trailing newline subdir=$(printf "%s" "${out[0]}") if [ -n "$subdir" ]; then __adsysd_debug "Listing directories in $subdir" __adsysd_handle_subdirs_in_dir_flag "$subdir" else __adsysd_debug "Listing directories in ." _filedir -d fi else while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${out[*]}" -- "$cur") fi } __adsysd_handle_reply() { __adsysd_debug "${FUNCNAME[0]}" local comp case $cur in -*) if [[ $(type -t compopt) = "builtin" ]]; then compopt -o nospace fi local allflags if [ ${#must_have_one_flag[@]} -ne 0 ]; then allflags=("${must_have_one_flag[@]}") else allflags=("${flags[*]} ${two_word_flags[*]}") fi while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${allflags[*]}" -- "$cur") if [[ $(type -t compopt) = "builtin" ]]; then [[ "${COMPREPLY[0]}" == *= ]] || compopt +o nospace fi # complete after --flag=abc if [[ $cur == *=* ]]; then if [[ $(type -t compopt) = "builtin" ]]; then compopt +o nospace fi local index flag flag="${cur%=*}" __adsysd_index_of_word "${flag}" "${flags_with_completion[@]}" COMPREPLY=() if [[ ${index} -ge 0 ]]; then PREFIX="" cur="${cur#*=}" ${flags_completion[${index}]} if [ -n "${ZSH_VERSION}" ]; then # zsh completion needs --flag= prefix eval "COMPREPLY=( \"\${COMPREPLY[@]/#/${flag}=}\" )" fi fi fi return 0; ;; esac # check if we are handling a flag with special work handling local index __adsysd_index_of_word "${prev}" "${flags_with_completion[@]}" if [[ ${index} -ge 0 ]]; then ${flags_completion[${index}]} return fi # we are parsing a flag and don't have a special handler, no completion if [[ ${cur} != "${words[cword]}" ]]; then return fi local completions completions=("${commands[@]}") if [[ ${#must_have_one_noun[@]} -ne 0 ]]; then completions+=("${must_have_one_noun[@]}") elif [[ -n "${has_completion_function}" ]]; then # if a go completion function is provided, defer to that function __adsysd_handle_go_custom_completion fi if [[ ${#must_have_one_flag[@]} -ne 0 ]]; then completions+=("${must_have_one_flag[@]}") fi while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${completions[*]}" -- "$cur") if [[ ${#COMPREPLY[@]} -eq 0 && ${#noun_aliases[@]} -gt 0 && ${#must_have_one_noun[@]} -ne 0 ]]; then while IFS='' read -r comp; do COMPREPLY+=("$comp") done < <(compgen -W "${noun_aliases[*]}" -- "$cur") fi if [[ ${#COMPREPLY[@]} -eq 0 ]]; then if declare -F __adsysd_custom_func >/dev/null; then # try command name qualified custom func __adsysd_custom_func else # otherwise fall back to unqualified for compatibility declare -F __custom_func >/dev/null && __custom_func fi fi # available in bash-completion >= 2, not always present on macOS if declare -F __ltrim_colon_completions >/dev/null; then __ltrim_colon_completions "$cur" fi # If there is only 1 completion and it is a flag with an = it will be completed # but we don't want a space after the = if [[ "${#COMPREPLY[@]}" -eq "1" ]] && [[ $(type -t compopt) = "builtin" ]] && [[ "${COMPREPLY[0]}" == --*= ]]; then compopt -o nospace fi } # The arguments should be in the form "ext1|ext2|extn" __adsysd_handle_filename_extension_flag() { local ext="$1" _filedir "@(${ext})" } __adsysd_handle_subdirs_in_dir_flag() { local dir="$1" pushd "${dir}" >/dev/null 2>&1 && _filedir -d && popd >/dev/null 2>&1 || return } __adsysd_handle_flag() { __adsysd_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" # if a command required a flag, and we found it, unset must_have_one_flag() local flagname=${words[c]} local flagvalue # if the word contained an = if [[ ${words[c]} == *"="* ]]; then flagvalue=${flagname#*=} # take in as flagvalue after the = flagname=${flagname%=*} # strip everything after the = flagname="${flagname}=" # but put the = back fi __adsysd_debug "${FUNCNAME[0]}: looking for ${flagname}" if __adsysd_contains_word "${flagname}" "${must_have_one_flag[@]}"; then must_have_one_flag=() fi # if you set a flag which only applies to this command, don't show subcommands if __adsysd_contains_word "${flagname}" "${local_nonpersistent_flags[@]}"; then commands=() fi # keep flag value with flagname as flaghash # flaghash variable is an associative array which is only supported in bash > 3. if [[ -z "${BASH_VERSION}" || "${BASH_VERSINFO[0]}" -gt 3 ]]; then if [ -n "${flagvalue}" ] ; then flaghash[${flagname}]=${flagvalue} elif [ -n "${words[ $((c+1)) ]}" ] ; then flaghash[${flagname}]=${words[ $((c+1)) ]} else flaghash[${flagname}]="true" # pad "true" for bool flag fi fi # skip the argument to a two word flag if [[ ${words[c]} != *"="* ]] && __adsysd_contains_word "${words[c]}" "${two_word_flags[@]}"; then __adsysd_debug "${FUNCNAME[0]}: found a flag ${words[c]}, skip the next argument" c=$((c+1)) # if we are looking for a flags value, don't show commands if [[ $c -eq $cword ]]; then commands=() fi fi c=$((c+1)) } __adsysd_handle_noun() { __adsysd_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" if __adsysd_contains_word "${words[c]}" "${must_have_one_noun[@]}"; then must_have_one_noun=() elif __adsysd_contains_word "${words[c]}" "${noun_aliases[@]}"; then must_have_one_noun=() fi nouns+=("${words[c]}") c=$((c+1)) } __adsysd_handle_command() { __adsysd_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" local next_command if [[ -n ${last_command} ]]; then next_command="_${last_command}_${words[c]//:/__}" else if [[ $c -eq 0 ]]; then next_command="_adsysd_root_command" else next_command="_${words[c]//:/__}" fi fi c=$((c+1)) __adsysd_debug "${FUNCNAME[0]}: looking for ${next_command}" declare -F "$next_command" >/dev/null && $next_command } __adsysd_handle_word() { if [[ $c -ge $cword ]]; then __adsysd_handle_reply return fi __adsysd_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" if [[ "${words[c]}" == -* ]]; then __adsysd_handle_flag elif __adsysd_contains_word "${words[c]}" "${commands[@]}"; then __adsysd_handle_command elif [[ $c -eq 0 ]]; then __adsysd_handle_command elif __adsysd_contains_word "${words[c]}" "${command_aliases[@]}"; then # aliashash variable is an associative array which is only supported in bash > 3. if [[ -z "${BASH_VERSION}" || "${BASH_VERSINFO[0]}" -gt 3 ]]; then words[c]=${aliashash[${words[c]}]} __adsysd_handle_command else __adsysd_handle_noun fi else __adsysd_handle_noun fi __adsysd_handle_word } _adsysd_completion() { last_command="adsysd_completion" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--help") flags+=("-h") local_nonpersistent_flags+=("--help") local_nonpersistent_flags+=("-h") flags+=("--ad-domain=") two_word_flags+=("--ad-domain") two_word_flags+=("-D") flags+=("--ad-server=") two_word_flags+=("--ad-server") two_word_flags+=("-S") flags+=("--cache-dir=") two_word_flags+=("--cache-dir") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--run-dir=") two_word_flags+=("--run-dir") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysd_help() { last_command="adsysd_help" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--ad-domain=") two_word_flags+=("--ad-domain") two_word_flags+=("-D") flags+=("--ad-server=") two_word_flags+=("--ad-server") two_word_flags+=("-S") flags+=("--cache-dir=") two_word_flags+=("--cache-dir") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--run-dir=") two_word_flags+=("--run-dir") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() has_completion_function=1 noun_aliases=() } _adsysd_version() { last_command="adsysd_version" command_aliases=() commands=() flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--ad-domain=") two_word_flags+=("--ad-domain") two_word_flags+=("-D") flags+=("--ad-server=") two_word_flags+=("--ad-server") two_word_flags+=("-S") flags+=("--cache-dir=") two_word_flags+=("--cache-dir") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--run-dir=") two_word_flags+=("--run-dir") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() noun_aliases=() } _adsysd_root_command() { last_command="adsysd" command_aliases=() commands=() commands+=("completion") commands+=("help") commands+=("version") flags=() two_word_flags=() local_nonpersistent_flags=() flags_with_completion=() flags_completion=() flags+=("--ad-domain=") two_word_flags+=("--ad-domain") two_word_flags+=("-D") flags+=("--ad-server=") two_word_flags+=("--ad-server") two_word_flags+=("-S") flags+=("--cache-dir=") two_word_flags+=("--cache-dir") flags+=("--config=") two_word_flags+=("--config") two_word_flags+=("-c") flags+=("--run-dir=") two_word_flags+=("--run-dir") flags+=("--socket=") two_word_flags+=("--socket") two_word_flags+=("-s") flags+=("--timeout=") two_word_flags+=("--timeout") two_word_flags+=("-t") flags+=("--verbose") flags+=("-v") must_have_one_flag=() must_have_one_noun=() noun_aliases=() } __start_adsysd() { local cur prev words cword declare -A flaghash 2>/dev/null || : declare -A aliashash 2>/dev/null || : if declare -F _init_completion >/dev/null 2>&1; then _init_completion -s || return else __adsysd_init_completion -n "=" || return fi local c=0 local flags=() local two_word_flags=() local local_nonpersistent_flags=() local flags_with_completion=() local flags_completion=() local commands=("adsysd") local must_have_one_flag=() local must_have_one_noun=() local has_completion_function local last_command local nouns=() __adsysd_handle_word } if [[ $(type -t compopt) = "builtin" ]]; then complete -o default -F __start_adsysd adsysd else complete -o default -o nospace -F __start_adsysd adsysd fi # ex: ts=4 sw=4 et filetype=sh --- PASS: TestAppNoUsageError (0.00s) === RUN TestAppUsageError --- PASS: TestAppUsageError (0.00s) === RUN TestAppCanQuitWhenExecute time="2021-06-21T12:47:02Z" level=warning msg="could not get system startup time? Can’t list next refresh: Process org.freedesktop.systemd1 exited with status 1" --- PASS: TestAppCanQuitWhenExecute (0.07s) === RUN TestAppCanQuitAfterExecute time="2021-06-21T12:47:02Z" level=warning msg="could not get system startup time? Can’t list next refresh: Process org.freedesktop.systemd1 exited with status 1" --- PASS: TestAppCanQuitAfterExecute (1.00s) === RUN TestAppCanQuitWithoutExecute daemon_test.go:93: We need to initialize the daemon first, so this is not possible and will hang forever (ready not closed) --- SKIP: TestAppCanQuitWithoutExecute (0.00s) === RUN TestAppRunFailsOnDaemonCreationAndQuit time="2021-06-21T12:47:03Z" level=warning msg="could not get system startup time? Can’t list next refresh: Process org.freedesktop.systemd1 exited with status 1" --- PASS: TestAppRunFailsOnDaemonCreationAndQuit (0.00s) === RUN TestAppRunFailsOnServiceCreationAndQuit --- PASS: TestAppRunFailsOnServiceCreationAndQuit (0.00s) === RUN TestAppCanSigHupWhenExecute time="2021-06-21T12:47:03Z" level=warning msg="could not get system startup time? Can’t list next refresh: Process org.freedesktop.systemd1 exited with status 1" --- PASS: TestAppCanSigHupWhenExecute (0.05s) === RUN TestAppCanSigHupAfterExecute time="2021-06-21T12:47:03Z" level=warning msg="could not get system startup time? Can’t list next refresh: Process org.freedesktop.systemd1 exited with status 1" --- PASS: TestAppCanSigHupAfterExecute (1.01s) === RUN TestAppCanSigHupWithoutExecute --- PASS: TestAppCanSigHupWithoutExecute (0.00s) === RUN TestAppTimeout time="2021-06-21T12:47:04Z" level=warning msg="could not get system startup time? Can’t list next refresh: Process org.freedesktop.systemd1 exited with status 1" --- PASS: TestAppTimeout (1.02s) === RUN TestAppGetRootCmd === PAUSE TestAppGetRootCmd === RUN TestConfigLoad time="2021-06-21T12:47:05Z" level=warning msg="could not get system startup time? Can’t list next refresh: Process org.freedesktop.systemd1 exited with status 1" time="2021-06-21T12:47:05Z" level=info msg="Serving on /tmp/TestConfigLoad228799097/001/adsys.socket" time="2021-06-21T12:47:05Z" level=info msg="Stopping daemon requested." time="2021-06-21T12:47:05Z" level=info msg="Wait for active requests to close." --- PASS: TestConfigLoad (0.05s) === RUN TestConfigChange time="2021-06-21T12:47:05Z" level=warning msg="could not get system startup time? Can’t list next refresh: Process org.freedesktop.systemd1 exited with status 1" time="2021-06-21T12:47:05Z" level=info msg="Serving on /tmp/TestConfigChange3069548772/001/adsys.socket" time="2021-06-21T12:47:06Z" level=info msg="Stopping daemon requested." time="2021-06-21T12:47:06Z" level=info msg="Wait for active requests to close." time="2021-06-21T12:47:06Z" level=debug msg="All connections have now ended." time="2021-06-21T12:47:06Z" level=debug msg=Quitting --- PASS: TestConfigChange (0.16s) === CONT TestAppGetRootCmd --- PASS: TestAppGetRootCmd (0.00s) PASS ok github.com/ubuntu/adsys/cmd/adsysd/daemon 3.493s Integration tests skipped as requested ok github.com/ubuntu/adsys/cmd/integration_tests 0.092s ? github.com/ubuntu/adsys/doc [no test files] === RUN TestLoadServerInfo === PAUSE TestLoadServerInfo === RUN TestNew === PAUSE TestNew === CONT TestLoadServerInfo === CONT TestNew === RUN TestLoadServerInfo/return_url_directly_ad_domain_from_sssd.conf === PAUSE TestLoadServerInfo/return_url_directly_ad_domain_from_sssd.conf === RUN TestLoadServerInfo/return_ad_domain_and_url_from_sssd.conf === PAUSE TestLoadServerInfo/return_ad_domain_and_url_from_sssd.conf === RUN TestLoadServerInfo/return_ad_domain_and_url_by_only_providing_our_domain_section === PAUSE TestLoadServerInfo/return_ad_domain_and_url_by_only_providing_our_domain_section === RUN TestLoadServerInfo/error_on_missing_domain_and_no_sssdconf === PAUSE TestLoadServerInfo/error_on_missing_domain_and_no_sssdconf === RUN TestLoadServerInfo/return_directly_url_and_domain_if_provided === PAUSE TestLoadServerInfo/return_directly_url_and_domain_if_provided === RUN TestLoadServerInfo/return_domain_directly_and_url_from_sssd.conf === PAUSE TestLoadServerInfo/return_domain_directly_and_url_from_sssd.conf === RUN TestLoadServerInfo/return_url_directly_and_domain_from_sssd.conf === PAUSE TestLoadServerInfo/return_url_directly_and_domain_from_sssd.conf === RUN TestLoadServerInfo/return_domain_if_set_directly_and_no_url_if_no_sssd.conf === PAUSE TestLoadServerInfo/return_domain_if_set_directly_and_no_url_if_no_sssd.conf === RUN TestLoadServerInfo/error_when_no_sssd_section_and_no_domain_provided === PAUSE TestLoadServerInfo/error_when_no_sssd_section_and_no_domain_provided === RUN TestLoadServerInfo/return__url_and_domain_from_sssd.conf === PAUSE TestLoadServerInfo/return__url_and_domain_from_sssd.conf === RUN TestLoadServerInfo/skip_missing_url_in_sssdconf === PAUSE TestLoadServerInfo/skip_missing_url_in_sssdconf === RUN TestLoadServerInfo/error_on_missing_url/domain_and_no_sssdconf === PAUSE TestLoadServerInfo/error_on_missing_url/domain_and_no_sssdconf === CONT TestLoadServerInfo/return_url_directly_ad_domain_from_sssd.conf === CONT TestLoadServerInfo/return_url_directly_and_domain_from_sssd.conf === CONT TestLoadServerInfo/return_domain_directly_and_url_from_sssd.conf === CONT TestLoadServerInfo/error_on_missing_url/domain_and_no_sssdconf === CONT TestLoadServerInfo/return_directly_url_and_domain_if_provided === CONT TestLoadServerInfo/skip_missing_url_in_sssdconf === CONT TestLoadServerInfo/error_on_missing_domain_and_no_sssdconf === CONT TestLoadServerInfo/return_ad_domain_and_url_by_only_providing_our_domain_section === CONT TestLoadServerInfo/return__url_and_domain_from_sssd.conf === CONT TestLoadServerInfo/return_ad_domain_and_url_from_sssd.conf === CONT TestLoadServerInfo/error_when_no_sssd_section_and_no_domain_provided === CONT TestLoadServerInfo/return_domain_if_set_directly_and_no_url_if_no_sssd.conf --- PASS: TestLoadServerInfo (0.00s) --- PASS: TestLoadServerInfo/return_url_directly_ad_domain_from_sssd.conf (0.00s) --- PASS: TestLoadServerInfo/return_url_directly_and_domain_from_sssd.conf (0.00s) --- PASS: TestLoadServerInfo/return_domain_directly_and_url_from_sssd.conf (0.00s) --- PASS: TestLoadServerInfo/error_on_missing_url/domain_and_no_sssdconf (0.00s) --- PASS: TestLoadServerInfo/return_directly_url_and_domain_if_provided (0.00s) --- PASS: TestLoadServerInfo/error_on_missing_domain_and_no_sssdconf (0.00s) --- PASS: TestLoadServerInfo/skip_missing_url_in_sssdconf (0.00s) --- PASS: TestLoadServerInfo/return_ad_domain_and_url_by_only_providing_our_domain_section (0.00s) --- PASS: TestLoadServerInfo/return__url_and_domain_from_sssd.conf (0.00s) --- PASS: TestLoadServerInfo/return_ad_domain_and_url_from_sssd.conf (0.00s) --- PASS: TestLoadServerInfo/error_when_no_sssd_section_and_no_domain_provided (0.00s) --- PASS: TestLoadServerInfo/return_domain_if_set_directly_and_no_url_if_no_sssd.conf (0.00s) === RUN TestNew/No_url_can_be_found_in_discovery_mode_but_we_had_a_domain === PAUSE TestNew/No_url_can_be_found_in_discovery_mode_but_we_had_a_domain === RUN TestNew/Error_on_discover_returns_an_empty_URL === PAUSE TestNew/Error_on_discover_returns_an_empty_URL === RUN TestNew/New_and_Done_succeeds_as_expected,_first_run === PAUSE TestNew/New_and_Done_succeeds_as_expected,_first_run === RUN TestNew/Adsys_directory_can_already_exists === PAUSE TestNew/Adsys_directory_can_already_exists === RUN TestNew/AD_server_in_discovery_mode === PAUSE TestNew/AD_server_in_discovery_mode === RUN TestNew/Ad_New_fails_prevents_adsysservice_creation === PAUSE TestNew/Ad_New_fails_prevents_adsysservice_creation === RUN TestNew/No_url_and_domain_while_sssdconf_does_not_exists === PAUSE TestNew/No_url_and_domain_while_sssdconf_does_not_exists === CONT TestNew/No_url_can_be_found_in_discovery_mode_but_we_had_a_domain === CONT TestNew/No_url_and_domain_while_sssdconf_does_not_exists === CONT TestNew/Ad_New_fails_prevents_adsysservice_creation === CONT TestNew/AD_server_in_discovery_mode === CONT TestNew/Adsys_directory_can_already_exists === CONT TestNew/New_and_Done_succeeds_as_expected,_first_run === CONT TestNew/Error_on_discover_returns_an_empty_URL time="2021-06-21T12:47:03Z" level=warning msg="could not get system startup time? Can’t list next refresh: Process org.freedesktop.systemd1 exited with status 1" time="2021-06-21T12:47:03Z" level=warning msg="could not get system startup time? Can’t list next refresh: Process org.freedesktop.systemd1 exited with status 1" time="2021-06-21T12:47:03Z" level=warning msg="could not get system startup time? Can’t list next refresh: Process org.freedesktop.systemd1 exited with status 1" --- PASS: TestNew (0.00s) --- PASS: TestNew/Ad_New_fails_prevents_adsysservice_creation (0.00s) --- PASS: TestNew/No_url_and_domain_while_sssdconf_does_not_exists (0.00s) --- PASS: TestNew/No_url_can_be_found_in_discovery_mode_but_we_had_a_domain (0.00s) --- PASS: TestNew/Error_on_discover_returns_an_empty_URL (0.00s) --- PASS: TestNew/Adsys_directory_can_already_exists (0.01s) --- PASS: TestNew/New_and_Done_succeeds_as_expected,_first_run (0.01s) --- PASS: TestNew/AD_server_in_discovery_mode (0.01s) PASS ok github.com/ubuntu/adsys/internal/adsysservice 0.049s ? github.com/ubuntu/adsys/internal/adsysservice/actions [no test files] === RUN TestIsAllowed === PAUSE TestIsAllowed === RUN TestPeerCredsInfoAuthType === PAUSE TestPeerCredsInfoAuthType === RUN TestServerPeerCredsHandshake === PAUSE TestServerPeerCredsHandshake === RUN TestServerPeerCredsInvalidSocket === PAUSE TestServerPeerCredsInvalidSocket === RUN TestIsAllowedFromContext === PAUSE TestIsAllowedFromContext === RUN TestIsAllowedFromContextWithoutPeer === PAUSE TestIsAllowedFromContextWithoutPeer === RUN TestIsAllowedFromContextWithInvalidPeerCreds === PAUSE TestIsAllowedFromContextWithInvalidPeerCreds === RUN TestIsAllowedFromContextWithoutUserKey === PAUSE TestIsAllowedFromContextWithoutUserKey === CONT TestIsAllowed === CONT TestIsAllowedFromContextWithoutUserKey === CONT TestIsAllowedFromContextWithInvalidPeerCreds === CONT TestIsAllowedFromContextWithoutPeer === RUN TestIsAllowed/Process_doesn't_exists === PAUSE TestIsAllowed/Process_doesn't_exists === RUN TestIsAllowed/Invalid_process_stat_file:_field_isn't_present === PAUSE TestIsAllowed/Invalid_process_stat_file:_field_isn't_present === RUN TestIsAllowed/Polkit_dbus_call_errors_out === PAUSE TestIsAllowed/Polkit_dbus_call_errors_out === RUN TestIsAllowed/ActionAlwaysAllowed_is_always_allowed === PAUSE TestIsAllowed/ActionAlwaysAllowed_is_always_allowed === RUN TestIsAllowed/User_Action_for_own_user_translates_to_Self_parameter_as_ID === PAUSE TestIsAllowed/User_Action_for_own_user_translates_to_Self_parameter_as_ID === RUN TestIsAllowed/Valid_process_and_ACK === PAUSE TestIsAllowed/Valid_process_and_ACK === RUN TestIsAllowed/Valid_process_and_NACK === PAUSE TestIsAllowed/Valid_process_and_NACK === RUN TestIsAllowed/Invalid_process_stat_file:_missing_) === PAUSE TestIsAllowed/Invalid_process_stat_file:_missing_) === RUN TestIsAllowed/Invalid_process_stat_file:_)_at_the_end === PAUSE TestIsAllowed/Invalid_process_stat_file:_)_at_the_end === RUN TestIsAllowed/Invalid_process_stat_file:_field_isn't_an_int === PAUSE TestIsAllowed/Invalid_process_stat_file:_field_isn't_an_int === RUN TestIsAllowed/User_Action_on_other_user_translates_to_Other_parameter_as_ID === PAUSE TestIsAllowed/User_Action_on_other_user_translates_to_Other_parameter_as_ID === RUN TestIsAllowed/Root_is_always_authorized === PAUSE TestIsAllowed/Root_is_always_authorized === CONT TestIsAllowedFromContext --- PASS: TestIsAllowedFromContextWithoutUserKey (0.00s) === CONT TestServerPeerCredsInvalidSocket --- PASS: TestServerPeerCredsInvalidSocket (0.00s) === CONT TestServerPeerCredsHandshake --- PASS: TestServerPeerCredsHandshake (0.00s) === CONT TestPeerCredsInfoAuthType --- PASS: TestPeerCredsInfoAuthType (0.00s) === CONT TestIsAllowed/Process_doesn't_exists === CONT TestIsAllowed/Root_is_always_authorized === CONT TestIsAllowed/User_Action_on_other_user_translates_to_Other_parameter_as_ID === CONT TestIsAllowed/Invalid_process_stat_file:_field_isn't_an_int === CONT TestIsAllowed/Invalid_process_stat_file:_)_at_the_end === CONT TestIsAllowed/Invalid_process_stat_file:_missing_) === CONT TestIsAllowed/Valid_process_and_NACK === CONT TestIsAllowed/Valid_process_and_ACK === CONT TestIsAllowed/User_Action_for_own_user_translates_to_Self_parameter_as_ID === CONT TestIsAllowed/ActionAlwaysAllowed_is_always_allowed === CONT TestIsAllowed/Polkit_dbus_call_errors_out === CONT TestIsAllowed/Invalid_process_stat_file:_field_isn't_present --- PASS: TestIsAllowed (0.00s) --- PASS: TestIsAllowed/Process_doesn't_exists (0.00s) --- PASS: TestIsAllowed/Root_is_always_authorized (0.00s) --- PASS: TestIsAllowed/User_Action_on_other_user_translates_to_Other_parameter_as_ID (0.00s) --- PASS: TestIsAllowed/Invalid_process_stat_file:_field_isn't_an_int (0.00s) --- PASS: TestIsAllowed/Invalid_process_stat_file:_)_at_the_end (0.00s) --- PASS: TestIsAllowed/Invalid_process_stat_file:_missing_) (0.00s) --- PASS: TestIsAllowed/Valid_process_and_NACK (0.00s) --- PASS: TestIsAllowed/Valid_process_and_ACK (0.00s) --- PASS: TestIsAllowed/User_Action_for_own_user_translates_to_Self_parameter_as_ID (0.00s) --- PASS: TestIsAllowed/ActionAlwaysAllowed_is_always_allowed (0.00s) --- PASS: TestIsAllowed/Polkit_dbus_call_errors_out (0.00s) --- PASS: TestIsAllowed/Invalid_process_stat_file:_field_isn't_present (0.00s) --- PASS: TestIsAllowedFromContextWithInvalidPeerCreds (0.00s) --- PASS: TestIsAllowedFromContextWithoutPeer (0.00s) === RUN TestIsAllowedFromContext/Extract_current_user_action_from_request === PAUSE TestIsAllowedFromContext/Extract_current_user_action_from_request === RUN TestIsAllowedFromContext/Extract_other_user_action_from_request === PAUSE TestIsAllowedFromContext/Extract_other_user_action_from_request === RUN TestIsAllowedFromContext/User_lookup_returns_an_error === PAUSE TestIsAllowedFromContext/User_lookup_returns_an_error === RUN TestIsAllowedFromContext/User_has_invalid_uid === PAUSE TestIsAllowedFromContext/User_has_invalid_uid === RUN TestIsAllowedFromContext/Root_is_always_authorized === PAUSE TestIsAllowedFromContext/Root_is_always_authorized === RUN TestIsAllowedFromContext/Valid_process_and_ACK === PAUSE TestIsAllowedFromContext/Valid_process_and_ACK === RUN TestIsAllowedFromContext/Valid_process_and_NACK === PAUSE TestIsAllowedFromContext/Valid_process_and_NACK === CONT TestIsAllowedFromContext/Extract_current_user_action_from_request === CONT TestIsAllowedFromContext/Valid_process_and_NACK === CONT TestIsAllowedFromContext/Valid_process_and_ACK === CONT TestIsAllowedFromContext/Root_is_always_authorized === CONT TestIsAllowedFromContext/User_has_invalid_uid === CONT TestIsAllowedFromContext/User_lookup_returns_an_error === CONT TestIsAllowedFromContext/Extract_other_user_action_from_request --- PASS: TestIsAllowedFromContext (0.00s) --- PASS: TestIsAllowedFromContext/Extract_current_user_action_from_request (0.00s) --- PASS: TestIsAllowedFromContext/Valid_process_and_NACK (0.00s) --- PASS: TestIsAllowedFromContext/Valid_process_and_ACK (0.00s) --- PASS: TestIsAllowedFromContext/Root_is_always_authorized (0.00s) --- PASS: TestIsAllowedFromContext/User_has_invalid_uid (0.00s) --- PASS: TestIsAllowedFromContext/User_lookup_returns_an_error (0.00s) --- PASS: TestIsAllowedFromContext/Extract_other_user_action_from_request (0.00s) PASS ok github.com/ubuntu/adsys/internal/authorizer 0.008s ? github.com/ubuntu/adsys/internal/cmdhandler [no test files] === RUN TestSetVerboseMode === RUN TestSetVerboseMode/1_is_for_info === RUN TestSetVerboseMode/2_is_for_debug === RUN TestSetVerboseMode/3_is_debug_printing_callers === RUN TestSetVerboseMode/Default_level_is_warning --- PASS: TestSetVerboseMode (0.00s) --- PASS: TestSetVerboseMode/1_is_for_info (0.00s) --- PASS: TestSetVerboseMode/2_is_for_debug (0.00s) --- PASS: TestSetVerboseMode/3_is_debug_printing_callers (0.00s) --- PASS: TestSetVerboseMode/Default_level_is_warning (0.00s) === RUN TestInit === RUN TestInit/Empty_configuration_file_is_supported === RUN TestInit/Environment_is_supported === RUN TestInit/Flag_has_precedence_over_env === RUN TestInit/Error_on_callback_returning_error_on_first_call === RUN TestInit/Load_configuration,_no_file,_no_flag,_no_env === RUN TestInit/Flag_is_supported === RUN TestInit/Configuration_changed === RUN TestInit/Configuration_file_created_after_Init()_is_not_taken_into_account === RUN TestInit/Callback_in_error_on_refresh_only_prints_warning time="2021-06-21T12:47:04Z" level=warning msg="Error while refreshing configuration: Error from callback" === RUN TestInit/Configuration_flag_has_precedence_over_local_file === RUN TestInit/Error_on_config_flag_points_to_unexisting_path === RUN TestInit/Load_configuration_with_file === RUN TestInit/No_config_flag_set_before_Init_is_call_is_ignored === RUN TestInit/Configuration_flag,_not_in_config_dir === RUN TestInit/Env_has_precedence_over_configuration === RUN TestInit/Error_on_no_verbose_flag_set_before_Init_is_call === RUN TestInit/Error_on_invalid_configuration_file --- PASS: TestInit (1.01s) --- PASS: TestInit/Empty_configuration_file_is_supported (0.00s) --- PASS: TestInit/Environment_is_supported (0.00s) --- PASS: TestInit/Flag_has_precedence_over_env (0.00s) --- PASS: TestInit/Error_on_callback_returning_error_on_first_call (0.00s) --- PASS: TestInit/Load_configuration,_no_file,_no_flag,_no_env (0.00s) --- PASS: TestInit/Flag_is_supported (0.00s) --- PASS: TestInit/Configuration_changed (0.00s) --- PASS: TestInit/Configuration_file_created_after_Init()_is_not_taken_into_account (1.00s) --- PASS: TestInit/Callback_in_error_on_refresh_only_prints_warning (0.00s) --- PASS: TestInit/Configuration_flag_has_precedence_over_local_file (0.00s) --- PASS: TestInit/Error_on_config_flag_points_to_unexisting_path (0.00s) --- PASS: TestInit/Load_configuration_with_file (0.00s) --- PASS: TestInit/No_config_flag_set_before_Init_is_call_is_ignored (0.00s) --- PASS: TestInit/Configuration_flag,_not_in_config_dir (0.00s) --- PASS: TestInit/Env_has_precedence_over_configuration (0.00s) --- PASS: TestInit/Error_on_no_verbose_flag_set_before_Init_is_call (0.00s) --- PASS: TestInit/Error_on_invalid_configuration_file (0.00s) === RUN TestLoadConfig === PAUSE TestLoadConfig === CONT TestLoadConfig === RUN TestLoadConfig/Empty_configuration_is_supported === PAUSE TestLoadConfig/Empty_configuration_is_supported === RUN TestLoadConfig/Load_configuration_deserialize_its === PAUSE TestLoadConfig/Load_configuration_deserialize_its === CONT TestLoadConfig/Empty_configuration_is_supported === CONT TestLoadConfig/Load_configuration_deserialize_its --- PASS: TestLoadConfig (0.00s) --- PASS: TestLoadConfig/Empty_configuration_is_supported (0.00s) --- PASS: TestLoadConfig/Load_configuration_deserialize_its (0.00s) PASS ok github.com/ubuntu/adsys/internal/config 1.010s ? github.com/ubuntu/adsys/internal/consts [no test files] === RUN TestStartStop === PAUSE TestStartStop === RUN TestStopBeforeServe === PAUSE TestStopBeforeServe === RUN TestChangeSocket === PAUSE TestChangeSocket === RUN TestSocketActivation === PAUSE TestSocketActivation === RUN TestUseSocketIgnoredWithSocketActivation === PAUSE TestUseSocketIgnoredWithSocketActivation === RUN TestSdNotifier === PAUSE TestSdNotifier === RUN TestFailingOption === PAUSE TestFailingOption === RUN TestCannotCreateSocket === PAUSE TestCannotCreateSocket === RUN TestServerStartListenTimeout === PAUSE TestServerStartListenTimeout === RUN TestServerDontTimeoutWithActiveRequest === PAUSE TestServerDontTimeoutWithActiveRequest === RUN TestServerDontTimeoutWithMultipleActiveRequests === PAUSE TestServerDontTimeoutWithMultipleActiveRequests === RUN TestServerChangeTimeout === PAUSE TestServerChangeTimeout === RUN TestServerDoubleQuit === PAUSE TestServerDoubleQuit === CONT TestStartStop time="2021-06-21T12:47:04Z" level=info msg="Serving on /tmp/TestStartStop3078678817/001/test.sock" === CONT TestServerDoubleQuit time="2021-06-21T12:47:04Z" level=info msg="Serving on /tmp/TestServerDoubleQuit4014996137/001/test.sock" === CONT TestServerChangeTimeout time="2021-06-21T12:47:04Z" level=info msg="Serving on /tmp/TestServerChangeTimeout381579584/001/test.sock" === CONT TestServerDontTimeoutWithMultipleActiveRequests time="2021-06-21T12:47:04Z" level=info msg="Serving on /tmp/TestServerDontTimeoutWithMultipleActiveRequests860848781/001/test.sock" time="2021-06-21T12:47:04Z" level=info msg="Stopping daemon requested." time="2021-06-21T12:47:04Z" level=info msg="Wait for active requests to close." --- PASS: TestServerDoubleQuit (0.01s) === CONT TestServerDontTimeoutWithActiveRequest time="2021-06-21T12:47:04Z" level=info msg="Serving on /tmp/TestServerDontTimeoutWithActiveRequest2291245523/001/test.sock" time="2021-06-21T12:47:04Z" level=info msg="Stopping daemon requested." time="2021-06-21T12:47:04Z" level=info msg="Wait for active requests to close." --- PASS: TestStartStop (0.01s) === CONT TestServerStartListenTimeout time="2021-06-21T12:47:04Z" level=info msg="Serving on /tmp/TestServerStartListenTimeout4134120889/001/test.sock" time="2021-06-21T12:47:04Z" level=info msg="Stopping daemon requested." --- PASS: TestServerStartListenTimeout (0.01s) === CONT TestCannotCreateSocket --- PASS: TestCannotCreateSocket (0.00s) === CONT TestFailingOption --- PASS: TestFailingOption (0.00s) === CONT TestSdNotifier === RUN TestSdNotifier/sends_signal === PAUSE TestSdNotifier/sends_signal === RUN TestSdNotifier/doesn't_fail_when_not_under_systemd === PAUSE TestSdNotifier/doesn't_fail_when_not_under_systemd === RUN TestSdNotifier/fails_when_notifier_fails === PAUSE TestSdNotifier/fails_when_notifier_fails === CONT TestUseSocketIgnoredWithSocketActivation time="2021-06-21T12:47:04Z" level=info msg="Serving on /tmp/TestUseSocketIgnoredWithSocketActivation1229719037/001/socket" time="2021-06-21T12:47:04Z" level=info msg="Stopping daemon requested." time="2021-06-21T12:47:04Z" level=info msg="Wait for active requests to close." --- PASS: TestUseSocketIgnoredWithSocketActivation (0.02s) === CONT TestSocketActivation === RUN TestSocketActivation/fails_when_Listeners()_fails === PAUSE TestSocketActivation/fails_when_Listeners()_fails === RUN TestSocketActivation/success_with_one_socket === PAUSE TestSocketActivation/success_with_one_socket === RUN TestSocketActivation/fails_with_many_sockets === PAUSE TestSocketActivation/fails_with_many_sockets === CONT TestChangeSocket time="2021-06-21T12:47:04Z" level=info msg="Serving on /tmp/TestChangeSocket2368882372/001/test.sock" time="2021-06-21T12:47:04Z" level=info msg="Stopping daemon requested." --- PASS: TestServerChangeTimeout (0.05s) === CONT TestStopBeforeServe time="2021-06-21T12:47:04Z" level=info msg="Stopping daemon requested." time="2021-06-21T12:47:04Z" level=info msg="Wait for active requests to close." --- PASS: TestStopBeforeServe (0.00s) === CONT TestSdNotifier/sends_signal time="2021-06-21T12:47:04Z" level=info msg="Serving on /tmp/TestSdNotifier_sends_signal3961877275/001/socket" time="2021-06-21T12:47:04Z" level=info msg="Stopping daemon requested." time="2021-06-21T12:47:04Z" level=info msg="Wait for active requests to close." time="2021-06-21T12:47:04Z" level=info msg="Serving on /tmp/TestChangeSocket2368882372/001/test2.sock" time="2021-06-21T12:47:04Z" level=info msg="Stopping daemon requested." time="2021-06-21T12:47:04Z" level=info msg="Wait for active requests to close." === CONT TestSdNotifier/fails_when_notifier_fails === CONT TestSdNotifier/doesn't_fail_when_not_under_systemd time="2021-06-21T12:47:04Z" level=info msg="Serving on /tmp/TestSdNotifier_doesn't_fail_when_not_under_systemd570116312/001/socket" time="2021-06-21T12:47:04Z" level=info msg="Stopping daemon requested." time="2021-06-21T12:47:04Z" level=info msg="Wait for active requests to close." time="2021-06-21T12:47:04Z" level=info msg="Stopping daemon requested." time="2021-06-21T12:47:04Z" level=info msg="Wait for active requests to close." time="2021-06-21T12:47:04Z" level=info msg="Stopping daemon requested." time="2021-06-21T12:47:04Z" level=info msg="Wait for active requests to close." --- PASS: TestChangeSocket (0.03s) === CONT TestSocketActivation/fails_when_Listeners()_fails --- PASS: TestSdNotifier (0.00s) --- PASS: TestSdNotifier/sends_signal (0.01s) --- PASS: TestSdNotifier/fails_when_notifier_fails (0.00s) --- PASS: TestSdNotifier/doesn't_fail_when_not_under_systemd (0.01s) === CONT TestSocketActivation/fails_with_many_sockets === CONT TestSocketActivation/success_with_one_socket time="2021-06-21T12:47:04Z" level=info msg="Serving on /tmp/TestSocketActivation_success_with_one_socket1554767716/001/sock1" time="2021-06-21T12:47:04Z" level=info msg="Stopping daemon requested." time="2021-06-21T12:47:04Z" level=info msg="Wait for active requests to close." --- PASS: TestSocketActivation (0.00s) --- PASS: TestSocketActivation/fails_when_Listeners()_fails (0.00s) --- PASS: TestSocketActivation/fails_with_many_sockets (0.00s) --- PASS: TestSocketActivation/success_with_one_socket (0.01s) time="2021-06-21T12:47:04Z" level=info msg="Stopping daemon requested." --- PASS: TestServerDontTimeoutWithMultipleActiveRequests (0.11s) time="2021-06-21T12:47:04Z" level=info msg="Stopping daemon requested." --- PASS: TestServerDontTimeoutWithActiveRequest (0.12s) PASS ok github.com/ubuntu/adsys/internal/daemon 0.133s === RUN TestOnErrorWithNoError === PAUSE TestOnErrorWithNoError === RUN TestOnErrorWithError === PAUSE TestOnErrorWithError === RUN TestLogOnErrorWithNoError --- PASS: TestLogOnErrorWithNoError (0.00s) === RUN TestLogOnErrorWithError --- PASS: TestLogOnErrorWithError (0.00s) === RUN TestLogOnErrorContextWithNoError --- PASS: TestLogOnErrorContextWithNoError (0.00s) === RUN TestLogOnErrorContextWithError --- PASS: TestLogOnErrorContextWithError (0.00s) === RUN TestLogFuncOnErrorWithNoError --- PASS: TestLogFuncOnErrorWithNoError (0.00s) === RUN TestLogFuncOnErrorWithError --- PASS: TestLogFuncOnErrorWithError (0.00s) === RUN TestLogFuncOnErrorContextNoError --- PASS: TestLogFuncOnErrorContextNoError (0.00s) === RUN TestLogFuncOnErrorContextWithError --- PASS: TestLogFuncOnErrorContextWithError (0.00s) === CONT TestOnErrorWithNoError --- PASS: TestOnErrorWithNoError (0.00s) === CONT TestOnErrorWithError --- PASS: TestOnErrorWithError (0.00s) PASS ok github.com/ubuntu/adsys/internal/decorate 0.004s === RUN TestCleanDirectory === PAUSE TestCleanDirectory === RUN TestCleanDirectoryNoDirectoryExists === PAUSE TestCleanDirectoryNoDirectoryExists === RUN TestCleanDirectoryCantRemoveDirectory === PAUSE TestCleanDirectoryCantRemoveDirectory === RUN TestInstallOnlyMode --- PASS: TestInstallOnlyMode (0.00s) === RUN TestDestDirectory --- PASS: TestDestDirectory (0.00s) === CONT TestCleanDirectory --- PASS: TestCleanDirectory (0.00s) === CONT TestCleanDirectoryCantRemoveDirectory --- PASS: TestCleanDirectoryCantRemoveDirectory (0.00s) === CONT TestCleanDirectoryNoDirectoryExists --- PASS: TestCleanDirectoryNoDirectoryExists (0.00s) PASS ok github.com/ubuntu/adsys/internal/generators 0.005s === RUN TestNoNotification === PAUSE TestNoNotification === RUN TestNewConnectionNotification === PAUSE TestNewConnectionNotification === RUN TestDoneConnectionNotification === PAUSE TestDoneConnectionNotification === RUN TestErrorFromHandlerReturned === PAUSE TestErrorFromHandlerReturned === RUN TestErrorOnNilStream === PAUSE TestErrorOnNilStream === CONT TestNoNotification --- PASS: TestNoNotification (0.00s) === CONT TestErrorOnNilStream --- PASS: TestErrorOnNilStream (0.00s) === CONT TestErrorFromHandlerReturned --- PASS: TestErrorFromHandlerReturned (0.00s) === CONT TestDoneConnectionNotification --- PASS: TestDoneConnectionNotification (0.00s) === CONT TestNewConnectionNotification --- PASS: TestNewConnectionNotification (0.00s) PASS ok github.com/ubuntu/adsys/internal/grpc/connectionnotify 0.016s === RUN TestActiveConnection === PAUSE TestActiveConnection === RUN TestTimeoutOnInactiveConnection === PAUSE TestTimeoutOnInactiveConnection === RUN TestCancelOnClientSide === PAUSE TestCancelOnClientSide === RUN TestClientInterceptorFailed === PAUSE TestClientInterceptorFailed === RUN TestRecvMessageError === PAUSE TestRecvMessageError === CONT TestActiveConnection === CONT TestClientInterceptorFailed --- PASS: TestClientInterceptorFailed (0.00s) === CONT TestRecvMessageError --- PASS: TestRecvMessageError (0.00s) === CONT TestCancelOnClientSide --- PASS: TestCancelOnClientSide (0.00s) === CONT TestTimeoutOnInactiveConnection --- PASS: TestTimeoutOnInactiveConnection (0.05s) --- PASS: TestActiveConnection (0.15s) PASS ok github.com/ubuntu/adsys/internal/grpc/contextidler 0.156s === RUN TestFormat === PAUSE TestFormat === CONT TestFormat === RUN TestFormat/GRPC_Unknown_errors_don’t_print_status_and_daemon === PAUSE TestFormat/GRPC_Unknown_errors_don’t_print_status_and_daemon === RUN TestFormat/GRPC_Random_errors_prints_status_and_message === PAUSE TestFormat/GRPC_Random_errors_prints_status_and_message === RUN TestFormat/nil_returns_nil === PAUSE TestFormat/nil_returns_nil === RUN TestFormat/non_GRPC_errors_are_returned_as_is === PAUSE TestFormat/non_GRPC_errors_are_returned_as_is === RUN TestFormat/GRPC_Unavailable_errors_prints_daemon_name === PAUSE TestFormat/GRPC_Unavailable_errors_prints_daemon_name === RUN TestFormat/GRPC_Deadline_errors_don’t_print_status_nor_daemon_nor_message === PAUSE TestFormat/GRPC_Deadline_errors_don’t_print_status_nor_daemon_nor_message === CONT TestFormat/GRPC_Unknown_errors_don’t_print_status_and_daemon === CONT TestFormat/GRPC_Deadline_errors_don’t_print_status_nor_daemon_nor_message === CONT TestFormat/GRPC_Unavailable_errors_prints_daemon_name === CONT TestFormat/non_GRPC_errors_are_returned_as_is === CONT TestFormat/nil_returns_nil === CONT TestFormat/GRPC_Random_errors_prints_status_and_message --- PASS: TestFormat (0.00s) --- PASS: TestFormat/GRPC_Unknown_errors_don’t_print_status_and_daemon (0.00s) --- PASS: TestFormat/GRPC_Deadline_errors_don’t_print_status_nor_daemon_nor_message (0.00s) --- PASS: TestFormat/GRPC_Unavailable_errors_prints_daemon_name (0.00s) --- PASS: TestFormat/non_GRPC_errors_are_returned_as_is (0.00s) --- PASS: TestFormat/nil_returns_nil (0.00s) --- PASS: TestFormat/GRPC_Random_errors_prints_status_and_message (0.00s) PASS ok github.com/ubuntu/adsys/internal/grpc/grpcerror 0.023s === RUN TestStreamServer === PAUSE TestStreamServer === RUN TestStreamClient === PAUSE TestStreamClient === CONT TestStreamServer --- PASS: TestStreamServer (0.00s) === CONT TestStreamClient --- PASS: TestStreamClient (0.00s) PASS ok github.com/ubuntu/adsys/internal/grpc/interceptorschain 0.032s === RUN TestChildRecvMsgAndHandlerCalled === PAUSE TestChildRecvMsgAndHandlerCalled === CONT TestChildRecvMsgAndHandlerCalled === RUN TestChildRecvMsgAndHandlerCalled/Handler_and_RecvMsg_are_called === PAUSE TestChildRecvMsgAndHandlerCalled/Handler_and_RecvMsg_are_called === RUN TestChildRecvMsgAndHandlerCalled/Info_being_nil_has_no_impact === PAUSE TestChildRecvMsgAndHandlerCalled/Info_being_nil_has_no_impact === RUN TestChildRecvMsgAndHandlerCalled/Handler_fails_out === PAUSE TestChildRecvMsgAndHandlerCalled/Handler_fails_out === RUN TestChildRecvMsgAndHandlerCalled/RecvMsg_erroring_out === PAUSE TestChildRecvMsgAndHandlerCalled/RecvMsg_erroring_out === CONT TestChildRecvMsgAndHandlerCalled/Handler_and_RecvMsg_are_called === CONT TestChildRecvMsgAndHandlerCalled/Handler_fails_out === CONT TestChildRecvMsgAndHandlerCalled/Info_being_nil_has_no_impact === CONT TestChildRecvMsgAndHandlerCalled/RecvMsg_erroring_out time="2021-06-21T12:47:08Z" level=info msg="Error sent to client: Failing handler" --- PASS: TestChildRecvMsgAndHandlerCalled (0.00s) --- PASS: TestChildRecvMsgAndHandlerCalled/Handler_and_RecvMsg_are_called (0.00s) --- PASS: TestChildRecvMsgAndHandlerCalled/Handler_fails_out (0.00s) --- PASS: TestChildRecvMsgAndHandlerCalled/RecvMsg_erroring_out (0.00s) --- PASS: TestChildRecvMsgAndHandlerCalled/Info_being_nil_has_no_impact (0.00s) PASS ok github.com/ubuntu/adsys/internal/grpc/logconnections 0.020s === RUN TestRecvLogMsg === PAUSE TestRecvLogMsg === RUN TestAddStreamToForwardLocalLogs time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:284644]]" time="2021-06-21T12:47:08Z" level=warning msg=something --- PASS: TestAddStreamToForwardLocalLogs (0.00s) === RUN TestAddStreamToForwardOtherStream time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:748758]]" time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:013334]]" --- PASS: TestAddStreamToForwardOtherStream (0.00s) === RUN TestAddStreamToForwardAfterClientIsConnected time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:431701]]" time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:707640]]" --- PASS: TestAddStreamToForwardAfterClientIsConnected (0.00s) === RUN TestAddStreamToForwardDisconnect time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:792808]]" time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:718797]]" --- PASS: TestAddStreamToForwardDisconnect (0.00s) === RUN TestAddStreamToForwardTwoClients time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:531326]]" time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:424638]]" time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:915017]]" --- PASS: TestAddStreamToForwardTwoClients (0.00s) === RUN TestAddStreamToForwardWithListenerCaller time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:551001]]" time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:639669]]" --- PASS: TestAddStreamToForwardWithListenerCaller (0.00s) === RUN TestAddStreamMultipleForwarders time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:701513]]" time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:319528]]" time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:683087]]" --- PASS: TestAddStreamMultipleForwarders (0.00s) === RUN TestAddStreamMultipleForwardersOneWithCaller time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:305041]]" time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:484435]]" time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:845306]]" --- PASS: TestAddStreamMultipleForwardersOneWithCaller (0.00s) === RUN TestAddStreamToForwardFailSend time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:296156]]" time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:052512]]" time="2021-06-21T12:47:08Z" level=warning msg="Couldn't send log to one or more listener: SendMsg failed" --- PASS: TestAddStreamToForwardFailSend (0.00s) === RUN TestRemoveAllStreams time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:405957]]" time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:903041]]" time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:154606]]" time="2021-06-21T12:47:08Z" level=warning msg="[[123456:154606]] else" --- PASS: TestRemoveAllStreams (0.00s) === RUN TestLogWarningOnly === PAUSE TestLogWarningOnly === RUN TestMultipleLogs === PAUSE TestMultipleLogs === RUN TestAllLogLevels === PAUSE TestAllLogLevels === RUN TestDebugSentToRemoteEvenIfLocalIsWarning === PAUSE TestDebugSentToRemoteEvenIfLocalIsWarning === RUN TestLogWarningWithLocalCaller === PAUSE TestLogWarningWithLocalCaller === RUN TestLogWarningWithRemoteCaller === PAUSE TestLogWarningWithRemoteCaller === RUN TestLogWithNoCaller === PAUSE TestLogWithNoCaller === RUN TestSetReportCaller === RUN TestSetReportCaller/Report_caller === RUN TestSetReportCaller/Disable_caller --- PASS: TestSetReportCaller (0.00s) --- PASS: TestSetReportCaller/Report_caller (0.00s) --- PASS: TestSetReportCaller/Disable_caller (0.00s) === RUN TestLogSendingFail === PAUSE TestLogSendingFail === RUN TestLogStreamsAreSeparated === PAUSE TestLogStreamsAreSeparated === RUN TestStreamServerInterceptor === PAUSE TestStreamServerInterceptor === RUN TestStreamServerInterceptorSendLogsFails === PAUSE TestStreamServerInterceptorSendLogsFails === RUN TestStreamServerInterceptorLoggerInvalidMetadata === PAUSE TestStreamServerInterceptorLoggerInvalidMetadata === CONT TestRecvLogMsg === RUN TestRecvLogMsg/One_message,_no_log === PAUSE TestRecvLogMsg/One_message,_no_log === RUN TestRecvLogMsg/Two_logs_with_different_debug_level === CONT TestLogWithNoCaller time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:600176]]" --- PASS: TestLogWithNoCaller (0.00s) === CONT TestDebugSentToRemoteEvenIfLocalIsWarning time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:585321]]" --- PASS: TestDebugSentToRemoteEvenIfLocalIsWarning (0.00s) === CONT TestAllLogLevels time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:369317]]" --- PASS: TestAllLogLevels (0.00s) === CONT TestMultipleLogs time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:297940]]" --- PASS: TestMultipleLogs (0.00s) === CONT TestLogWarningOnly time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:874495]]" --- PASS: TestLogWarningOnly (0.00s) === CONT TestStreamServerInterceptorSendLogsFails time="2021-06-21T12:47:08Z" level=warning msg="[[123456:369538]] Couldn't send initial connection log to client" time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:369538]]" --- PASS: TestStreamServerInterceptorSendLogsFails (0.00s) === CONT TestStreamServerInterceptorLoggerInvalidMetadata === RUN TestStreamServerInterceptorLoggerInvalidMetadata/Missing_client_ID === PAUSE TestStreamServerInterceptorLoggerInvalidMetadata/Missing_client_ID === RUN TestStreamServerInterceptorLoggerInvalidMetadata/Missing_caller_key === PAUSE TestStreamServerInterceptorLoggerInvalidMetadata/Missing_caller_key === RUN TestStreamServerInterceptorLoggerInvalidMetadata/Caller_key_is_not_a_boolean === PAUSE TestStreamServerInterceptorLoggerInvalidMetadata/Caller_key_is_not_a_boolean === RUN TestStreamServerInterceptorLoggerInvalidMetadata/Multiple_log_metas === PAUSE TestStreamServerInterceptorLoggerInvalidMetadata/Multiple_log_metas === RUN TestStreamServerInterceptorLoggerInvalidMetadata/No_meta_sent === PAUSE TestStreamServerInterceptorLoggerInvalidMetadata/No_meta_sent === PAUSE TestRecvLogMsg/Two_logs_with_different_debug_level === RUN TestRecvLogMsg/Log_with_caller === PAUSE TestRecvLogMsg/Log_with_caller === RUN TestRecvLogMsg/No_caller_when_not_requested === PAUSE TestRecvLogMsg/No_caller_when_not_requested === RUN TestRecvLogMsg/No_caller_on_any_logs === PAUSE TestRecvLogMsg/No_caller_on_any_logs === RUN TestRecvLogMsg/One_message_with_error,_no_log,_error_is_preserved === PAUSE TestRecvLogMsg/One_message_with_error,_no_log,_error_is_preserved === RUN TestRecvLogMsg/Invalid_object_passed_to_RecvMsg_is_gracefully_skipped === PAUSE TestRecvLogMsg/Invalid_object_passed_to_RecvMsg_is_gracefully_skipped === RUN TestRecvLogMsg/One_log_(and_one_closing_empty_message) === PAUSE TestRecvLogMsg/One_log_(and_one_closing_empty_message) === RUN TestRecvLogMsg/Logs_and_then_message_with_error,_error_is_preserved === PAUSE TestRecvLogMsg/Logs_and_then_message_with_error,_error_is_preserved === RUN TestRecvLogMsg/Unknown_log_level_triggers_a_client_error_(protocole_issue) === PAUSE TestRecvLogMsg/Unknown_log_level_triggers_a_client_error_(protocole_issue) === CONT TestLogStreamsAreSeparated time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:419466]]" time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:008609]]" --- PASS: TestLogStreamsAreSeparated (0.00s) === CONT TestLogSendingFail time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:116340]]" --- PASS: TestLogSendingFail (0.00s) === CONT TestStreamServerInterceptorLoggerInvalidMetadata/Missing_client_ID === CONT TestLogWarningWithRemoteCaller time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:765345]]" --- PASS: TestLogWarningWithRemoteCaller (0.00s) === CONT TestStreamServerInterceptorLoggerInvalidMetadata/No_meta_sent === CONT TestStreamServerInterceptorLoggerInvalidMetadata/Multiple_log_metas === CONT TestStreamServerInterceptorLoggerInvalidMetadata/Caller_key_is_not_a_boolean === CONT TestStreamServerInterceptorLoggerInvalidMetadata/Missing_caller_key --- PASS: TestStreamServerInterceptorLoggerInvalidMetadata (0.00s) --- PASS: TestStreamServerInterceptorLoggerInvalidMetadata/Missing_client_ID (0.00s) --- PASS: TestStreamServerInterceptorLoggerInvalidMetadata/No_meta_sent (0.00s) --- PASS: TestStreamServerInterceptorLoggerInvalidMetadata/Multiple_log_metas (0.00s) --- PASS: TestStreamServerInterceptorLoggerInvalidMetadata/Caller_key_is_not_a_boolean (0.00s) --- PASS: TestStreamServerInterceptorLoggerInvalidMetadata/Missing_caller_key (0.00s) === CONT TestStreamServerInterceptor time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:103005]]" --- PASS: TestStreamServerInterceptor (0.00s) === CONT TestRecvLogMsg/Unknown_log_level_triggers_a_client_error_(protocole_issue) === CONT TestRecvLogMsg/Logs_and_then_message_with_error,_error_is_preserved === CONT TestRecvLogMsg/One_log_(and_one_closing_empty_message) === CONT TestRecvLogMsg/Invalid_object_passed_to_RecvMsg_is_gracefully_skipped === CONT TestRecvLogMsg/One_message_with_error,_no_log,_error_is_preserved === CONT TestRecvLogMsg/No_caller_on_any_logs === CONT TestRecvLogMsg/No_caller_when_not_requested === CONT TestRecvLogMsg/Log_with_caller === CONT TestRecvLogMsg/Two_logs_with_different_debug_level === CONT TestRecvLogMsg/One_message,_no_log --- PASS: TestRecvLogMsg (0.00s) --- PASS: TestRecvLogMsg/Unknown_log_level_triggers_a_client_error_(protocole_issue) (0.00s) --- PASS: TestRecvLogMsg/Logs_and_then_message_with_error,_error_is_preserved (0.00s) --- PASS: TestRecvLogMsg/One_log_(and_one_closing_empty_message) (0.00s) --- PASS: TestRecvLogMsg/Invalid_object_passed_to_RecvMsg_is_gracefully_skipped (0.00s) --- PASS: TestRecvLogMsg/One_message_with_error,_no_log,_error_is_preserved (0.00s) --- PASS: TestRecvLogMsg/No_caller_on_any_logs (0.00s) --- PASS: TestRecvLogMsg/No_caller_when_not_requested (0.00s) --- PASS: TestRecvLogMsg/Log_with_caller (0.00s) --- PASS: TestRecvLogMsg/Two_logs_with_different_debug_level (0.00s) --- PASS: TestRecvLogMsg/One_message,_no_log (0.00s) === CONT TestLogWarningWithLocalCaller time="2021-06-21T12:47:08Z" level=info msg="New connection from client [[123456:973214]]" --- PASS: TestLogWarningWithLocalCaller (0.00s) PASS ok github.com/ubuntu/adsys/internal/grpc/logstreamer 0.024s ? github.com/ubuntu/adsys/internal/grpc/logstreamer/test [no test files] === RUN TestSocket === PAUSE TestSocket === RUN TestNoSocketFile === PAUSE TestNoSocketFile === RUN TestInvalidSocketFile === PAUSE TestInvalidSocketFile === CONT TestSocket --- PASS: TestSocket (0.00s) === CONT TestInvalidSocketFile --- PASS: TestInvalidSocketFile (0.00s) === CONT TestNoSocketFile --- PASS: TestNoSocketFile (0.00s) PASS ok github.com/ubuntu/adsys/internal/grpc/unixsocket 0.017s === RUN TestTranslations === PAUSE TestTranslations === CONT TestTranslations === RUN TestTranslations/Multiple_text_elems === RUN TestTranslations/Untranslated_elem === RUN TestTranslations/en_DK@_is_en_DK === RUN TestTranslations/No_loc_prefers_LC_MESSAGES_first === RUN TestTranslations/No_loc_fallbacks_to_LANG_if_no_LC_MESSAGES === RUN TestTranslations/Missing_domain === RUN TestTranslations/Init_wasn't_ran === RUN TestTranslations/Fallback_to_en_if_en_DK_isn't_present === RUN TestTranslations/Prefer_locale-langpack_to_locale === RUN TestTranslations/One_text_elem,_prefer_en_DK_over_en === RUN TestTranslations/en_DK._is_en_DK === RUN TestTranslations/Missing_locale === RUN TestTranslations/Invalid_locale_directory --- PASS: TestTranslations (0.02s) --- PASS: TestTranslations/Multiple_text_elems (0.00s) --- PASS: TestTranslations/Untranslated_elem (0.00s) --- PASS: TestTranslations/en_DK@_is_en_DK (0.00s) --- PASS: TestTranslations/No_loc_prefers_LC_MESSAGES_first (0.00s) --- PASS: TestTranslations/No_loc_fallbacks_to_LANG_if_no_LC_MESSAGES (0.00s) --- PASS: TestTranslations/Missing_domain (0.00s) --- PASS: TestTranslations/Init_wasn't_ran (0.00s) --- PASS: TestTranslations/Fallback_to_en_if_en_DK_isn't_present (0.00s) --- PASS: TestTranslations/Prefer_locale-langpack_to_locale (0.00s) --- PASS: TestTranslations/One_text_elem,_prefer_en_DK_over_en (0.00s) --- PASS: TestTranslations/en_DK._is_en_DK (0.00s) --- PASS: TestTranslations/Missing_locale (0.00s) --- PASS: TestTranslations/Invalid_locale_directory (0.00s) PASS ok github.com/ubuntu/adsys/internal/i18n 0.027s === RUN TestDumpPolicies === PAUSE TestDumpPolicies === RUN TestApplyPolicy === PAUSE TestApplyPolicy === RUN TestLastUpdateFor === PAUSE TestLastUpdateFor === CONT TestDumpPolicies === RUN TestDumpPolicies/Multiple_GPOs === PAUSE TestDumpPolicies/Multiple_GPOs === RUN TestDumpPolicies/One_GPO_with_rules === PAUSE TestDumpPolicies/One_GPO_with_rules === RUN TestDumpPolicies/Multiple_GPOs_with_rules,_no_override === PAUSE TestDumpPolicies/Multiple_GPOs_with_rules,_no_override === RUN TestDumpPolicies/One_GPO_Machine === PAUSE TestDumpPolicies/One_GPO_Machine === RUN TestDumpPolicies/One_GPO_User === PAUSE TestDumpPolicies/One_GPO_User === RUN TestDumpPolicies/Multiple_GPOs_with_rules,_override_hidden === PAUSE TestDumpPolicies/Multiple_GPOs_with_rules,_override_hidden === RUN TestDumpPolicies/Error_on_missing_machine_cache_when_targeting_user === PAUSE TestDumpPolicies/Error_on_missing_machine_cache_when_targeting_user === RUN TestDumpPolicies/Machine_only_GPO_with_rules === PAUSE TestDumpPolicies/Machine_only_GPO_with_rules === RUN TestDumpPolicies/One_GPO_User_+_Machine === PAUSE TestDumpPolicies/One_GPO_User_+_Machine === RUN TestDumpPolicies/Multiple_GPOs_with_rules,_override,_shown === PAUSE TestDumpPolicies/Multiple_GPOs_with_rules,_override,_shown === RUN TestDumpPolicies/Overrides_between_machine_and_user_GPOs,_shown === PAUSE TestDumpPolicies/Overrides_between_machine_and_user_GPOs,_shown === RUN TestDumpPolicies/Same_GPO_Machine_and_User_with_rules === PAUSE TestDumpPolicies/Same_GPO_Machine_and_User_with_rules === RUN TestDumpPolicies/Overrides_between_machine_and_user_GPOs,_hidden === PAUSE TestDumpPolicies/Overrides_between_machine_and_user_GPOs,_hidden === RUN TestDumpPolicies/Same_GPO_Machine_and_User === PAUSE TestDumpPolicies/Same_GPO_Machine_and_User === RUN TestDumpPolicies/Same_GPO_Machine_and_User_with_rules_and_overrides === PAUSE TestDumpPolicies/Same_GPO_Machine_and_User_with_rules_and_overrides === RUN TestDumpPolicies/Error_on_missing_target_cache === PAUSE TestDumpPolicies/Error_on_missing_target_cache === CONT TestDumpPolicies/Multiple_GPOs time="2021-06-21T12:47:09Z" level=info msg="Dumping policies for user" === CONT TestLastUpdateFor === RUN TestLastUpdateFor/Returns_user's_last_update_time === PAUSE TestLastUpdateFor/Returns_user's_last_update_time === RUN TestLastUpdateFor/Target_is_ignored_for_machine_request === PAUSE TestLastUpdateFor/Target_is_ignored_for_machine_request === RUN TestLastUpdateFor/Target_does_not_exist === PAUSE TestLastUpdateFor/Target_does_not_exist === RUN TestLastUpdateFor/Returns_machine's_last_update_time === PAUSE TestLastUpdateFor/Returns_machine's_last_update_time === CONT TestLastUpdateFor/Returns_user's_last_update_time === CONT TestApplyPolicy === RUN TestApplyPolicy/second_call_with_no_rules_deletes_everything === PAUSE TestApplyPolicy/second_call_with_no_rules_deletes_everything === RUN TestApplyPolicy/dconf_apply_policy_fails === PAUSE TestApplyPolicy/dconf_apply_policy_fails === RUN TestApplyPolicy/succeed === PAUSE TestApplyPolicy/succeed === CONT TestApplyPolicy/second_call_with_no_rules_deletes_everything time="2021-06-21T12:47:09Z" level=info msg="Apply policy for hostname (machine: true)" time="2021-06-21T12:47:09Z" level=info msg="Apply policy for hostname (machine: true)" === CONT TestDumpPolicies/Error_on_missing_target_cache time="2021-06-21T12:47:09Z" level=info msg="Dumping policies for user" === CONT TestDumpPolicies/Same_GPO_Machine_and_User_with_rules_and_overrides time="2021-06-21T12:47:09Z" level=info msg="Dumping policies for user" === CONT TestDumpPolicies/Same_GPO_Machine_and_User === CONT TestDumpPolicies/One_GPO_User time="2021-06-21T12:47:09Z" level=info msg="Dumping policies for user" === CONT TestDumpPolicies/One_GPO_Machine time="2021-06-21T12:47:09Z" level=info msg="Dumping policies for user" time="2021-06-21T12:47:09Z" level=info msg="Dumping policies for bos02-s390x-013" === CONT TestDumpPolicies/Multiple_GPOs_with_rules,_no_override time="2021-06-21T12:47:09Z" level=info msg="Dumping policies for user" === CONT TestDumpPolicies/Overrides_between_machine_and_user_GPOs,_hidden === CONT TestDumpPolicies/One_GPO_with_rules time="2021-06-21T12:47:09Z" level=info msg="Dumping policies for user" time="2021-06-21T12:47:09Z" level=info msg="Dumping policies for user" === CONT TestLastUpdateFor/Returns_machine's_last_update_time === CONT TestLastUpdateFor/Target_does_not_exist === CONT TestLastUpdateFor/Target_is_ignored_for_machine_request time="2021-06-21T12:47:09Z" level=info msg="Get policies last update time \"user\" (machine: false)" === CONT TestApplyPolicy/succeed time="2021-06-21T12:47:09Z" level=info msg="Apply policy for hostname (machine: true)" === CONT TestApplyPolicy/dconf_apply_policy_fails time="2021-06-21T12:47:09Z" level=info msg="Apply policy for hostname (machine: true)" --- PASS: TestApplyPolicy (0.00s) --- PASS: TestApplyPolicy/second_call_with_no_rules_deletes_everything (0.00s) --- PASS: TestApplyPolicy/succeed (0.00s) --- PASS: TestApplyPolicy/dconf_apply_policy_fails (0.00s) === CONT TestDumpPolicies/One_GPO_User_+_Machine time="2021-06-21T12:47:09Z" level=info msg="Dumping policies for user" === CONT TestDumpPolicies/Same_GPO_Machine_and_User_with_rules time="2021-06-21T12:47:09Z" level=info msg="Dumping policies for user" === CONT TestDumpPolicies/Overrides_between_machine_and_user_GPOs,_shown time="2021-06-21T12:47:09Z" level=info msg="Dumping policies for user" === CONT TestDumpPolicies/Multiple_GPOs_with_rules,_override,_shown time="2021-06-21T12:47:09Z" level=info msg="Dumping policies for user" === CONT TestDumpPolicies/Error_on_missing_machine_cache_when_targeting_user time="2021-06-21T12:47:09Z" level=info msg="Dumping policies for user" time="2021-06-21T12:47:09Z" level=info msg="Get policies last update time \"does_not_exit\" (machine: true)" === CONT TestDumpPolicies/Machine_only_GPO_with_rules time="2021-06-21T12:47:09Z" level=info msg="Get policies last update time \"bos02-s390x-013\" (machine: true)" time="2021-06-21T12:47:09Z" level=info msg="Dumping policies for bos02-s390x-013" === CONT TestDumpPolicies/Multiple_GPOs_with_rules,_override_hidden time="2021-06-21T12:47:09Z" level=info msg="Dumping policies for user" --- PASS: TestDumpPolicies (0.00s) --- PASS: TestDumpPolicies/Multiple_GPOs (0.00s) --- PASS: TestDumpPolicies/Error_on_missing_target_cache (0.00s) --- PASS: TestDumpPolicies/Same_GPO_Machine_and_User_with_rules_and_overrides (0.00s) --- PASS: TestDumpPolicies/Same_GPO_Machine_and_User (0.00s) --- PASS: TestDumpPolicies/One_GPO_Machine (0.00s) --- PASS: TestDumpPolicies/One_GPO_User (0.00s) --- PASS: TestDumpPolicies/Multiple_GPOs_with_rules,_no_override (0.00s) --- PASS: TestDumpPolicies/One_GPO_with_rules (0.00s) --- PASS: TestDumpPolicies/Overrides_between_machine_and_user_GPOs,_hidden (0.00s) --- PASS: TestDumpPolicies/One_GPO_User_+_Machine (0.00s) --- PASS: TestDumpPolicies/Same_GPO_Machine_and_User_with_rules (0.00s) --- PASS: TestDumpPolicies/Overrides_between_machine_and_user_GPOs,_shown (0.00s) --- PASS: TestDumpPolicies/Multiple_GPOs_with_rules,_override,_shown (0.00s) --- PASS: TestDumpPolicies/Error_on_missing_machine_cache_when_targeting_user (0.00s) --- PASS: TestDumpPolicies/Machine_only_GPO_with_rules (0.00s) --- PASS: TestDumpPolicies/Multiple_GPOs_with_rules,_override_hidden (0.00s) time="2021-06-21T12:47:09Z" level=info msg="Get policies last update time \"does_not_exit\" (machine: false)" --- PASS: TestLastUpdateFor (0.00s) --- PASS: TestLastUpdateFor/Returns_user's_last_update_time (0.10s) --- PASS: TestLastUpdateFor/Returns_machine's_last_update_time (0.10s) --- PASS: TestLastUpdateFor/Target_is_ignored_for_machine_request (0.10s) --- PASS: TestLastUpdateFor/Target_does_not_exist (0.10s) PASS ok github.com/ubuntu/adsys/internal/policies 0.112s === RUN TestFetchGPO === PAUSE TestFetchGPO === RUN TestFetchGPOWithUnreadableFile === PAUSE TestFetchGPOWithUnreadableFile === RUN TestFetchGPOTweakGPOCacheDir === PAUSE TestFetchGPOTweakGPOCacheDir === RUN TestFetchOneGPOWhileParsingItConcurrently === PAUSE TestFetchOneGPOWhileParsingItConcurrently === RUN TestParseGPOConcurrent === PAUSE TestParseGPOConcurrent === RUN TestNew === PAUSE TestNew === RUN TestGetPolicies === PAUSE TestGetPolicies === RUN TestGetPoliciesOffline === PAUSE TestGetPoliciesOffline === RUN TestGetPoliciesWorkflows === PAUSE TestGetPoliciesWorkflows === RUN TestGetPoliciesConcurrently === PAUSE TestGetPoliciesConcurrently === RUN TestListUsersFromCache === PAUSE TestListUsersFromCache === RUN TestMockGPOList --- PASS: TestMockGPOList (0.00s) === RUN TestAdsysGPOList === RUN TestAdsysGPOList/Machine_GPOs === RUN TestAdsysGPOList/Fail_on_security_descriptor_access_failure === RUN TestAdsysGPOList/Fail_on_no_network === RUN TestAdsysGPOList/Fail_on_machine_with_no_ldap === RUN TestAdsysGPOList/No_GPO_on_OU === RUN TestAdsysGPOList/Security_descriptor_access_denied_ignores_GPO === RUN TestAdsysGPOList/Security_descriptor_accepted_is_for_another_user === RUN TestAdsysGPOList/KRB5CCNAME_without_FILE:_is_supported_by_the_samba_bindings === RUN TestAdsysGPOList/Fail_on_user_requested_but_found_machine === RUN TestAdsysGPOList/Block_inheritance === RUN TestAdsysGPOList/Computers_are_truncated_at_15_characters === RUN TestAdsysGPOList/Fail_on_unreachable_ldap_host === RUN TestAdsysGPOList/Fail_on_invalid_ticket === RUN TestAdsysGPOList/Filter_machine_only_GPOs === RUN TestAdsysGPOList/Forced_GPO_and_blocked_inheritance === RUN TestAdsysGPOList/Security_descriptor_missing_ignores_GPO === RUN TestAdsysGPOList/Fail_invalid_GPO_link === RUN TestAdsysGPOList/Multiple_GPOs_in_same_OU === RUN TestAdsysGPOList/Filter_user_only_GPOs === RUN TestAdsysGPOList/Fail_on_ldap_connection_refused === RUN TestAdsysGPOList/Fail_on_computer_requested_but_found_user === RUN TestAdsysGPOList/Fail_on_dangling_ticket_symlink === RUN TestAdsysGPOList/Return_one_gpo === RUN TestAdsysGPOList/Disabled_GPOs === RUN TestAdsysGPOList/Fail_on_non_existent_account === RUN TestAdsysGPOList/Return_hierarchy === RUN TestAdsysGPOList/Forced_GPO_are_first_by_reverse_order === RUN TestAdsysGPOList/No_gPOptions_fallbacks_to_0 === RUN TestAdsysGPOList/No_@_in_user_name_returns_the_same_thing === RUN TestAdsysGPOList/Fail_on_KRB5CCNAME_unset --- PASS: TestAdsysGPOList (1.20s) --- PASS: TestAdsysGPOList/Machine_GPOs (0.04s) --- PASS: TestAdsysGPOList/Fail_on_security_descriptor_access_failure (0.04s) --- PASS: TestAdsysGPOList/Fail_on_no_network (0.08s) --- PASS: TestAdsysGPOList/Fail_on_machine_with_no_ldap (0.05s) --- PASS: TestAdsysGPOList/No_GPO_on_OU (0.03s) --- PASS: TestAdsysGPOList/Security_descriptor_access_denied_ignores_GPO (0.05s) --- PASS: TestAdsysGPOList/Security_descriptor_accepted_is_for_another_user (0.07s) --- PASS: TestAdsysGPOList/KRB5CCNAME_without_FILE:_is_supported_by_the_samba_bindings (0.04s) --- PASS: TestAdsysGPOList/Fail_on_user_requested_but_found_machine (0.04s) --- PASS: TestAdsysGPOList/Block_inheritance (0.04s) --- PASS: TestAdsysGPOList/Computers_are_truncated_at_15_characters (0.04s) --- PASS: TestAdsysGPOList/Fail_on_unreachable_ldap_host (0.03s) --- PASS: TestAdsysGPOList/Fail_on_invalid_ticket (0.04s) --- PASS: TestAdsysGPOList/Filter_machine_only_GPOs (0.04s) --- PASS: TestAdsysGPOList/Forced_GPO_and_blocked_inheritance (0.03s) --- PASS: TestAdsysGPOList/Security_descriptor_missing_ignores_GPO (0.03s) --- PASS: TestAdsysGPOList/Fail_invalid_GPO_link (0.03s) --- PASS: TestAdsysGPOList/Multiple_GPOs_in_same_OU (0.03s) --- PASS: TestAdsysGPOList/Filter_user_only_GPOs (0.05s) --- PASS: TestAdsysGPOList/Fail_on_ldap_connection_refused (0.06s) --- PASS: TestAdsysGPOList/Fail_on_computer_requested_but_found_user (0.04s) --- PASS: TestAdsysGPOList/Fail_on_dangling_ticket_symlink (0.03s) --- PASS: TestAdsysGPOList/Return_one_gpo (0.06s) --- PASS: TestAdsysGPOList/Disabled_GPOs (0.04s) --- PASS: TestAdsysGPOList/Fail_on_non_existent_account (0.03s) --- PASS: TestAdsysGPOList/Return_hierarchy (0.03s) --- PASS: TestAdsysGPOList/Forced_GPO_are_first_by_reverse_order (0.03s) --- PASS: TestAdsysGPOList/No_gPOptions_fallbacks_to_0 (0.03s) --- PASS: TestAdsysGPOList/No_@_in_user_name_returns_the_same_thing (0.03s) --- PASS: TestAdsysGPOList/Fail_on_KRB5CCNAME_unset (0.03s) === RUN TestGetPolicyDefinitions === PAUSE TestGetPolicyDefinitions === CONT TestFetchGPO === CONT TestGetPoliciesOffline === RUN TestFetchGPO/Error_remote_version_entry_missing === RUN TestGetPoliciesOffline/Error_offline_with_no_cache === PAUSE TestFetchGPO/Error_remote_version_entry_missing === PAUSE TestGetPoliciesOffline/Error_offline_with_no_cache === RUN TestFetchGPO/two_gpos,_one_already_up_to_date,_one_should_be_refreshed === PAUSE TestFetchGPO/two_gpos,_one_already_up_to_date,_one_should_be_refreshed === RUN TestFetchGPO/two_gpos,_one_should_be_refreshed,_one_new === PAUSE TestFetchGPO/two_gpos,_one_should_be_refreshed,_one_new === RUN TestFetchGPO/two_gpos,_one_more_recent,_one_new === PAUSE TestFetchGPO/two_gpos,_one_more_recent,_one_new === RUN TestFetchGPO/Local_gpo_redownloaded_on_missing_GPT.INI === PAUSE TestFetchGPO/Local_gpo_redownloaded_on_missing_GPT.INI === RUN TestFetchGPO/Local_gpo_redownloaded_on_NaN_version_in_GPT.INI === PAUSE TestFetchGPO/Local_gpo_redownloaded_on_NaN_version_in_GPT.INI === RUN TestFetchGPO/Error_missing_remote_GPT.INI === PAUSE TestFetchGPO/Error_missing_remote_GPT.INI === RUN TestFetchGPO/two_new_gpos === PAUSE TestFetchGPO/two_new_gpos === RUN TestFetchGPO/gpo_already_up_to_date === PAUSE TestFetchGPO/gpo_already_up_to_date === RUN TestFetchGPO/two_gpos,_one_already_up_to_date,_one_new === PAUSE TestFetchGPO/two_gpos,_one_already_up_to_date,_one_new === RUN TestFetchGPO/two_gpos,_one_more_recent,_one_should_be_refreshed === PAUSE TestFetchGPO/two_gpos,_one_more_recent,_one_should_be_refreshed === RUN TestFetchGPO/Error_remote_version_NaN === PAUSE TestFetchGPO/Error_remote_version_NaN === RUN TestFetchGPO/Error_unexistant_remote_gpo === PAUSE TestFetchGPO/Error_unexistant_remote_gpo === RUN TestFetchGPO/one_new_gpo === PAUSE TestFetchGPO/one_new_gpo === RUN TestFetchGPO/gpo_is_refreshed === PAUSE TestFetchGPO/gpo_is_refreshed === RUN TestFetchGPO/local_gpo_is_more_recent_than_AD_one === PAUSE TestFetchGPO/local_gpo_is_more_recent_than_AD_one === RUN TestFetchGPO/two_gpos,_one_more_recent,_one_up_to_date === PAUSE TestFetchGPO/two_gpos,_one_more_recent,_one_up_to_date === RUN TestFetchGPO/keep_existing_gpos_intact === PAUSE TestFetchGPO/keep_existing_gpos_intact === RUN TestFetchGPO/Local_gpo_redownloaded_on_version_entry_missing_in_GPT.INI === PAUSE TestFetchGPO/Local_gpo_redownloaded_on_version_entry_missing_in_GPT.INI === RUN TestFetchGPO/concurrent_different_gpos === PAUSE TestFetchGPO/concurrent_different_gpos === RUN TestFetchGPO/concurrent_same_gpos === PAUSE TestFetchGPO/concurrent_same_gpos === RUN TestFetchGPO/Error_keeps_downloading_other_GPOS === PAUSE TestFetchGPO/Error_keeps_downloading_other_GPOS === CONT TestGetPolicies === RUN TestGetPolicies/No_override_for_this_release,_takes_default_value === PAUSE TestGetPolicies/No_override_for_this_release,_takes_default_value === RUN TestGetPolicies/Two_policies,_no_overrides,_one_is_not_the_same_object_type,_machine_ones_are_empty_when_parsing_user === PAUSE TestGetPolicies/Two_policies,_no_overrides,_one_is_not_the_same_object_type,_machine_ones_are_empty_when_parsing_user === RUN TestGetPolicies/Disabled_value_overrides_non_disabled_one === PAUSE TestGetPolicies/Disabled_value_overrides_non_disabled_one === RUN TestGetPolicies/Machine_doesn’t_match === PAUSE TestGetPolicies/Machine_doesn’t_match === RUN TestGetPolicies/Computer_ignored_CCBaseName === PAUSE TestGetPolicies/Computer_ignored_CCBaseName === RUN TestGetPolicies/Enabled_override_for_matching_release,_other_releases_override_ignored === PAUSE TestGetPolicies/Enabled_override_for_matching_release,_other_releases_override_ignored === RUN TestGetPolicies/Policy_can’t_be_downloaded === PAUSE TestGetPolicies/Policy_can’t_be_downloaded === RUN TestGetPolicies/Computer_only_policy,_user_object,_policy_is_empty === PAUSE TestGetPolicies/Computer_only_policy,_user_object,_policy_is_empty === RUN TestGetPolicies/Filter_non_Ubuntu_keys === PAUSE TestGetPolicies/Filter_non_Ubuntu_keys === RUN TestGetPolicies/User_only_policy,_computer_object,_policy_is_empty === PAUSE TestGetPolicies/User_only_policy,_computer_object,_policy_is_empty === RUN TestGetPolicies/Two_policies,_no_overrides === PAUSE TestGetPolicies/Two_policies,_no_overrides === RUN TestGetPolicies/Disabled_value_is_overridden === PAUSE TestGetPolicies/Disabled_value_is_overridden === RUN TestGetPolicies/Corrupted_policy_file === PAUSE TestGetPolicies/Corrupted_policy_file === RUN TestGetPolicies/Two_policies,_with_overrides === PAUSE TestGetPolicies/Two_policies,_with_overrides === RUN TestGetPolicies/More_policies,_with_multiple_overrides === PAUSE TestGetPolicies/More_policies,_with_multiple_overrides === RUN TestGetPolicies/Standard_policy,_computer_object === PAUSE TestGetPolicies/Standard_policy,_computer_object === RUN TestGetPolicies/User_only_policy,_user_object === PAUSE TestGetPolicies/User_only_policy,_user_object === RUN TestGetPolicies/Disable_override_for_matching_release,_other_releases_override_ignored === PAUSE TestGetPolicies/Disable_override_for_matching_release,_other_releases_override_ignored === RUN TestGetPolicies/Enabled_override === PAUSE TestGetPolicies/Enabled_override === RUN TestGetPolicies/Disabled_override === PAUSE TestGetPolicies/Disabled_override === RUN TestGetPolicies/Same_key_in_different_domains_are_kept_separated === PAUSE TestGetPolicies/Same_key_in_different_domains_are_kept_separated === RUN TestGetPolicies/Object_domain_is_stripped === PAUSE TestGetPolicies/Object_domain_is_stripped === RUN TestGetPolicies/Symlinks_can’t_be_created === PAUSE TestGetPolicies/Symlinks_can’t_be_created === RUN TestGetPolicies/Standard_policy,_user_object === PAUSE TestGetPolicies/Standard_policy,_user_object === RUN TestGetPolicies/Two_policies,_no_overrides,_reversed === PAUSE TestGetPolicies/Two_policies,_no_overrides,_reversed === RUN TestGetPolicies/Two_policies,_with_reversed_overrides === PAUSE TestGetPolicies/Two_policies,_with_reversed_overrides === RUN TestGetPolicies/Unexisting_CC_original_file_for_machine === PAUSE TestGetPolicies/Unexisting_CC_original_file_for_machine === RUN TestGetPolicies/Without_previous_call,_needs_userKrb5CCBaseName === PAUSE TestGetPolicies/Without_previous_call,_needs_userKrb5CCBaseName === RUN TestGetPolicies/Unexisting_CC_original_file_for_user === PAUSE TestGetPolicies/Unexisting_CC_original_file_for_user === RUN TestGetPolicies/Multiple_domains,_same_GPO === PAUSE TestGetPolicies/Multiple_domains,_same_GPO === CONT TestParseGPOConcurrent === CONT TestNew === CONT TestFetchOneGPOWhileParsingItConcurrently === RUN TestNew/create_one_AD_object_will_create_all_necessary_cache_dirs === PAUSE TestNew/create_one_AD_object_will_create_all_necessary_cache_dirs === RUN TestNew/failed_to_create_KRB5_cache_directory === PAUSE TestNew/failed_to_create_KRB5_cache_directory === RUN TestNew/failed_to_create_GPO_cache_directory === PAUSE TestNew/failed_to_create_GPO_cache_directory === RUN TestGetPoliciesOffline/Offline,_get_from_cache === PAUSE TestGetPoliciesOffline/Offline,_get_from_cache === CONT TestFetchGPOTweakGPOCacheDir === RUN TestFetchGPOTweakGPOCacheDir/GPOCacheDir_doesn't_exist === PAUSE TestFetchGPOTweakGPOCacheDir/GPOCacheDir_doesn't_exist === RUN TestFetchGPOTweakGPOCacheDir/GPOCacheDir_is_read_only === PAUSE TestFetchGPOTweakGPOCacheDir/GPOCacheDir_is_read_only === CONT TestFetchGPOWithUnreadableFile === CONT TestListUsersFromCache === RUN TestListUsersFromCache/One_user === PAUSE TestListUsersFromCache/One_user === RUN TestListUsersFromCache/Two_users === PAUSE TestListUsersFromCache/Two_users === RUN TestListUsersFromCache/None === PAUSE TestListUsersFromCache/None === RUN TestListUsersFromCache/Machines_are_ignored === PAUSE TestListUsersFromCache/Machines_are_ignored === RUN TestListUsersFromCache/Machine_Only === PAUSE TestListUsersFromCache/Machine_Only === RUN TestListUsersFromCache/Error_on_Krb5_directory_not_existing === PAUSE TestListUsersFromCache/Error_on_Krb5_directory_not_existing === CONT TestGetPolicyDefinitions === RUN TestGetPolicyDefinitions/Load_ADMX_and_ADML === PAUSE TestGetPolicyDefinitions/Load_ADMX_and_ADML === RUN TestGetPolicyDefinitions/ADMX_and_ADML_does_not_exist_for_this_format === PAUSE TestGetPolicyDefinitions/ADMX_and_ADML_does_not_exist_for_this_format === RUN TestGetPolicyDefinitions/ADMX_and_ADML_does_not_exist_for_this_distro === PAUSE TestGetPolicyDefinitions/ADMX_and_ADML_does_not_exist_for_this_distro === CONT TestGetPoliciesConcurrently === RUN TestGetPoliciesConcurrently/Different_users,_different_GPO === PAUSE TestGetPoliciesConcurrently/Different_users,_different_GPO === RUN TestGetPoliciesConcurrently/Same_user,_same_GPO === PAUSE TestGetPoliciesConcurrently/Same_user,_same_GPO === RUN TestGetPoliciesConcurrently/Different_users,_same_GPO === PAUSE TestGetPoliciesConcurrently/Different_users,_same_GPO === CONT TestGetPoliciesWorkflows === RUN TestGetPoliciesWorkflows/Second_call_with_different_user === PAUSE TestGetPoliciesWorkflows/Second_call_with_different_user === RUN TestGetPoliciesWorkflows/Second_call_after_a_relogin === PAUSE TestGetPoliciesWorkflows/Second_call_after_a_relogin === RUN TestGetPoliciesWorkflows/Second_call_is_a_refresh_(without_Krb5CCName_specified) === PAUSE TestGetPoliciesWorkflows/Second_call_is_a_refresh_(without_Krb5CCName_specified) === RUN TestGetPoliciesWorkflows/Second_call_after_service_restarted === PAUSE TestGetPoliciesWorkflows/Second_call_after_service_restarted === CONT TestFetchGPO/Error_remote_version_entry_missing === RUN TestFetchGPOWithUnreadableFile/without_gpo_initially_don’t_commit_new_partial_GPO === PAUSE TestFetchGPOWithUnreadableFile/without_gpo_initially_don’t_commit_new_partial_GPO === RUN TestFetchGPOWithUnreadableFile/existing_gpo_is_preserved === PAUSE TestFetchGPOWithUnreadableFile/existing_gpo_is_preserved === CONT TestGetPolicies/No_override_for_this_release,_takes_default_value Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:10Z" level=info msg="Downloading GPO \"standard-name\"" === CONT TestGetPolicies/Without_previous_call,_needs_userKrb5CCBaseName Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:10Z" level=info msg="Downloading GPO \"standard-name\"" --- PASS: TestParseGPOConcurrent (0.25s) === CONT TestFetchGPO/Error_keeps_downloading_other_GPOS --- PASS: TestFetchOneGPOWhileParsingItConcurrently (0.25s) === CONT TestFetchGPO/concurrent_same_gpos === CONT TestFetchGPO/concurrent_different_gpos Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"multiple-releases-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"gpo2-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"gpo2-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"gpo1-name\"" Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible === CONT TestFetchGPO/Local_gpo_redownloaded_on_version_entry_missing_in_GPT.INI === CONT TestFetchGPO/keep_existing_gpos_intact time="2021-06-21T12:47:11Z" level=warning msg="Invalid local GPT.INI for gpo1-name: invalid remote GPT.INI: version not found\nDownloading GPO…" === CONT TestFetchGPO/two_gpos,_one_more_recent,_one_up_to_date Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"gpo1-name\"" Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible === CONT TestFetchGPO/local_gpo_is_more_recent_than_AD_one === CONT TestFetchGPO/gpo_is_refreshed Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible === CONT TestFetchGPO/one_new_gpo Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"gpo1-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"gpo1-name\"" Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"gpo1-name\"" === CONT TestFetchGPO/Error_unexistant_remote_gpo Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible === CONT TestFetchGPO/Error_remote_version_NaN === CONT TestFetchGPO/two_gpos,_one_more_recent,_one_should_be_refreshed Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"gpo1-name\"" === CONT TestFetchGPO/two_gpos,_one_already_up_to_date,_one_new Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"gpo2-name\"" === CONT TestFetchGPO/gpo_already_up_to_date Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible === CONT TestFetchGPO/two_new_gpos Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible === CONT TestGetPolicies/More_policies,_with_multiple_overrides === CONT TestFetchGPO/Error_missing_remote_GPT.INI time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"gpo2-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"gpo1-name\"" Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible === CONT TestFetchGPO/Local_gpo_redownloaded_on_NaN_version_in_GPT.INI time="2021-06-21T12:47:11Z" level=warning msg="Invalid local GPT.INI for gpo1-name: invalid remote GPT.INI: version is not an int: strconv.Atoi: parsing \"NaN\": invalid syntax\nDownloading GPO…" Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"gpo1-name\"" === CONT TestGetPolicies/Unexisting_CC_original_file_for_machine === CONT TestGetPolicies/Two_policies,_with_reversed_overrides === CONT TestFetchGPO/Local_gpo_redownloaded_on_missing_GPT.INI === CONT TestGetPolicies/Two_policies,_no_overrides,_reversed Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"one-value-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"gpo1-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"standard-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"one-value-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"user-only-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"standard-name\"" === CONT TestFetchGPO/two_gpos,_one_more_recent,_one_new Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"gpo1-name\"" === CONT TestGetPolicies/Standard_policy,_user_object === CONT TestFetchGPO/two_gpos,_one_should_be_refreshed,_one_new Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"gpo2-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"gpo1-name\"" === CONT TestGetPolicies/Symlinks_can’t_be_created === CONT TestGetPolicies/Object_domain_is_stripped === CONT TestFetchGPO/two_gpos,_one_already_up_to_date,_one_should_be_refreshed Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"standard-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"standard-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"user-only-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"gpo1-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"one-value-name\"" === CONT TestGetPolicies/Same_key_in_different_domains_are_kept_separated === CONT TestGetPolicies/Disabled_override === CONT TestGetPolicies/Enabled_override --- PASS: TestFetchGPO (0.00s) --- PASS: TestFetchGPO/Error_remote_version_entry_missing (0.04s) --- PASS: TestFetchGPO/concurrent_same_gpos (0.14s) --- PASS: TestFetchGPO/Error_keeps_downloading_other_GPOS (0.15s) --- PASS: TestFetchGPO/keep_existing_gpos_intact (0.04s) --- PASS: TestFetchGPO/two_gpos,_one_more_recent,_one_up_to_date (0.04s) --- PASS: TestFetchGPO/local_gpo_is_more_recent_than_AD_one (0.01s) --- PASS: TestFetchGPO/Local_gpo_redownloaded_on_version_entry_missing_in_GPT.INI (0.09s) --- PASS: TestFetchGPO/Error_unexistant_remote_gpo (0.01s) --- PASS: TestFetchGPO/concurrent_different_gpos (0.20s) --- PASS: TestFetchGPO/Error_remote_version_NaN (0.02s) --- PASS: TestFetchGPO/one_new_gpo (0.10s) --- PASS: TestFetchGPO/gpo_already_up_to_date (0.01s) --- PASS: TestFetchGPO/two_gpos,_one_more_recent,_one_should_be_refreshed (0.07s) --- PASS: TestFetchGPO/gpo_is_refreshed (0.13s) --- PASS: TestFetchGPO/Error_missing_remote_GPT.INI (0.01s) --- PASS: TestFetchGPO/two_gpos,_one_already_up_to_date,_one_new (0.09s) --- PASS: TestFetchGPO/two_new_gpos (0.05s) --- PASS: TestFetchGPO/Local_gpo_redownloaded_on_NaN_version_in_GPT.INI (0.04s) --- PASS: TestFetchGPO/Local_gpo_redownloaded_on_missing_GPT.INI (0.11s) --- PASS: TestFetchGPO/two_gpos,_one_more_recent,_one_new (0.03s) --- PASS: TestFetchGPO/two_gpos,_one_should_be_refreshed,_one_new (0.02s) --- PASS: TestFetchGPO/two_gpos,_one_already_up_to_date,_one_should_be_refreshed (0.09s) === CONT TestGetPolicies/Disable_override_for_matching_release,_other_releases_override_ignored Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"multiple-releases-one-enabled-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"multiple-releases-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"multiple-releases-one-disabled-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"one-value-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"other-domain-name\"" === CONT TestGetPolicies/User_only_policy,_user_object === CONT TestGetPolicies/Standard_policy,_computer_object === CONT TestGetPolicies/Multiple_domains,_same_GPO === CONT TestNew/create_one_AD_object_will_create_all_necessary_cache_dirs === CONT TestGetPolicies/Unexisting_CC_original_file_for_user === CONT TestGetPoliciesOffline/Error_offline_with_no_cache === CONT TestFetchGPOTweakGPOCacheDir/GPOCacheDir_doesn't_exist Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"multiple-domains-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"user-only-name\"" time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"standard-name\"" Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:11Z" level=info msg="Downloading GPO \"gpo1-name\"" === CONT TestNew/failed_to_create_GPO_cache_directory === CONT TestNew/failed_to_create_KRB5_cache_directory --- PASS: TestNew (0.00s) --- PASS: TestNew/create_one_AD_object_will_create_all_necessary_cache_dirs (0.00s) --- PASS: TestNew/failed_to_create_GPO_cache_directory (0.00s) --- PASS: TestNew/failed_to_create_KRB5_cache_directory (0.00s) === CONT TestGetPolicies/Computer_only_policy,_user_object,_policy_is_empty === CONT TestGetPolicies/Two_policies,_with_overrides === CONT TestGetPolicies/Corrupted_policy_file === CONT TestGetPolicies/Disabled_value_is_overridden Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"corrupted-policy-name\"" time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"standard-name\"" time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"machine-only-name\"" time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"disabled-value-name\"" time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"standard-name\"" time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"one-value-name\"" === CONT TestGetPolicies/Two_policies,_no_overrides === CONT TestGetPolicies/User_only_policy,_computer_object,_policy_is_empty === CONT TestGetPolicies/Filter_non_Ubuntu_keys === CONT TestGetPolicies/Computer_ignored_CCBaseName Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"standard-name\"" time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"user-only-name\"" time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"filtered-name\"" time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"one-value-name\"" time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"user-only-name\"" === CONT TestGetPolicies/Policy_can’t_be_downloaded === CONT TestGetPolicies/Enabled_override_for_matching_release,_other_releases_override_ignored === CONT TestGetPolicies/Disabled_value_overrides_non_disabled_one === CONT TestGetPolicies/Machine_doesn’t_match === CONT TestListUsersFromCache/One_user === CONT TestGetPoliciesOffline/Offline,_get_from_cache time="2021-06-21T12:47:12Z" level=info msg="Can't reach AD: machine is offline and \"useroffline@EXAMPLE.COM\" policies are applied using previous online update" --- PASS: TestGetPoliciesOffline (0.00s) --- PASS: TestGetPoliciesOffline/Error_offline_with_no_cache (0.03s) --- PASS: TestGetPoliciesOffline/Offline,_get_from_cache (0.05s) === CONT TestGetPolicyDefinitions/Load_ADMX_and_ADML === CONT TestListUsersFromCache/Error_on_Krb5_directory_not_existing === CONT TestListUsersFromCache/Machine_Only === CONT TestListUsersFromCache/Machines_are_ignored === CONT TestListUsersFromCache/None === CONT TestListUsersFromCache/Two_users --- PASS: TestListUsersFromCache (0.00s) --- PASS: TestListUsersFromCache/One_user (0.00s) --- PASS: TestListUsersFromCache/Error_on_Krb5_directory_not_existing (0.00s) --- PASS: TestListUsersFromCache/Machine_Only (0.00s) --- PASS: TestListUsersFromCache/Machines_are_ignored (0.00s) --- PASS: TestListUsersFromCache/None (0.00s) --- PASS: TestListUsersFromCache/Two_users (0.00s) === CONT TestGetPoliciesConcurrently/Different_users,_different_GPO Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"multiple-releases-name\"" === CONT TestGetPolicyDefinitions/ADMX_and_ADML_does_not_exist_for_this_distro === CONT TestGetPolicyDefinitions/ADMX_and_ADML_does_not_exist_for_this_format --- PASS: TestGetPolicyDefinitions (0.00s) --- PASS: TestGetPolicyDefinitions/Load_ADMX_and_ADML (0.00s) --- PASS: TestGetPolicyDefinitions/ADMX_and_ADML_does_not_exist_for_this_distro (0.00s) --- PASS: TestGetPolicyDefinitions/ADMX_and_ADML_does_not_exist_for_this_format (0.00s) === CONT TestGetPoliciesWorkflows/Second_call_with_different_user time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"disabled-value-name\"" time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"standard-name\"" === CONT TestGetPoliciesConcurrently/Different_users,_same_GPO === CONT TestGetPoliciesConcurrently/Same_user,_same_GPO Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"standard-name\"" time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"standard-name\"" time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"one-value-name\"" time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"standard-name\"" Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible === CONT TestFetchGPOTweakGPOCacheDir/GPOCacheDir_is_read_only Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"gpo1-name\"" time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"standard-name\"" === CONT TestGetPolicies/Two_policies,_no_overrides,_one_is_not_the_same_object_type,_machine_ones_are_empty_when_parsing_user Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible --- PASS: TestGetPoliciesConcurrently (0.00s) --- PASS: TestGetPoliciesConcurrently/Same_user,_same_GPO (0.11s) --- PASS: TestGetPoliciesConcurrently/Different_users,_different_GPO (0.16s) --- PASS: TestGetPoliciesConcurrently/Different_users,_same_GPO (0.15s) === CONT TestGetPoliciesWorkflows/Second_call_is_a_refresh_(without_Krb5CCName_specified) --- PASS: TestFetchGPOTweakGPOCacheDir (0.00s) --- PASS: TestFetchGPOTweakGPOCacheDir/GPOCacheDir_doesn't_exist (0.05s) --- PASS: TestFetchGPOTweakGPOCacheDir/GPOCacheDir_is_read_only (0.04s) === CONT TestGetPoliciesWorkflows/Second_call_after_service_restarted Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"standard-name\"" === CONT TestGetPoliciesWorkflows/Second_call_after_a_relogin time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"standard-name\"" time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"machine-only-name\"" time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"standard-name\"" --- PASS: TestGetPolicies (0.00s) --- PASS: TestGetPolicies/Without_previous_call,_needs_userKrb5CCBaseName (0.26s) --- PASS: TestGetPolicies/No_override_for_this_release,_takes_default_value (0.39s) --- PASS: TestGetPolicies/Unexisting_CC_original_file_for_machine (0.08s) --- PASS: TestGetPolicies/Two_policies,_with_reversed_overrides (0.10s) --- PASS: TestGetPolicies/More_policies,_with_multiple_overrides (0.16s) --- PASS: TestGetPolicies/Symlinks_can’t_be_created (0.00s) --- PASS: TestGetPolicies/Object_domain_is_stripped (0.09s) --- PASS: TestGetPolicies/Two_policies,_no_overrides,_reversed (0.16s) --- PASS: TestGetPolicies/Standard_policy,_user_object (0.11s) --- PASS: TestGetPolicies/Disable_override_for_matching_release,_other_releases_override_ignored (0.09s) --- PASS: TestGetPolicies/Enabled_override (0.10s) --- PASS: TestGetPolicies/Disabled_override (0.11s) --- PASS: TestGetPolicies/Same_key_in_different_domains_are_kept_separated (0.11s) --- PASS: TestGetPolicies/Unexisting_CC_original_file_for_user (0.05s) --- PASS: TestGetPolicies/User_only_policy,_user_object (0.12s) --- PASS: TestGetPolicies/Multiple_domains,_same_GPO (0.12s) --- PASS: TestGetPolicies/Standard_policy,_computer_object (0.13s) --- PASS: TestGetPolicies/Corrupted_policy_file (0.09s) --- PASS: TestGetPolicies/Computer_only_policy,_user_object,_policy_is_empty (0.11s) --- PASS: TestGetPolicies/Two_policies,_with_overrides (0.11s) --- PASS: TestGetPolicies/Disabled_value_is_overridden (0.10s) --- PASS: TestGetPolicies/Computer_ignored_CCBaseName (0.09s) --- PASS: TestGetPolicies/User_only_policy,_computer_object,_policy_is_empty (0.09s) --- PASS: TestGetPolicies/Two_policies,_no_overrides (0.10s) --- PASS: TestGetPolicies/Filter_non_Ubuntu_keys (0.09s) --- PASS: TestGetPolicies/Machine_doesn’t_match (0.00s) --- PASS: TestGetPolicies/Policy_can’t_be_downloaded (0.07s) --- PASS: TestGetPolicies/Enabled_override_for_matching_release,_other_releases_override_ignored (0.08s) --- PASS: TestGetPolicies/Disabled_value_overrides_non_disabled_one (0.08s) --- PASS: TestGetPolicies/Two_policies,_no_overrides,_one_is_not_the_same_object_type,_machine_ones_are_empty_when_parsing_user (0.08s) === CONT TestFetchGPOWithUnreadableFile/without_gpo_initially_don’t_commit_new_partial_GPO Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible === CONT TestFetchGPOWithUnreadableFile/existing_gpo_is_preserved time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"gpo1-name\"" time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"standard-name\"" Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible time="2021-06-21T12:47:12Z" level=info msg="Downloading GPO \"gpo1-name\"" --- PASS: TestFetchGPOWithUnreadableFile (0.00s) --- PASS: TestFetchGPOWithUnreadableFile/existing_gpo_is_preserved (0.02s) --- PASS: TestFetchGPOWithUnreadableFile/without_gpo_initially_don’t_commit_new_partial_GPO (0.08s) Kerberos auth with 'buildd@WORKGROUP' (WORKGROUP\buildd) to access 'localhost' not possible --- PASS: TestGetPoliciesWorkflows (0.00s) --- PASS: TestGetPoliciesWorkflows/Second_call_with_different_user (0.22s) --- PASS: TestGetPoliciesWorkflows/Second_call_is_a_refresh_(without_Krb5CCName_specified) (0.13s) --- PASS: TestGetPoliciesWorkflows/Second_call_after_service_restarted (0.13s) --- PASS: TestGetPoliciesWorkflows/Second_call_after_a_relogin (0.13s) PASS ok github.com/ubuntu/adsys/internal/policies/ad 3.045s === RUN TestGenerateExpandedCategories === PAUSE TestGenerateExpandedCategories === RUN TestExpandedCategoriesToADMX === PAUSE TestExpandedCategoriesToADMX === RUN TestMainExpand === PAUSE TestMainExpand === RUN TestMainADMX === PAUSE TestMainADMX === CONT TestGenerateExpandedCategories === RUN TestGenerateExpandedCategories/use_policy_class_instead_of_category_default === PAUSE TestGenerateExpandedCategories/use_policy_class_instead_of_category_default === RUN TestGenerateExpandedCategories/range === CONT TestMainADMX === RUN TestMainADMX/releases_from_yaml === PAUSE TestMainADMX/releases_from_yaml === RUN TestMainADMX/autodetect_overrides_releases_from_yaml === PAUSE TestMainADMX/autodetect_overrides_releases_from_yaml === RUN TestMainADMX/invalid_definition_file === PAUSE TestMainADMX/invalid_definition_file === RUN TestMainADMX/category_expansion_fails === PAUSE TestMainADMX/category_expansion_fails === RUN TestMainADMX/admx_generation_fails === PAUSE TestMainADMX/admx_generation_fails === CONT TestMainADMX/releases_from_yaml === PAUSE TestGenerateExpandedCategories/range === RUN TestGenerateExpandedCategories/different_range === PAUSE TestGenerateExpandedCategories/different_range === RUN TestGenerateExpandedCategories/same_policy_used_in_two_categories_but_different_default_class === PAUSE TestGenerateExpandedCategories/same_policy_used_in_two_categories_but_different_default_class === RUN TestGenerateExpandedCategories/allow_policy_referenced_but_not_available_in_any_releases === PAUSE TestGenerateExpandedCategories/allow_policy_referenced_but_not_available_in_any_releases === RUN TestGenerateExpandedCategories/error_on_invalid_default_policy_class === PAUSE TestGenerateExpandedCategories/error_on_invalid_default_policy_class === RUN TestGenerateExpandedCategories/error_on_policy_not_attached_to_any_releases === PAUSE TestGenerateExpandedCategories/error_on_policy_not_attached_to_any_releases === RUN TestGenerateExpandedCategories/two_policies === PAUSE TestGenerateExpandedCategories/two_policies === RUN TestGenerateExpandedCategories/different_explain_text === PAUSE TestGenerateExpandedCategories/different_explain_text === RUN TestGenerateExpandedCategories/same_policy_used_in_two_categories === PAUSE TestGenerateExpandedCategories/same_policy_used_in_two_categories === RUN TestGenerateExpandedCategories/different_meta === PAUSE TestGenerateExpandedCategories/different_meta === RUN TestGenerateExpandedCategories/error_on_different_class === PAUSE TestGenerateExpandedCategories/error_on_different_class === RUN TestGenerateExpandedCategories/same_default === PAUSE TestGenerateExpandedCategories/same_default === RUN TestGenerateExpandedCategories/choices === PAUSE TestGenerateExpandedCategories/choices === RUN TestGenerateExpandedCategories/different_element_type === PAUSE TestGenerateExpandedCategories/different_element_type === RUN TestGenerateExpandedCategories/policy_directory_doesn't_exist === PAUSE TestGenerateExpandedCategories/policy_directory_doesn't_exist === RUN TestGenerateExpandedCategories/category_definition_doesn't_exist === PAUSE TestGenerateExpandedCategories/category_definition_doesn't_exist === RUN TestGenerateExpandedCategories/different_choices === PAUSE TestGenerateExpandedCategories/different_choices === RUN TestGenerateExpandedCategories/error_on_unexisting_policy_referenced === PAUSE TestGenerateExpandedCategories/error_on_unexisting_policy_referenced === RUN TestGenerateExpandedCategories/error_on_missing_release === PAUSE TestGenerateExpandedCategories/error_on_missing_release === RUN TestGenerateExpandedCategories/different_display_name === PAUSE TestGenerateExpandedCategories/different_display_name === RUN TestGenerateExpandedCategories/with_prefix === PAUSE TestGenerateExpandedCategories/with_prefix === RUN TestGenerateExpandedCategories/error_on_different_policy_type === PAUSE TestGenerateExpandedCategories/error_on_different_policy_type === RUN TestGenerateExpandedCategories/multiple_top_categories === PAUSE TestGenerateExpandedCategories/multiple_top_categories === RUN TestGenerateExpandedCategories/error_on_nested_category === PAUSE TestGenerateExpandedCategories/error_on_nested_category === RUN TestGenerateExpandedCategories/different_defaults === PAUSE TestGenerateExpandedCategories/different_defaults === RUN TestGenerateExpandedCategories/available_on_one_release_only === PAUSE TestGenerateExpandedCategories/available_on_one_release_only === RUN TestGenerateExpandedCategories/nested_categories === PAUSE TestGenerateExpandedCategories/nested_categories === RUN TestGenerateExpandedCategories/error_on_empty_default_policy_class === PAUSE TestGenerateExpandedCategories/error_on_empty_default_policy_class === RUN TestGenerateExpandedCategories/simple === PAUSE TestGenerateExpandedCategories/simple === RUN TestGenerateExpandedCategories/default_policy_class_is_capitalized === PAUSE TestGenerateExpandedCategories/default_policy_class_is_capitalized === RUN TestGenerateExpandedCategories/error_on_one_policy_not_used === PAUSE TestGenerateExpandedCategories/error_on_one_policy_not_used === CONT TestGenerateExpandedCategories/use_policy_class_instead_of_category_default === CONT TestMainADMX/admx_generation_fails === CONT TestMainADMX/category_expansion_fails === CONT TestMainADMX/invalid_definition_file === CONT TestMainADMX/autodetect_overrides_releases_from_yaml --- PASS: TestMainADMX (0.00s) --- PASS: TestMainADMX/releases_from_yaml (0.00s) --- PASS: TestMainADMX/admx_generation_fails (0.00s) --- PASS: TestMainADMX/category_expansion_fails (0.00s) --- PASS: TestMainADMX/invalid_definition_file (0.00s) --- PASS: TestMainADMX/autodetect_overrides_releases_from_yaml (0.00s) === CONT TestMainExpand === RUN TestMainExpand/unsupported_policy_type === PAUSE TestMainExpand/unsupported_policy_type === RUN TestMainExpand/no_source_directory === PAUSE TestMainExpand/no_source_directory === RUN TestMainExpand/invalid_dconf.yaml === PAUSE TestMainExpand/invalid_dconf.yaml === RUN TestMainExpand/dconf_generation_fails === PAUSE TestMainExpand/dconf_generation_fails === RUN TestMainExpand/dconf === PAUSE TestMainExpand/dconf === RUN TestMainExpand/ignore_categories_and_non_yaml_files === PAUSE TestMainExpand/ignore_categories_and_non_yaml_files === RUN TestMainExpand/no_release_file === PAUSE TestMainExpand/no_release_file === RUN TestMainExpand/no_version_id === PAUSE TestMainExpand/no_version_id === CONT TestMainExpand/unsupported_policy_type === CONT TestGenerateExpandedCategories/error_on_one_policy_not_used === CONT TestGenerateExpandedCategories/default_policy_class_is_capitalized === CONT TestGenerateExpandedCategories/simple === CONT TestGenerateExpandedCategories/error_on_empty_default_policy_class === CONT TestGenerateExpandedCategories/nested_categories === CONT TestGenerateExpandedCategories/available_on_one_release_only === CONT TestGenerateExpandedCategories/different_defaults === CONT TestGenerateExpandedCategories/different_choices === CONT TestExpandedCategoriesToADMX === RUN TestExpandedCategoriesToADMX/nested_categories === PAUSE TestExpandedCategoriesToADMX/nested_categories === RUN TestExpandedCategoriesToADMX/other_distro === PAUSE TestExpandedCategoriesToADMX/other_distro === RUN TestExpandedCategoriesToADMX/multiple_releases_with_different_widgettype === PAUSE TestExpandedCategoriesToADMX/multiple_releases_with_different_widgettype === RUN TestExpandedCategoriesToADMX/multiple_releases_with_different_choices === PAUSE TestExpandedCategoriesToADMX/multiple_releases_with_different_choices === RUN TestExpandedCategoriesToADMX/multiple_releases_with_all_widgets_and_different_defaults === PAUSE TestExpandedCategoriesToADMX/multiple_releases_with_all_widgets_and_different_defaults === RUN TestExpandedCategoriesToADMX/decimal_with_range === PAUSE TestExpandedCategoriesToADMX/decimal_with_range === RUN TestExpandedCategoriesToADMX/choices_with_default === PAUSE TestExpandedCategoriesToADMX/choices_with_default === RUN TestExpandedCategoriesToADMX/simple === PAUSE TestExpandedCategoriesToADMX/simple === RUN TestExpandedCategoriesToADMX/decimal === PAUSE TestExpandedCategoriesToADMX/decimal === RUN TestExpandedCategoriesToADMX/decimal_with_min_only === PAUSE TestExpandedCategoriesToADMX/decimal_with_min_only === RUN TestExpandedCategoriesToADMX/choices === PAUSE TestExpandedCategoriesToADMX/choices === RUN TestExpandedCategoriesToADMX/error_on_destination_creation === PAUSE TestExpandedCategoriesToADMX/error_on_destination_creation === RUN TestExpandedCategoriesToADMX/array_of_integers === PAUSE TestExpandedCategoriesToADMX/array_of_integers === RUN TestExpandedCategoriesToADMX/double === PAUSE TestExpandedCategoriesToADMX/double === RUN TestExpandedCategoriesToADMX/double_with_range === PAUSE TestExpandedCategoriesToADMX/double_with_range === RUN TestExpandedCategoriesToADMX/multiple_categories === PAUSE TestExpandedCategoriesToADMX/multiple_categories === RUN TestExpandedCategoriesToADMX/boolean === PAUSE TestExpandedCategoriesToADMX/boolean === RUN TestExpandedCategoriesToADMX/decimal_with_max_only === PAUSE TestExpandedCategoriesToADMX/decimal_with_max_only === RUN TestExpandedCategoriesToADMX/long_decimal === PAUSE TestExpandedCategoriesToADMX/long_decimal === RUN TestExpandedCategoriesToADMX/array_of_strings === PAUSE TestExpandedCategoriesToADMX/array_of_strings === RUN TestExpandedCategoriesToADMX/multiple_releases_for_one_key === PAUSE TestExpandedCategoriesToADMX/multiple_releases_for_one_key === RUN TestExpandedCategoriesToADMX/multiple_releases_with_different_ranges === PAUSE TestExpandedCategoriesToADMX/multiple_releases_with_different_ranges === CONT TestGenerateExpandedCategories/two_policies === CONT TestGenerateExpandedCategories/error_on_policy_not_attached_to_any_releases === CONT TestGenerateExpandedCategories/error_on_invalid_default_policy_class === CONT TestGenerateExpandedCategories/allow_policy_referenced_but_not_available_in_any_releases time="2021-06-21T12:47:09Z" level=warning msg="policy /org/gnome/desktop/policy-doesnotexit referenced in \"Category1 Display Name\" does not exist in any supported releases" === CONT TestGenerateExpandedCategories/same_policy_used_in_two_categories_but_different_default_class === CONT TestGenerateExpandedCategories/different_range === CONT TestGenerateExpandedCategories/different_explain_text === CONT TestGenerateExpandedCategories/range === CONT TestExpandedCategoriesToADMX/nested_categories === CONT TestMainExpand/no_release_file === CONT TestMainExpand/ignore_categories_and_non_yaml_files === CONT TestMainExpand/no_version_id === CONT TestMainExpand/dconf === CONT TestMainExpand/dconf_generation_fails === CONT TestMainExpand/invalid_dconf.yaml === CONT TestMainExpand/no_source_directory === CONT TestGenerateExpandedCategories/category_definition_doesn't_exist === CONT TestGenerateExpandedCategories/policy_directory_doesn't_exist === CONT TestGenerateExpandedCategories/different_element_type === CONT TestGenerateExpandedCategories/choices === CONT TestGenerateExpandedCategories/same_default === CONT TestGenerateExpandedCategories/error_on_different_class === CONT TestGenerateExpandedCategories/different_meta === CONT TestGenerateExpandedCategories/same_policy_used_in_two_categories === CONT TestGenerateExpandedCategories/with_prefix === CONT TestGenerateExpandedCategories/error_on_nested_category === CONT TestGenerateExpandedCategories/multiple_top_categories === CONT TestGenerateExpandedCategories/error_on_different_policy_type === CONT TestGenerateExpandedCategories/error_on_missing_release === CONT TestGenerateExpandedCategories/different_display_name === CONT TestGenerateExpandedCategories/error_on_unexisting_policy_referenced --- PASS: TestMainExpand (0.00s) --- PASS: TestMainExpand/unsupported_policy_type (0.00s) --- PASS: TestMainExpand/no_release_file (0.00s) --- PASS: TestMainExpand/no_version_id (0.00s) --- PASS: TestMainExpand/dconf_generation_fails (0.00s) --- PASS: TestMainExpand/dconf (0.00s) --- PASS: TestMainExpand/ignore_categories_and_non_yaml_files (0.00s) --- PASS: TestMainExpand/no_source_directory (0.00s) --- PASS: TestMainExpand/invalid_dconf.yaml (0.00s) === CONT TestExpandedCategoriesToADMX/error_on_destination_creation === CONT TestExpandedCategoriesToADMX/multiple_releases_with_different_ranges === CONT TestExpandedCategoriesToADMX/multiple_releases_for_one_key === CONT TestExpandedCategoriesToADMX/array_of_strings === CONT TestExpandedCategoriesToADMX/long_decimal === CONT TestExpandedCategoriesToADMX/decimal_with_max_only --- PASS: TestGenerateExpandedCategories (0.00s) --- PASS: TestGenerateExpandedCategories/use_policy_class_instead_of_category_default (0.00s) --- PASS: TestGenerateExpandedCategories/error_on_one_policy_not_used (0.00s) --- PASS: TestGenerateExpandedCategories/default_policy_class_is_capitalized (0.00s) --- PASS: TestGenerateExpandedCategories/simple (0.00s) --- PASS: TestGenerateExpandedCategories/error_on_empty_default_policy_class (0.00s) --- PASS: TestGenerateExpandedCategories/nested_categories (0.00s) --- PASS: TestGenerateExpandedCategories/available_on_one_release_only (0.00s) --- PASS: TestGenerateExpandedCategories/two_policies (0.00s) --- PASS: TestGenerateExpandedCategories/error_on_policy_not_attached_to_any_releases (0.00s) --- PASS: TestGenerateExpandedCategories/different_choices (0.01s) --- PASS: TestGenerateExpandedCategories/allow_policy_referenced_but_not_available_in_any_releases (0.00s) --- PASS: TestGenerateExpandedCategories/error_on_invalid_default_policy_class (0.00s) --- PASS: TestGenerateExpandedCategories/different_defaults (0.01s) --- PASS: TestGenerateExpandedCategories/different_range (0.00s) --- PASS: TestGenerateExpandedCategories/range (0.00s) --- PASS: TestGenerateExpandedCategories/same_policy_used_in_two_categories_but_different_default_class (0.00s) --- PASS: TestGenerateExpandedCategories/different_explain_text (0.00s) --- PASS: TestGenerateExpandedCategories/policy_directory_doesn't_exist (0.00s) --- PASS: TestGenerateExpandedCategories/category_definition_doesn't_exist (0.00s) --- PASS: TestGenerateExpandedCategories/different_element_type (0.00s) --- PASS: TestGenerateExpandedCategories/choices (0.00s) --- PASS: TestGenerateExpandedCategories/error_on_different_class (0.00s) --- PASS: TestGenerateExpandedCategories/same_default (0.00s) --- PASS: TestGenerateExpandedCategories/different_meta (0.00s) --- PASS: TestGenerateExpandedCategories/with_prefix (0.00s) --- PASS: TestGenerateExpandedCategories/error_on_nested_category (0.00s) --- PASS: TestGenerateExpandedCategories/same_policy_used_in_two_categories (0.00s) --- PASS: TestGenerateExpandedCategories/error_on_different_policy_type (0.00s) --- PASS: TestGenerateExpandedCategories/multiple_top_categories (0.00s) --- PASS: TestGenerateExpandedCategories/error_on_missing_release (0.00s) --- PASS: TestGenerateExpandedCategories/different_display_name (0.00s) --- PASS: TestGenerateExpandedCategories/error_on_unexisting_policy_referenced (0.00s) === CONT TestExpandedCategoriesToADMX/boolean === CONT TestExpandedCategoriesToADMX/multiple_categories === CONT TestExpandedCategoriesToADMX/double === CONT TestExpandedCategoriesToADMX/array_of_integers === CONT TestExpandedCategoriesToADMX/choices_with_default === CONT TestExpandedCategoriesToADMX/choices === CONT TestExpandedCategoriesToADMX/decimal_with_min_only === CONT TestExpandedCategoriesToADMX/decimal === CONT TestExpandedCategoriesToADMX/simple === CONT TestExpandedCategoriesToADMX/double_with_range === CONT TestExpandedCategoriesToADMX/multiple_releases_with_different_choices === CONT TestExpandedCategoriesToADMX/decimal_with_range === CONT TestExpandedCategoriesToADMX/multiple_releases_with_all_widgets_and_different_defaults === CONT TestExpandedCategoriesToADMX/multiple_releases_with_different_widgettype === CONT TestExpandedCategoriesToADMX/other_distro --- PASS: TestExpandedCategoriesToADMX (0.01s) --- PASS: TestExpandedCategoriesToADMX/nested_categories (0.00s) --- PASS: TestExpandedCategoriesToADMX/error_on_destination_creation (0.00s) --- PASS: TestExpandedCategoriesToADMX/array_of_strings (0.00s) --- PASS: TestExpandedCategoriesToADMX/multiple_releases_for_one_key (0.00s) --- PASS: TestExpandedCategoriesToADMX/multiple_releases_with_different_ranges (0.00s) --- PASS: TestExpandedCategoriesToADMX/boolean (0.00s) --- PASS: TestExpandedCategoriesToADMX/long_decimal (0.01s) --- PASS: TestExpandedCategoriesToADMX/multiple_categories (0.00s) --- PASS: TestExpandedCategoriesToADMX/double (0.00s) --- PASS: TestExpandedCategoriesToADMX/array_of_integers (0.00s) --- PASS: TestExpandedCategoriesToADMX/choices_with_default (0.00s) --- PASS: TestExpandedCategoriesToADMX/decimal_with_min_only (0.00s) --- PASS: TestExpandedCategoriesToADMX/decimal (0.00s) --- PASS: TestExpandedCategoriesToADMX/simple (0.00s) --- PASS: TestExpandedCategoriesToADMX/double_with_range (0.00s) --- PASS: TestExpandedCategoriesToADMX/decimal_with_range (0.00s) --- PASS: TestExpandedCategoriesToADMX/multiple_releases_with_all_widgets_and_different_defaults (0.00s) --- PASS: TestExpandedCategoriesToADMX/choices (0.01s) --- PASS: TestExpandedCategoriesToADMX/multiple_releases_with_different_widgettype (0.00s) --- PASS: TestExpandedCategoriesToADMX/decimal_with_max_only (0.03s) --- PASS: TestExpandedCategoriesToADMX/multiple_releases_with_different_choices (0.02s) --- PASS: TestExpandedCategoriesToADMX/other_distro (0.00s) PASS ok github.com/ubuntu/adsys/internal/policies/ad/admxgen 0.057s ? github.com/ubuntu/adsys/internal/policies/ad/admxgen/common [no test files] === RUN TestGenerate === PAUSE TestGenerate === CONT TestGenerate === RUN TestGenerate/Double_key_with_range === PAUSE TestGenerate/Double_key_with_range === RUN TestGenerate/Relocatable_key_overridden === PAUSE TestGenerate/Relocatable_key_overridden === RUN TestGenerate/Invalid_override_files_are_skipped === PAUSE TestGenerate/Invalid_override_files_are_skipped === RUN TestGenerate/Array_of_integers === PAUSE TestGenerate/Array_of_integers === RUN TestGenerate/Override_with_session_takes_session_override === PAUSE TestGenerate/Override_with_session_takes_session_override === RUN TestGenerate/Key_with_class === PAUSE TestGenerate/Key_with_class === RUN TestGenerate/Relocatable_key === PAUSE TestGenerate/Relocatable_key === RUN TestGenerate/Long_decimal_key === PAUSE TestGenerate/Long_decimal_key === RUN TestGenerate/Array_of_strings === PAUSE TestGenerate/Array_of_strings === RUN TestGenerate/Valid_class_should_be_capitalized === PAUSE TestGenerate/Valid_class_should_be_capitalized === RUN TestGenerate/Invalid_class === PAUSE TestGenerate/Invalid_class === RUN TestGenerate/One_boolean_key === PAUSE TestGenerate/One_boolean_key === RUN TestGenerate/One_decimal_key_with_range === PAUSE TestGenerate/One_decimal_key_with_range === RUN TestGenerate/Double_key === PAUSE TestGenerate/Double_key === RUN TestGenerate/Override_without_session === PAUSE TestGenerate/Override_without_session === RUN TestGenerate/Inlined_Enums_are_converted_to_choices === PAUSE TestGenerate/Inlined_Enums_are_converted_to_choices === RUN TestGenerate/Same_key_relocated_twice === PAUSE TestGenerate/Same_key_relocated_twice === RUN TestGenerate/Overridden_by_multiple_files,_last_wins === PAUSE TestGenerate/Overridden_by_multiple_files,_last_wins === RUN TestGenerate/One_text_key === PAUSE TestGenerate/One_text_key === RUN TestGenerate/One_decimal_key === PAUSE TestGenerate/One_decimal_key === RUN TestGenerate/One_decimal_key_with_min_only === PAUSE TestGenerate/One_decimal_key_with_min_only === RUN TestGenerate/One_decimal_key_with_max_only === PAUSE TestGenerate/One_decimal_key_with_max_only === RUN TestGenerate/Long_decimal_key_with_range_min_lt_0 === PAUSE TestGenerate/Long_decimal_key_with_range_min_lt_0 === RUN TestGenerate/Long_decimal_key_with_range_min_gt_0 === PAUSE TestGenerate/Long_decimal_key_with_range_min_gt_0 === RUN TestGenerate/Override_with_no_matching_session_defaults_to_root_override === PAUSE TestGenerate/Override_with_no_matching_session_defaults_to_root_override === RUN TestGenerate/No_key_on_system === PAUSE TestGenerate/No_key_on_system === RUN TestGenerate/Empty === PAUSE TestGenerate/Empty === RUN TestGenerate/NaN_min === PAUSE TestGenerate/NaN_min === RUN TestGenerate/Override_takes_first_session === PAUSE TestGenerate/Override_takes_first_session === RUN TestGenerate/Invalid_schema_files === PAUSE TestGenerate/Invalid_schema_files === RUN TestGenerate/Override_default_to_second_if_first_not_present === PAUSE TestGenerate/Override_default_to_second_if_first_not_present === RUN TestGenerate/Override_without_session_takes_default === PAUSE TestGenerate/Override_without_session_takes_default === RUN TestGenerate/Choices_are_loaded === PAUSE TestGenerate/Choices_are_loaded === RUN TestGenerate/Enums_in_other_files_are_converted_to_choices === PAUSE TestGenerate/Enums_in_other_files_are_converted_to_choices === RUN TestGenerate/Unsupported_key_type === PAUSE TestGenerate/Unsupported_key_type === RUN TestGenerate/Enum_does_not_exist === PAUSE TestGenerate/Enum_does_not_exist === RUN TestGenerate/Invalid_min === PAUSE TestGenerate/Invalid_min === CONT TestGenerate/Double_key_with_range === CONT TestGenerate/Invalid_min === CONT TestGenerate/Enum_does_not_exist === CONT TestGenerate/Unsupported_key_type === CONT TestGenerate/Enums_in_other_files_are_converted_to_choices === CONT TestGenerate/Valid_class_should_be_capitalized === CONT TestGenerate/Array_of_strings === CONT TestGenerate/Same_key_relocated_twice === CONT TestGenerate/Long_decimal_key === CONT TestGenerate/Inlined_Enums_are_converted_to_choices === CONT TestGenerate/Relocatable_key === CONT TestGenerate/Override_without_session === CONT TestGenerate/Key_with_class === CONT TestGenerate/Override_with_session_takes_session_override === CONT TestGenerate/Double_key === CONT TestGenerate/One_decimal_key_with_range === CONT TestGenerate/One_boolean_key === CONT TestGenerate/Array_of_integers === CONT TestGenerate/Overridden_by_multiple_files,_last_wins === CONT TestGenerate/Invalid_override_files_are_skipped === CONT TestGenerate/Relocatable_key_overridden time="2021-06-21T12:47:09Z" level=warning msg="testdata/system/broken_override/usr/share/glib-2.0/schemas/broken.gschema.override is an invalid override file: unclosed section: [com.ubuntu.simple.overridden\n" === CONT TestGenerate/Invalid_class === CONT TestGenerate/No_key_on_system === CONT TestGenerate/Choices_are_loaded time="2021-06-21T12:47:09Z" level=warning msg="dconf entry \"/com/ubuntu/simple/non-existent\" is not available on this machine" === CONT TestGenerate/Override_without_session_takes_default === CONT TestGenerate/Override_default_to_second_if_first_not_present === CONT TestGenerate/Invalid_schema_files === CONT TestGenerate/Override_takes_first_session === CONT TestGenerate/NaN_min === CONT TestGenerate/Empty === CONT TestGenerate/One_decimal_key_with_max_only === CONT TestGenerate/Override_with_no_matching_session_defaults_to_root_override === CONT TestGenerate/Long_decimal_key_with_range_min_gt_0 === CONT TestGenerate/Long_decimal_key_with_range_min_lt_0 === CONT TestGenerate/One_decimal_key === CONT TestGenerate/One_decimal_key_with_min_only === CONT TestGenerate/One_text_key --- PASS: TestGenerate (0.00s) --- PASS: TestGenerate/Double_key_with_range (0.00s) --- PASS: TestGenerate/Invalid_min (0.00s) --- PASS: TestGenerate/Enum_does_not_exist (0.00s) --- PASS: TestGenerate/Unsupported_key_type (0.00s) --- PASS: TestGenerate/Enums_in_other_files_are_converted_to_choices (0.00s) --- PASS: TestGenerate/Valid_class_should_be_capitalized (0.00s) --- PASS: TestGenerate/Array_of_strings (0.00s) --- PASS: TestGenerate/Same_key_relocated_twice (0.00s) --- PASS: TestGenerate/Long_decimal_key (0.00s) --- PASS: TestGenerate/Inlined_Enums_are_converted_to_choices (0.00s) --- PASS: TestGenerate/Relocatable_key (0.00s) --- PASS: TestGenerate/Key_with_class (0.00s) --- PASS: TestGenerate/Override_without_session (0.00s) --- PASS: TestGenerate/Override_with_session_takes_session_override (0.00s) --- PASS: TestGenerate/One_decimal_key_with_range (0.00s) --- PASS: TestGenerate/One_boolean_key (0.00s) --- PASS: TestGenerate/Array_of_integers (0.00s) --- PASS: TestGenerate/Invalid_override_files_are_skipped (0.00s) --- PASS: TestGenerate/Double_key (0.00s) --- PASS: TestGenerate/Relocatable_key_overridden (0.00s) --- PASS: TestGenerate/No_key_on_system (0.00s) --- PASS: TestGenerate/Invalid_class (0.00s) --- PASS: TestGenerate/Choices_are_loaded (0.00s) --- PASS: TestGenerate/Invalid_schema_files (0.00s) --- PASS: TestGenerate/Override_without_session_takes_default (0.00s) --- PASS: TestGenerate/NaN_min (0.00s) --- PASS: TestGenerate/Override_default_to_second_if_first_not_present (0.00s) --- PASS: TestGenerate/Override_takes_first_session (0.00s) --- PASS: TestGenerate/Empty (0.00s) --- PASS: TestGenerate/One_decimal_key_with_max_only (0.00s) --- PASS: TestGenerate/Override_with_no_matching_session_defaults_to_root_override (0.00s) --- PASS: TestGenerate/Overridden_by_multiple_files,_last_wins (0.01s) --- PASS: TestGenerate/One_decimal_key (0.00s) --- PASS: TestGenerate/One_decimal_key_with_min_only (0.01s) --- PASS: TestGenerate/One_text_key (0.01s) --- PASS: TestGenerate/Long_decimal_key_with_range_min_gt_0 (0.01s) --- PASS: TestGenerate/Long_decimal_key_with_range_min_lt_0 (0.01s) PASS ok github.com/ubuntu/adsys/internal/policies/ad/admxgen/dconf 0.032s === RUN TestGetVersionID === PAUSE TestGetVersionID === CONT TestGetVersionID === RUN TestGetVersionID/No_os-release_file === PAUSE TestGetVersionID/No_os-release_file === RUN TestGetVersionID/Read_VERSION_ID === PAUSE TestGetVersionID/Read_VERSION_ID === RUN TestGetVersionID/No_VERSION_ID_in_file === PAUSE TestGetVersionID/No_VERSION_ID_in_file === CONT TestGetVersionID/No_os-release_file === CONT TestGetVersionID/No_VERSION_ID_in_file === CONT TestGetVersionID/Read_VERSION_ID --- PASS: TestGetVersionID (0.00s) --- PASS: TestGetVersionID/No_os-release_file (0.00s) --- PASS: TestGetVersionID/No_VERSION_ID_in_file (0.00s) --- PASS: TestGetVersionID/Read_VERSION_ID (0.00s) PASS ok github.com/ubuntu/adsys/internal/policies/ad/common 0.010s === RUN TestReadPolicy === PAUSE TestReadPolicy === RUN TestDecodePolicy === PAUSE TestDecodePolicy === CONT TestReadPolicy === RUN TestReadPolicy/missing_field === PAUSE TestReadPolicy/missing_field === RUN TestReadPolicy/key_is_not_utf16 === PAUSE TestReadPolicy/key_is_not_utf16 === RUN TestReadPolicy/one_element,_string_value === PAUSE TestReadPolicy/one_element,_string_value === RUN TestReadPolicy/two_elements === PAUSE TestReadPolicy/two_elements === RUN TestReadPolicy/memory_on_multiple_elements_dont_overlap === PAUSE TestReadPolicy/memory_on_multiple_elements_dont_overlap === RUN TestReadPolicy/empty_file === PAUSE TestReadPolicy/empty_file === RUN TestReadPolicy/section_not_closed === PAUSE TestReadPolicy/section_not_closed === RUN TestReadPolicy/empty_value === PAUSE TestReadPolicy/empty_value === RUN TestReadPolicy/exotic_return_type === PAUSE TestReadPolicy/exotic_return_type === RUN TestReadPolicy/header_only === PAUSE TestReadPolicy/header_only === RUN TestReadPolicy/invalid_header,_header_too_short === PAUSE TestReadPolicy/invalid_header,_header_too_short === RUN TestReadPolicy/value_is_not_utf16 === PAUSE TestReadPolicy/value_is_not_utf16 === RUN TestReadPolicy/empty_key === PAUSE TestReadPolicy/empty_key === RUN TestReadPolicy/semicolon_in_data === PAUSE TestReadPolicy/semicolon_in_data === RUN TestReadPolicy/invalid_header,_file_truncated === PAUSE TestReadPolicy/invalid_header,_file_truncated === RUN TestReadPolicy/no_header === PAUSE TestReadPolicy/no_header === RUN TestReadPolicy/section_separators_in_data === PAUSE TestReadPolicy/section_separators_in_data === RUN TestReadPolicy/invalid_header,_header_doesnt_match === PAUSE TestReadPolicy/invalid_header,_header_doesnt_match === RUN TestReadPolicy/one_element,_decimal_value === PAUSE TestReadPolicy/one_element,_decimal_value === CONT TestReadPolicy/missing_field === CONT TestDecodePolicy === RUN TestDecodePolicy/invalid_container_default_values === PAUSE TestDecodePolicy/invalid_container_default_values === RUN TestDecodePolicy/two_elements === PAUSE TestDecodePolicy/two_elements === RUN TestDecodePolicy/container_with_default_elements_are_ignored_on_non_empty_option_values === PAUSE TestDecodePolicy/container_with_default_elements_are_ignored_on_non_empty_option_values === RUN TestDecodePolicy/two_containers_don’t_mix_their_default_values_when_redefined === PAUSE TestDecodePolicy/two_containers_don’t_mix_their_default_values_when_redefined === RUN TestDecodePolicy/header_only === PAUSE TestDecodePolicy/header_only === RUN TestDecodePolicy/invalid_decimal_value === PAUSE TestDecodePolicy/invalid_decimal_value === RUN TestDecodePolicy/semicolon_in_data === PAUSE TestDecodePolicy/semicolon_in_data === RUN TestDecodePolicy/container_with_default_elements_are_ignored_on_int_option_values_(always_have_values) === PAUSE TestDecodePolicy/container_with_default_elements_are_ignored_on_int_option_values_(always_have_values) === RUN TestDecodePolicy/no_header === PAUSE TestDecodePolicy/no_header === RUN TestDecodePolicy/empty_file === PAUSE TestDecodePolicy/empty_file === RUN TestDecodePolicy/missing_field === PAUSE TestDecodePolicy/missing_field === RUN TestDecodePolicy/one_element,_multitext_value === PAUSE TestDecodePolicy/one_element,_multitext_value === RUN TestDecodePolicy/container_with_meta_elements_and_default_without_value_on_options === PAUSE TestDecodePolicy/container_with_meta_elements_and_default_without_value_on_options === RUN TestDecodePolicy/invalid_header,_file_truncated === PAUSE TestDecodePolicy/invalid_header,_file_truncated === RUN TestDecodePolicy/key_is_not_utf16 === PAUSE TestDecodePolicy/key_is_not_utf16 === RUN TestDecodePolicy/one_element,_disabled === PAUSE TestDecodePolicy/one_element,_disabled === RUN TestDecodePolicy/container_with_missing_default_element_for_option_values_have_empty_strings === PAUSE TestDecodePolicy/container_with_missing_default_element_for_option_values_have_empty_strings === RUN TestDecodePolicy/section_not_closed === PAUSE TestDecodePolicy/section_not_closed === RUN TestDecodePolicy/one_container_with_2_children_don’t_mix_their_meta_values === PAUSE TestDecodePolicy/one_container_with_2_children_don’t_mix_their_meta_values === RUN TestDecodePolicy/section_separators_in_data === PAUSE TestDecodePolicy/section_separators_in_data === RUN TestDecodePolicy/exotic_return_type === PAUSE TestDecodePolicy/exotic_return_type === RUN TestDecodePolicy/invalid_header,_header_too_short === PAUSE TestDecodePolicy/invalid_header,_header_too_short === RUN TestDecodePolicy/value_is_not_utf16 === PAUSE TestDecodePolicy/value_is_not_utf16 === RUN TestDecodePolicy/one_element,_string_value === PAUSE TestDecodePolicy/one_element,_string_value === RUN TestDecodePolicy/container_with_default_elements_override_empty_option_values === PAUSE TestDecodePolicy/container_with_default_elements_override_empty_option_values === RUN TestDecodePolicy/container_with_meta_elements_and_value_on_options === PAUSE TestDecodePolicy/container_with_meta_elements_and_value_on_options === RUN TestDecodePolicy/one_container_with_2_children_don’t_mix_their_default_values === PAUSE TestDecodePolicy/one_container_with_2_children_don’t_mix_their_default_values === RUN TestDecodePolicy/disabled_container_with_disabled_option_values === PAUSE TestDecodePolicy/disabled_container_with_disabled_option_values === RUN TestDecodePolicy/disabled_container_disables_its_option_values === PAUSE TestDecodePolicy/disabled_container_disables_its_option_values === RUN TestDecodePolicy/invalid_header,_header_doesnt_match === PAUSE TestDecodePolicy/invalid_header,_header_doesnt_match === RUN TestDecodePolicy/empty_key === PAUSE TestDecodePolicy/empty_key === RUN TestDecodePolicy/empty_value === PAUSE TestDecodePolicy/empty_value === RUN TestDecodePolicy/one_element,_decimal_value === PAUSE TestDecodePolicy/one_element,_decimal_value === CONT TestDecodePolicy/invalid_container_default_values === CONT TestReadPolicy/one_element,_decimal_value === CONT TestReadPolicy/invalid_header,_header_doesnt_match === CONT TestReadPolicy/section_separators_in_data === CONT TestReadPolicy/no_header === CONT TestReadPolicy/invalid_header,_file_truncated === CONT TestReadPolicy/semicolon_in_data === CONT TestReadPolicy/empty_key === CONT TestReadPolicy/value_is_not_utf16 === CONT TestReadPolicy/invalid_header,_header_too_short === CONT TestReadPolicy/header_only === CONT TestReadPolicy/exotic_return_type === CONT TestReadPolicy/empty_value === CONT TestReadPolicy/section_not_closed === CONT TestReadPolicy/empty_file === CONT TestReadPolicy/memory_on_multiple_elements_dont_overlap === CONT TestReadPolicy/two_elements === CONT TestReadPolicy/one_element,_string_value === CONT TestReadPolicy/key_is_not_utf16 --- PASS: TestReadPolicy (0.01s) --- PASS: TestReadPolicy/missing_field (0.00s) --- PASS: TestReadPolicy/one_element,_decimal_value (0.00s) --- PASS: TestReadPolicy/invalid_header,_header_doesnt_match (0.00s) --- PASS: TestReadPolicy/section_separators_in_data (0.00s) --- PASS: TestReadPolicy/no_header (0.00s) --- PASS: TestReadPolicy/invalid_header,_file_truncated (0.00s) --- PASS: TestReadPolicy/semicolon_in_data (0.00s) --- PASS: TestReadPolicy/empty_key (0.00s) --- PASS: TestReadPolicy/value_is_not_utf16 (0.00s) --- PASS: TestReadPolicy/invalid_header,_header_too_short (0.00s) --- PASS: TestReadPolicy/header_only (0.00s) --- PASS: TestReadPolicy/exotic_return_type (0.00s) --- PASS: TestReadPolicy/empty_value (0.00s) --- PASS: TestReadPolicy/section_not_closed (0.00s) --- PASS: TestReadPolicy/empty_file (0.00s) --- PASS: TestReadPolicy/memory_on_multiple_elements_dont_overlap (0.00s) --- PASS: TestReadPolicy/two_elements (0.00s) --- PASS: TestReadPolicy/one_element,_string_value (0.00s) --- PASS: TestReadPolicy/key_is_not_utf16 (0.00s) === CONT TestDecodePolicy/one_element,_decimal_value === CONT TestDecodePolicy/empty_value === CONT TestDecodePolicy/empty_key === CONT TestDecodePolicy/invalid_header,_header_doesnt_match === CONT TestDecodePolicy/disabled_container_disables_its_option_values === CONT TestDecodePolicy/disabled_container_with_disabled_option_values === CONT TestDecodePolicy/one_container_with_2_children_don’t_mix_their_default_values === CONT TestDecodePolicy/container_with_meta_elements_and_value_on_options === CONT TestDecodePolicy/container_with_default_elements_override_empty_option_values === CONT TestDecodePolicy/one_element,_string_value === CONT TestDecodePolicy/value_is_not_utf16 === CONT TestDecodePolicy/invalid_header,_header_too_short === CONT TestDecodePolicy/exotic_return_type === CONT TestDecodePolicy/section_separators_in_data === CONT TestDecodePolicy/one_container_with_2_children_don’t_mix_their_meta_values === CONT TestDecodePolicy/section_not_closed === CONT TestDecodePolicy/container_with_missing_default_element_for_option_values_have_empty_strings === CONT TestDecodePolicy/one_element,_disabled === CONT TestDecodePolicy/key_is_not_utf16 === CONT TestDecodePolicy/invalid_header,_file_truncated === CONT TestDecodePolicy/container_with_meta_elements_and_default_without_value_on_options === CONT TestDecodePolicy/one_element,_multitext_value === CONT TestDecodePolicy/missing_field === CONT TestDecodePolicy/empty_file === CONT TestDecodePolicy/no_header === CONT TestDecodePolicy/container_with_default_elements_are_ignored_on_int_option_values_(always_have_values) === CONT TestDecodePolicy/semicolon_in_data === CONT TestDecodePolicy/invalid_decimal_value === CONT TestDecodePolicy/header_only === CONT TestDecodePolicy/two_containers_don’t_mix_their_default_values_when_redefined === CONT TestDecodePolicy/container_with_default_elements_are_ignored_on_non_empty_option_values === CONT TestDecodePolicy/two_elements --- PASS: TestDecodePolicy (0.00s) --- PASS: TestDecodePolicy/invalid_container_default_values (0.00s) --- PASS: TestDecodePolicy/one_element,_decimal_value (0.00s) --- PASS: TestDecodePolicy/empty_value (0.00s) --- PASS: TestDecodePolicy/empty_key (0.00s) --- PASS: TestDecodePolicy/invalid_header,_header_doesnt_match (0.00s) --- PASS: TestDecodePolicy/disabled_container_disables_its_option_values (0.00s) --- PASS: TestDecodePolicy/disabled_container_with_disabled_option_values (0.00s) --- PASS: TestDecodePolicy/one_container_with_2_children_don’t_mix_their_default_values (0.00s) --- PASS: TestDecodePolicy/container_with_meta_elements_and_value_on_options (0.00s) --- PASS: TestDecodePolicy/container_with_default_elements_override_empty_option_values (0.00s) --- PASS: TestDecodePolicy/one_element,_string_value (0.00s) --- PASS: TestDecodePolicy/value_is_not_utf16 (0.00s) --- PASS: TestDecodePolicy/invalid_header,_header_too_short (0.00s) --- PASS: TestDecodePolicy/exotic_return_type (0.00s) --- PASS: TestDecodePolicy/section_separators_in_data (0.00s) --- PASS: TestDecodePolicy/one_container_with_2_children_don’t_mix_their_meta_values (0.00s) --- PASS: TestDecodePolicy/section_not_closed (0.00s) --- PASS: TestDecodePolicy/container_with_missing_default_element_for_option_values_have_empty_strings (0.00s) --- PASS: TestDecodePolicy/one_element,_disabled (0.00s) --- PASS: TestDecodePolicy/key_is_not_utf16 (0.00s) --- PASS: TestDecodePolicy/invalid_header,_file_truncated (0.00s) --- PASS: TestDecodePolicy/container_with_meta_elements_and_default_without_value_on_options (0.00s) --- PASS: TestDecodePolicy/one_element,_multitext_value (0.00s) --- PASS: TestDecodePolicy/missing_field (0.00s) --- PASS: TestDecodePolicy/empty_file (0.00s) --- PASS: TestDecodePolicy/no_header (0.00s) --- PASS: TestDecodePolicy/container_with_default_elements_are_ignored_on_int_option_values_(always_have_values) (0.00s) --- PASS: TestDecodePolicy/semicolon_in_data (0.00s) --- PASS: TestDecodePolicy/invalid_decimal_value (0.00s) --- PASS: TestDecodePolicy/header_only (0.00s) --- PASS: TestDecodePolicy/two_containers_don’t_mix_their_default_values_when_redefined (0.00s) --- PASS: TestDecodePolicy/container_with_default_elements_are_ignored_on_non_empty_option_values (0.00s) --- PASS: TestDecodePolicy/two_elements (0.00s) PASS ok github.com/ubuntu/adsys/internal/policies/ad/registry 0.014s === RUN TestNormalize === PAUSE TestNormalize === RUN TestApplyPolicy === PAUSE TestApplyPolicy === CONT TestNormalize === RUN TestNormalize/string_with_escaped_quotes === PAUSE TestNormalize/string_with_escaped_quotes === RUN TestNormalize/no_transformed_to_boolean === PAUSE TestNormalize/no_transformed_to_boolean === RUN TestNormalize/as_without_leading_[ === PAUSE TestNormalize/as_without_leading_[ === RUN TestNormalize/as_empty_elements_separated_with_commas_are_kept === PAUSE TestNormalize/as_empty_elements_separated_with_commas_are_kept === RUN TestNormalize/as_partially_quoted_with_comma_can_lead_to_unexpected_result === PAUSE TestNormalize/as_partially_quoted_with_comma_can_lead_to_unexpected_result === RUN TestNormalize/Multi-lines_as_and_single_line_mix,_quoted === PAUSE TestNormalize/Multi-lines_as_and_single_line_mix,_quoted === RUN TestNormalize/simple_ai === PAUSE TestNormalize/simple_ai === RUN TestNormalize/Multi-lines_ai_with_spaces_inside === PAUSE TestNormalize/Multi-lines_ai_with_spaces_inside === RUN TestNormalize/as_with_leading_and_ending_spaces_and_no_[] === PAUSE TestNormalize/as_with_leading_and_ending_spaces_and_no_[] === RUN TestNormalize/as_with_leading_and_ending_spaces_and__[] === PAUSE TestNormalize/as_with_leading_and_ending_spaces_and__[] === RUN TestNormalize/as_partially_quoted_can_lead_to_unexpect_result === PAUSE TestNormalize/as_partially_quoted_can_lead_to_unexpect_result === RUN TestNormalize/Multi-lines_ai === PAUSE TestNormalize/Multi-lines_ai === RUN TestNormalize/string_with_multiple_backslashes_escaped_quotes === PAUSE TestNormalize/string_with_multiple_backslashes_escaped_quotes === RUN TestNormalize/y_transformed_to_boolean === PAUSE TestNormalize/y_transformed_to_boolean === RUN TestNormalize/on_transformed_to_boolean === PAUSE TestNormalize/on_transformed_to_boolean === RUN TestNormalize/weird_case_false === PAUSE TestNormalize/weird_case_false === RUN TestNormalize/ai_with_leading_and_ending_spaces_and_no_[] === PAUSE TestNormalize/ai_with_leading_and_ending_spaces_and_no_[] === RUN TestNormalize/simple_quoted_as === PAUSE TestNormalize/simple_quoted_as === RUN TestNormalize/Multi-lines_as_quoted === PAUSE TestNormalize/Multi-lines_as_quoted === RUN TestNormalize/Multi-lines_as_with_consecutive_empty_lines_strip_empty_elements === PAUSE TestNormalize/Multi-lines_as_with_consecutive_empty_lines_strip_empty_elements === RUN TestNormalize/ai_without_leading_[ === PAUSE TestNormalize/ai_without_leading_[ === RUN TestNormalize/Multi-lines_as_with_leading_or_trailing_empty_lines_before_[]_are_ignored === PAUSE TestNormalize/Multi-lines_as_with_leading_or_trailing_empty_lines_before_[]_are_ignored === RUN TestNormalize/unmanaged_types_are_returned_as_is === PAUSE TestNormalize/unmanaged_types_are_returned_as_is === RUN TestNormalize/empty_quoted_string === PAUSE TestNormalize/empty_quoted_string === RUN TestNormalize/non_supported_is_reported_as_is === PAUSE TestNormalize/non_supported_is_reported_as_is === RUN TestNormalize/simple_as_with_no_spaces === PAUSE TestNormalize/simple_as_with_no_spaces === RUN TestNormalize/as_wrongly_quoted_will_consider_comma_as_part_of_the_string === PAUSE TestNormalize/as_wrongly_quoted_will_consider_comma_as_part_of_the_string === RUN TestNormalize/n_transformed_to_boolean === PAUSE TestNormalize/n_transformed_to_boolean === RUN TestNormalize/as_with_spaces_inside === PAUSE TestNormalize/as_with_spaces_inside === RUN TestNormalize/ai_without_ending_] === PAUSE TestNormalize/ai_without_ending_] === RUN TestNormalize/Multi-lines_ai_with_empty_lines_strips_empty_element === PAUSE TestNormalize/Multi-lines_ai_with_empty_lines_strips_empty_element === RUN TestNormalize/Multi-lines_ai_with_leading_or_trailing_empty_lines_after_[]_are_ignored === PAUSE TestNormalize/Multi-lines_ai_with_leading_or_trailing_empty_lines_after_[]_are_ignored === RUN TestNormalize/empty_unquoted_string === PAUSE TestNormalize/empty_unquoted_string === RUN TestNormalize/weird_case_true === PAUSE TestNormalize/weird_case_true === RUN TestNormalize/as_simple_quoted_as_with_spaces === PAUSE TestNormalize/as_simple_quoted_as_with_spaces === RUN TestNormalize/as_partially_quoted_unbalanced_start_can_lead_to_unexpect_result === PAUSE TestNormalize/as_partially_quoted_unbalanced_start_can_lead_to_unexpect_result === RUN TestNormalize/one_escaped_quote === PAUSE TestNormalize/one_escaped_quote === RUN TestNormalize/with_spaces === PAUSE TestNormalize/with_spaces === RUN TestNormalize/simple_ai_with_no_spaces === PAUSE TestNormalize/simple_ai_with_no_spaces === RUN TestNormalize/Multi-lines_ai_with_leading_and_trailing_brackets === PAUSE TestNormalize/Multi-lines_ai_with_leading_and_trailing_brackets === RUN TestNormalize/Multi-lines_ai_with_leading_or_trailing_empty_lines_are_ignored === PAUSE TestNormalize/Multi-lines_ai_with_leading_or_trailing_empty_lines_are_ignored === RUN TestNormalize/Multi-lines_ai_with_leading_or_trailing_empty_lines_before_[]_are_ignored === PAUSE TestNormalize/Multi-lines_ai_with_leading_or_trailing_empty_lines_before_[]_are_ignored === RUN TestNormalize/quoted_string_with_quotes === PAUSE TestNormalize/quoted_string_with_quotes === RUN TestNormalize/off_transformed_to_boolean === PAUSE TestNormalize/off_transformed_to_boolean === RUN TestNormalize/simple_unquoted_as === PAUSE TestNormalize/simple_unquoted_as === RUN TestNormalize/Multi-lines_as_with_quoted_','_is_supported === PAUSE TestNormalize/Multi-lines_as_with_quoted_','_is_supported === RUN TestNormalize/Multi-lines_as_and_single_line_mix,_unquoted === PAUSE TestNormalize/Multi-lines_as_and_single_line_mix,_unquoted === RUN TestNormalize/unquoted_string_with_quotes === PAUSE TestNormalize/unquoted_string_with_quotes === RUN TestNormalize/simple_boolean_true === PAUSE TestNormalize/simple_boolean_true === RUN TestNormalize/simple_boolean_false === PAUSE TestNormalize/simple_boolean_false === RUN TestNormalize/Multi-lines_as_with_spaces_inside === PAUSE TestNormalize/Multi-lines_as_with_spaces_inside === RUN TestNormalize/one_quote === PAUSE TestNormalize/one_quote === RUN TestNormalize/simple_quoted_string === PAUSE TestNormalize/simple_quoted_string === RUN TestNormalize/Multi-lines_as_unquoted === PAUSE TestNormalize/Multi-lines_as_unquoted === RUN TestNormalize/Multi-lines_as_with_explicit_empty_element === PAUSE TestNormalize/Multi-lines_as_with_explicit_empty_element === RUN TestNormalize/ai_empty_elements_separated_with_commas_are_kept === PAUSE TestNormalize/ai_empty_elements_separated_with_commas_are_kept === RUN TestNormalize/simple_unquoted_string === PAUSE TestNormalize/simple_unquoted_string === RUN TestNormalize/as_without_ending_] === PAUSE TestNormalize/as_without_ending_] === RUN TestNormalize/as_with_empty_quoted_can_lead_to_unexpect_result === PAUSE TestNormalize/as_with_empty_quoted_can_lead_to_unexpect_result === RUN TestNormalize/Multi-lines_as_with_all_unquoted_','_will_split === PAUSE TestNormalize/Multi-lines_as_with_all_unquoted_','_will_split === RUN TestNormalize/ai_with_leading_and_ending_spaces_and__[] === PAUSE TestNormalize/ai_with_leading_and_ending_spaces_and__[] === RUN TestNormalize/Multi-lines_ai_with_all_unquoted_','_will_split === PAUSE TestNormalize/Multi-lines_ai_with_all_unquoted_','_will_split === RUN TestNormalize/string_with_two_backslashes_don’t_escape_quotes === PAUSE TestNormalize/string_with_two_backslashes_don’t_escape_quotes === RUN TestNormalize/Multi-lines_as_with_leading_and_trailing_brackets === PAUSE TestNormalize/Multi-lines_as_with_leading_and_trailing_brackets === RUN TestNormalize/Multi-lines_as_with_empty_lines_strips_empty_elements === PAUSE TestNormalize/Multi-lines_as_with_empty_lines_strips_empty_elements === RUN TestNormalize/Multi-lines_as_with_leading_or_trailing_empty_lines_after_[]_are_ignored === PAUSE TestNormalize/Multi-lines_as_with_leading_or_trailing_empty_lines_after_[]_are_ignored === RUN TestNormalize/ai_with_spaces_inside === PAUSE TestNormalize/ai_with_spaces_inside === RUN TestNormalize/Multi-lines_ai_with_consecutive_empty_lines_strips_empty_element === PAUSE TestNormalize/Multi-lines_ai_with_consecutive_empty_lines_strips_empty_element === RUN TestNormalize/yes_transformed_to_boolean === PAUSE TestNormalize/yes_transformed_to_boolean === RUN TestNormalize/as_partially_quoted_unbalanced_end_can_lead_to_unexpect_result === PAUSE TestNormalize/as_partially_quoted_unbalanced_end_can_lead_to_unexpect_result === RUN TestNormalize/as_with_weird_composition_inception_will_be_quoted === PAUSE TestNormalize/as_with_weird_composition_inception_will_be_quoted === RUN TestNormalize/Multi-lines_as_with_leading_or_trailing_empty_lines_are_ignored === PAUSE TestNormalize/Multi-lines_as_with_leading_or_trailing_empty_lines_are_ignored === CONT TestNormalize/string_with_escaped_quotes === CONT TestNormalize/Multi-lines_as_with_leading_or_trailing_empty_lines_are_ignored === CONT TestNormalize/as_with_weird_composition_inception_will_be_quoted === CONT TestNormalize/as_partially_quoted_unbalanced_end_can_lead_to_unexpect_result === CONT TestNormalize/yes_transformed_to_boolean === CONT TestNormalize/Multi-lines_ai_with_consecutive_empty_lines_strips_empty_element === CONT TestNormalize/ai_with_spaces_inside === CONT TestNormalize/Multi-lines_as_with_leading_or_trailing_empty_lines_after_[]_are_ignored === CONT TestNormalize/Multi-lines_as_with_empty_lines_strips_empty_elements === CONT TestNormalize/Multi-lines_as_with_leading_and_trailing_brackets === CONT TestNormalize/string_with_two_backslashes_don’t_escape_quotes === CONT TestNormalize/Multi-lines_ai_with_all_unquoted_','_will_split === CONT TestNormalize/ai_with_leading_and_ending_spaces_and__[] === CONT TestNormalize/Multi-lines_as_with_all_unquoted_','_will_split === CONT TestNormalize/as_with_empty_quoted_can_lead_to_unexpect_result === CONT TestNormalize/as_without_ending_] === CONT TestNormalize/simple_unquoted_string === CONT TestNormalize/ai_empty_elements_separated_with_commas_are_kept === CONT TestNormalize/Multi-lines_as_with_explicit_empty_element === CONT TestApplyPolicy === CONT TestNormalize/n_transformed_to_boolean === CONT TestNormalize/as_wrongly_quoted_will_consider_comma_as_part_of_the_string === CONT TestNormalize/non_supported_is_reported_as_is === CONT TestNormalize/empty_quoted_string === CONT TestNormalize/unmanaged_types_are_returned_as_is === CONT TestNormalize/ai_without_leading_[ === CONT TestNormalize/Multi-lines_as_with_leading_or_trailing_empty_lines_before_[]_are_ignored === CONT TestNormalize/Multi-lines_as_quoted === RUN TestApplyPolicy/update_user_disabled_key_with_value === PAUSE TestApplyPolicy/update_user_disabled_key_with_value === RUN TestApplyPolicy/no_surrounding_brackets_unquoted_multiple_as === PAUSE TestApplyPolicy/no_surrounding_brackets_unquoted_multiple_as === RUN TestApplyPolicy/invalid_as_is_too_robust_to_produce_defaulting_values === PAUSE TestApplyPolicy/invalid_as_is_too_robust_to_produce_defaulting_values === RUN TestApplyPolicy/error_on_invalid_ai === PAUSE TestApplyPolicy/error_on_invalid_ai === RUN TestApplyPolicy/update_existing_correct_profile_with_trailing_spaces_are_removed === PAUSE TestApplyPolicy/update_existing_correct_profile_with_trailing_spaces_are_removed === RUN TestApplyPolicy/update_existing_profile_eliminates_adsys_DB_repetitions === PAUSE TestApplyPolicy/update_existing_profile_eliminates_adsys_DB_repetitions === RUN TestApplyPolicy/user_updates_with_different_value === PAUSE TestApplyPolicy/user_updates_with_different_value === RUN TestApplyPolicy/multiple_sections === PAUSE TestApplyPolicy/multiple_sections === RUN TestApplyPolicy/normalized_canonical_form_for_each_supported_key === PAUSE TestApplyPolicy/normalized_canonical_form_for_each_supported_key === RUN TestApplyPolicy/unquoted_string === PAUSE TestApplyPolicy/unquoted_string === RUN TestApplyPolicy/no_surrounding_brackets_ai === PAUSE TestApplyPolicy/no_surrounding_brackets_ai === RUN TestApplyPolicy/no_surrounding_brackets_unquoted_as === PAUSE TestApplyPolicy/no_surrounding_brackets_unquoted_as === RUN TestApplyPolicy/no_surrounding_brackets_quoted_multiple_as === PAUSE TestApplyPolicy/no_surrounding_brackets_quoted_multiple_as === RUN TestApplyPolicy/multi-lines_ai === PAUSE TestApplyPolicy/multi-lines_ai === RUN TestApplyPolicy/update_existing_profile_without_needed_db_append_them === PAUSE TestApplyPolicy/update_existing_profile_without_needed_db_append_them === RUN TestApplyPolicy/machine_updates_with_different_value === PAUSE TestApplyPolicy/machine_updates_with_different_value === RUN TestApplyPolicy/multiple_sections_with_disabled_keys === PAUSE TestApplyPolicy/multiple_sections_with_disabled_keys === RUN TestApplyPolicy/multi-lines_as === PAUSE TestApplyPolicy/multi-lines_as === RUN TestApplyPolicy/multi-lines_ai_mixed_with_comma === PAUSE TestApplyPolicy/multi-lines_ai_mixed_with_comma === RUN TestApplyPolicy/error_on_invalid_value_for_unnormalized_type === PAUSE TestApplyPolicy/error_on_invalid_value_for_unnormalized_type === RUN TestApplyPolicy/error_on_empty_meta === PAUSE TestApplyPolicy/error_on_empty_meta === RUN TestApplyPolicy/no_policy_still_generates_a_valid_db === PAUSE TestApplyPolicy/no_policy_still_generates_a_valid_db === RUN TestApplyPolicy/update_existing_profile_without_needed_db,_trailine_lines_are_removed === PAUSE TestApplyPolicy/update_existing_profile_without_needed_db,_trailine_lines_are_removed === RUN TestApplyPolicy/user_updates_existing_value === PAUSE TestApplyPolicy/user_updates_existing_value === RUN TestApplyPolicy/machine_updates_existing_value === PAUSE TestApplyPolicy/machine_updates_existing_value === RUN TestApplyPolicy/missing_machine_compiled_db_for_user === PAUSE TestApplyPolicy/missing_machine_compiled_db_for_user === RUN TestApplyPolicy/do_not_interfere_with_other_user_profile === PAUSE TestApplyPolicy/do_not_interfere_with_other_user_profile === RUN TestApplyPolicy/error_on_invalid_type === PAUSE TestApplyPolicy/error_on_invalid_type === RUN TestApplyPolicy/mixing_sections_and_keys_still_groups_sections === PAUSE TestApplyPolicy/mixing_sections_and_keys_still_groups_sections === RUN TestApplyPolicy/quoted_b === PAUSE TestApplyPolicy/quoted_b === RUN TestApplyPolicy/no_surrounding_brackets_multiple_ai === PAUSE TestApplyPolicy/no_surrounding_brackets_multiple_ai === RUN TestApplyPolicy/update_existing_profile_with_wrong_order_appends_them_in_correct_order === PAUSE TestApplyPolicy/update_existing_profile_with_wrong_order_appends_them_in_correct_order === RUN TestApplyPolicy/new_user === PAUSE TestApplyPolicy/new_user === RUN TestApplyPolicy/first_boot === PAUSE TestApplyPolicy/first_boot === RUN TestApplyPolicy/update_machine_disabled_key_with_value === PAUSE TestApplyPolicy/update_machine_disabled_key_with_value === RUN TestApplyPolicy/do_not_update_other_files_from_db === PAUSE TestApplyPolicy/do_not_update_other_files_from_db === RUN TestApplyPolicy/update_existing_profile_with_partial_db_append_them_without_repetition === PAUSE TestApplyPolicy/update_existing_profile_with_partial_db_append_them_without_repetition === RUN TestApplyPolicy/user_updates_key_is_now_disabled === PAUSE TestApplyPolicy/user_updates_key_is_now_disabled === RUN TestApplyPolicy/machine_updates_key_is_now_disabled === PAUSE TestApplyPolicy/machine_updates_key_is_now_disabled === RUN TestApplyPolicy/multiple_keys_same_category === PAUSE TestApplyPolicy/multiple_keys_same_category === RUN TestApplyPolicy/missing_machine_compiled_db_for_machine === PAUSE TestApplyPolicy/missing_machine_compiled_db_for_machine === RUN TestApplyPolicy/missing_user_compiled_db_for_user === PAUSE TestApplyPolicy/missing_user_compiled_db_for_user === RUN TestApplyPolicy/no_surrounding_brackets_quoted_as === PAUSE TestApplyPolicy/no_surrounding_brackets_quoted_as === RUN TestApplyPolicy/multi-lines_as_mixed_with_comma === PAUSE TestApplyPolicy/multi-lines_as_mixed_with_comma === RUN TestApplyPolicy/no_machine_db_will_fail === PAUSE TestApplyPolicy/no_machine_db_will_fail === RUN TestApplyPolicy/update_existing_correct_profile_stays_unchanged === PAUSE TestApplyPolicy/update_existing_correct_profile_stays_unchanged === RUN TestApplyPolicy/no_update_when_no_change === PAUSE TestApplyPolicy/no_update_when_no_change === RUN TestApplyPolicy/quoted_i === PAUSE TestApplyPolicy/quoted_i === CONT TestNormalize/Multi-lines_as_with_consecutive_empty_lines_strip_empty_elements === CONT TestNormalize/weird_case_false === CONT TestNormalize/on_transformed_to_boolean === CONT TestNormalize/y_transformed_to_boolean === CONT TestNormalize/string_with_multiple_backslashes_escaped_quotes === CONT TestNormalize/Multi-lines_ai === CONT TestNormalize/as_partially_quoted_can_lead_to_unexpect_result === CONT TestNormalize/as_with_leading_and_ending_spaces_and__[] === CONT TestNormalize/as_with_leading_and_ending_spaces_and_no_[] === CONT TestNormalize/Multi-lines_ai_with_spaces_inside === CONT TestNormalize/simple_ai === CONT TestNormalize/Multi-lines_as_and_single_line_mix,_quoted === CONT TestNormalize/as_partially_quoted_with_comma_can_lead_to_unexpected_result === CONT TestNormalize/as_empty_elements_separated_with_commas_are_kept === CONT TestNormalize/as_without_leading_[ === CONT TestNormalize/no_transformed_to_boolean === CONT TestNormalize/ai_with_leading_and_ending_spaces_and_no_[] === CONT TestNormalize/simple_quoted_as === CONT TestNormalize/Multi-lines_ai_with_leading_or_trailing_empty_lines_before_[]_are_ignored === CONT TestNormalize/one_quote === CONT TestNormalize/Multi-lines_as_with_spaces_inside === CONT TestNormalize/simple_boolean_false === CONT TestNormalize/simple_boolean_true === CONT TestNormalize/unquoted_string_with_quotes === CONT TestNormalize/Multi-lines_as_and_single_line_mix,_unquoted === CONT TestNormalize/Multi-lines_as_with_quoted_','_is_supported === CONT TestNormalize/simple_unquoted_as === CONT TestNormalize/off_transformed_to_boolean === CONT TestNormalize/quoted_string_with_quotes === CONT TestNormalize/as_simple_quoted_as_with_spaces === CONT TestNormalize/Multi-lines_ai_with_leading_or_trailing_empty_lines_are_ignored === CONT TestNormalize/Multi-lines_ai_with_leading_and_trailing_brackets === CONT TestNormalize/simple_ai_with_no_spaces === CONT TestNormalize/with_spaces === CONT TestNormalize/one_escaped_quote === CONT TestNormalize/as_partially_quoted_unbalanced_start_can_lead_to_unexpect_result === CONT TestNormalize/Multi-lines_ai_with_leading_or_trailing_empty_lines_after_[]_are_ignored === CONT TestNormalize/weird_case_true === CONT TestNormalize/empty_unquoted_string === CONT TestNormalize/ai_without_ending_] === CONT TestNormalize/Multi-lines_ai_with_empty_lines_strips_empty_element === CONT TestNormalize/as_with_spaces_inside === CONT TestApplyPolicy/update_user_disabled_key_with_value === CONT TestNormalize/Multi-lines_as_unquoted === CONT TestApplyPolicy/no_update_when_no_change === CONT TestApplyPolicy/update_existing_correct_profile_stays_unchanged === CONT TestApplyPolicy/no_machine_db_will_fail === CONT TestApplyPolicy/multi-lines_as_mixed_with_comma === CONT TestNormalize/simple_as_with_no_spaces === CONT TestApplyPolicy/quoted_i === CONT TestApplyPolicy/no_surrounding_brackets_quoted_as === CONT TestNormalize/simple_quoted_string --- PASS: TestNormalize (0.00s) --- PASS: TestNormalize/string_with_escaped_quotes (0.00s) --- PASS: TestNormalize/Multi-lines_as_with_leading_or_trailing_empty_lines_are_ignored (0.00s) --- PASS: TestNormalize/as_with_weird_composition_inception_will_be_quoted (0.00s) --- PASS: TestNormalize/as_partially_quoted_unbalanced_end_can_lead_to_unexpect_result (0.00s) --- PASS: TestNormalize/yes_transformed_to_boolean (0.00s) --- PASS: TestNormalize/Multi-lines_ai_with_consecutive_empty_lines_strips_empty_element (0.00s) --- PASS: TestNormalize/ai_with_spaces_inside (0.00s) --- PASS: TestNormalize/Multi-lines_as_with_leading_or_trailing_empty_lines_after_[]_are_ignored (0.00s) --- PASS: TestNormalize/Multi-lines_as_with_empty_lines_strips_empty_elements (0.00s) --- PASS: TestNormalize/Multi-lines_as_with_leading_and_trailing_brackets (0.00s) --- PASS: TestNormalize/string_with_two_backslashes_don’t_escape_quotes (0.00s) --- PASS: TestNormalize/Multi-lines_ai_with_all_unquoted_','_will_split (0.00s) --- PASS: TestNormalize/ai_with_leading_and_ending_spaces_and__[] (0.00s) --- PASS: TestNormalize/Multi-lines_as_with_all_unquoted_','_will_split (0.00s) --- PASS: TestNormalize/as_with_empty_quoted_can_lead_to_unexpect_result (0.00s) --- PASS: TestNormalize/as_without_ending_] (0.00s) --- PASS: TestNormalize/simple_unquoted_string (0.00s) --- PASS: TestNormalize/ai_empty_elements_separated_with_commas_are_kept (0.00s) --- PASS: TestNormalize/Multi-lines_as_with_explicit_empty_element (0.00s) --- PASS: TestNormalize/n_transformed_to_boolean (0.00s) --- PASS: TestNormalize/non_supported_is_reported_as_is (0.00s) --- PASS: TestNormalize/as_wrongly_quoted_will_consider_comma_as_part_of_the_string (0.00s) --- PASS: TestNormalize/unmanaged_types_are_returned_as_is (0.00s) --- PASS: TestNormalize/empty_quoted_string (0.00s) --- PASS: TestNormalize/ai_without_leading_[ (0.00s) --- PASS: TestNormalize/Multi-lines_as_with_leading_or_trailing_empty_lines_before_[]_are_ignored (0.00s) --- PASS: TestNormalize/Multi-lines_as_quoted (0.00s) --- PASS: TestNormalize/Multi-lines_as_with_consecutive_empty_lines_strip_empty_elements (0.00s) --- PASS: TestNormalize/weird_case_false (0.00s) --- PASS: TestNormalize/on_transformed_to_boolean (0.00s) --- PASS: TestNormalize/y_transformed_to_boolean (0.00s) --- PASS: TestNormalize/string_with_multiple_backslashes_escaped_quotes (0.00s) --- PASS: TestNormalize/Multi-lines_ai (0.00s) --- PASS: TestNormalize/as_partially_quoted_can_lead_to_unexpect_result (0.00s) --- PASS: TestNormalize/as_with_leading_and_ending_spaces_and__[] (0.00s) --- PASS: TestNormalize/as_with_leading_and_ending_spaces_and_no_[] (0.00s) --- PASS: TestNormalize/Multi-lines_ai_with_spaces_inside (0.00s) --- PASS: TestNormalize/simple_ai (0.00s) --- PASS: TestNormalize/Multi-lines_as_and_single_line_mix,_quoted (0.00s) --- PASS: TestNormalize/as_partially_quoted_with_comma_can_lead_to_unexpected_result (0.00s) --- PASS: TestNormalize/as_empty_elements_separated_with_commas_are_kept (0.00s) --- PASS: TestNormalize/as_without_leading_[ (0.00s) --- PASS: TestNormalize/no_transformed_to_boolean (0.00s) --- PASS: TestNormalize/ai_with_leading_and_ending_spaces_and_no_[] (0.00s) --- PASS: TestNormalize/simple_quoted_as (0.00s) --- PASS: TestNormalize/Multi-lines_ai_with_leading_or_trailing_empty_lines_before_[]_are_ignored (0.00s) --- PASS: TestNormalize/one_quote (0.00s) --- PASS: TestNormalize/Multi-lines_as_with_spaces_inside (0.00s) --- PASS: TestNormalize/simple_boolean_false (0.00s) --- PASS: TestNormalize/simple_boolean_true (0.00s) --- PASS: TestNormalize/unquoted_string_with_quotes (0.00s) --- PASS: TestNormalize/Multi-lines_as_and_single_line_mix,_unquoted (0.00s) --- PASS: TestNormalize/Multi-lines_as_with_quoted_','_is_supported (0.00s) --- PASS: TestNormalize/simple_unquoted_as (0.00s) --- PASS: TestNormalize/off_transformed_to_boolean (0.00s) --- PASS: TestNormalize/quoted_string_with_quotes (0.00s) --- PASS: TestNormalize/as_simple_quoted_as_with_spaces (0.00s) --- PASS: TestNormalize/Multi-lines_ai_with_leading_or_trailing_empty_lines_are_ignored (0.00s) --- PASS: TestNormalize/Multi-lines_ai_with_leading_and_trailing_brackets (0.00s) --- PASS: TestNormalize/simple_ai_with_no_spaces (0.00s) --- PASS: TestNormalize/with_spaces (0.00s) --- PASS: TestNormalize/one_escaped_quote (0.00s) --- PASS: TestNormalize/as_partially_quoted_unbalanced_start_can_lead_to_unexpect_result (0.00s) --- PASS: TestNormalize/Multi-lines_ai_with_leading_or_trailing_empty_lines_after_[]_are_ignored (0.00s) --- PASS: TestNormalize/weird_case_true (0.00s) --- PASS: TestNormalize/empty_unquoted_string (0.00s) --- PASS: TestNormalize/ai_without_ending_] (0.00s) --- PASS: TestNormalize/Multi-lines_ai_with_empty_lines_strips_empty_element (0.00s) --- PASS: TestNormalize/as_with_spaces_inside (0.00s) --- PASS: TestNormalize/Multi-lines_as_unquoted (0.00s) --- PASS: TestNormalize/simple_as_with_no_spaces (0.00s) --- PASS: TestNormalize/simple_quoted_string (0.00s) === CONT TestApplyPolicy/missing_user_compiled_db_for_user === CONT TestApplyPolicy/missing_machine_compiled_db_for_machine === CONT TestApplyPolicy/multiple_keys_same_category === CONT TestApplyPolicy/machine_updates_key_is_now_disabled === CONT TestApplyPolicy/user_updates_key_is_now_disabled === CONT TestApplyPolicy/update_existing_profile_with_partial_db_append_them_without_repetition === CONT TestApplyPolicy/do_not_update_other_files_from_db === CONT TestApplyPolicy/update_machine_disabled_key_with_value === CONT TestApplyPolicy/first_boot === CONT TestApplyPolicy/new_user === CONT TestApplyPolicy/update_existing_profile_with_wrong_order_appends_them_in_correct_order === CONT TestApplyPolicy/no_surrounding_brackets_multiple_ai === CONT TestApplyPolicy/quoted_b === CONT TestApplyPolicy/error_on_invalid_type === CONT TestApplyPolicy/mixing_sections_and_keys_still_groups_sections === CONT TestApplyPolicy/do_not_interfere_with_other_user_profile === CONT TestApplyPolicy/missing_machine_compiled_db_for_user === CONT TestApplyPolicy/machine_updates_existing_value === CONT TestApplyPolicy/user_updates_existing_value === CONT TestApplyPolicy/update_existing_profile_without_needed_db,_trailine_lines_are_removed === CONT TestApplyPolicy/no_policy_still_generates_a_valid_db === CONT TestApplyPolicy/error_on_empty_meta === CONT TestApplyPolicy/error_on_invalid_value_for_unnormalized_type === CONT TestApplyPolicy/multi-lines_ai_mixed_with_comma === CONT TestApplyPolicy/multi-lines_as === CONT TestApplyPolicy/multiple_sections_with_disabled_keys === CONT TestApplyPolicy/machine_updates_with_different_value === CONT TestApplyPolicy/update_existing_profile_without_needed_db_append_them === CONT TestApplyPolicy/multi-lines_ai === CONT TestApplyPolicy/no_surrounding_brackets_quoted_multiple_as === CONT TestApplyPolicy/no_surrounding_brackets_unquoted_as === CONT TestApplyPolicy/no_surrounding_brackets_ai === CONT TestApplyPolicy/unquoted_string === CONT TestApplyPolicy/normalized_canonical_form_for_each_supported_key === CONT TestApplyPolicy/multiple_sections === CONT TestApplyPolicy/user_updates_with_different_value === CONT TestApplyPolicy/update_existing_profile_eliminates_adsys_DB_repetitions === CONT TestApplyPolicy/update_existing_correct_profile_with_trailing_spaces_are_removed === CONT TestApplyPolicy/error_on_invalid_ai === CONT TestApplyPolicy/invalid_as_is_too_robust_to_produce_defaulting_values === CONT TestApplyPolicy/no_surrounding_brackets_unquoted_multiple_as --- PASS: TestApplyPolicy (0.00s) --- PASS: TestApplyPolicy/update_user_disabled_key_with_value (0.00s) --- PASS: TestApplyPolicy/no_update_when_no_change (0.00s) --- PASS: TestApplyPolicy/update_existing_correct_profile_stays_unchanged (0.00s) --- PASS: TestApplyPolicy/no_machine_db_will_fail (0.00s) --- PASS: TestApplyPolicy/multi-lines_as_mixed_with_comma (0.01s) --- PASS: TestApplyPolicy/missing_user_compiled_db_for_user (0.00s) --- PASS: TestApplyPolicy/no_surrounding_brackets_quoted_as (0.01s) --- PASS: TestApplyPolicy/missing_machine_compiled_db_for_machine (0.00s) --- PASS: TestApplyPolicy/multiple_keys_same_category (0.00s) --- PASS: TestApplyPolicy/update_existing_profile_with_partial_db_append_them_without_repetition (0.00s) --- PASS: TestApplyPolicy/user_updates_key_is_now_disabled (0.00s) --- PASS: TestApplyPolicy/machine_updates_key_is_now_disabled (0.00s) --- PASS: TestApplyPolicy/first_boot (0.00s) --- PASS: TestApplyPolicy/update_machine_disabled_key_with_value (0.00s) --- PASS: TestApplyPolicy/do_not_update_other_files_from_db (0.00s) --- PASS: TestApplyPolicy/new_user (0.00s) --- PASS: TestApplyPolicy/update_existing_profile_with_wrong_order_appends_them_in_correct_order (0.00s) --- PASS: TestApplyPolicy/no_surrounding_brackets_multiple_ai (0.00s) --- PASS: TestApplyPolicy/quoted_i (0.02s) --- PASS: TestApplyPolicy/error_on_invalid_type (0.00s) --- PASS: TestApplyPolicy/quoted_b (0.01s) --- PASS: TestApplyPolicy/machine_updates_existing_value (0.00s) --- PASS: TestApplyPolicy/mixing_sections_and_keys_still_groups_sections (0.00s) --- PASS: TestApplyPolicy/update_existing_profile_without_needed_db,_trailine_lines_are_removed (0.00s) --- PASS: TestApplyPolicy/missing_machine_compiled_db_for_user (0.01s) --- PASS: TestApplyPolicy/no_policy_still_generates_a_valid_db (0.00s) --- PASS: TestApplyPolicy/user_updates_existing_value (0.01s) --- PASS: TestApplyPolicy/do_not_interfere_with_other_user_profile (0.01s) --- PASS: TestApplyPolicy/error_on_invalid_value_for_unnormalized_type (0.00s) --- PASS: TestApplyPolicy/error_on_empty_meta (0.00s) --- PASS: TestApplyPolicy/multiple_sections_with_disabled_keys (0.00s) --- PASS: TestApplyPolicy/machine_updates_with_different_value (0.00s) --- PASS: TestApplyPolicy/multi-lines_ai_mixed_with_comma (0.00s) --- PASS: TestApplyPolicy/multi-lines_as (0.00s) --- PASS: TestApplyPolicy/update_existing_profile_without_needed_db_append_them (0.01s) --- PASS: TestApplyPolicy/multi-lines_ai (0.00s) --- PASS: TestApplyPolicy/no_surrounding_brackets_unquoted_as (0.00s) --- PASS: TestApplyPolicy/no_surrounding_brackets_ai (0.00s) --- PASS: TestApplyPolicy/no_surrounding_brackets_quoted_multiple_as (0.00s) --- PASS: TestApplyPolicy/multiple_sections (0.00s) --- PASS: TestApplyPolicy/normalized_canonical_form_for_each_supported_key (0.00s) --- PASS: TestApplyPolicy/user_updates_with_different_value (0.00s) --- PASS: TestApplyPolicy/update_existing_profile_eliminates_adsys_DB_repetitions (0.00s) --- PASS: TestApplyPolicy/update_existing_correct_profile_with_trailing_spaces_are_removed (0.00s) --- PASS: TestApplyPolicy/unquoted_string (0.01s) --- PASS: TestApplyPolicy/error_on_invalid_ai (0.00s) --- PASS: TestApplyPolicy/no_surrounding_brackets_unquoted_multiple_as (0.00s) --- PASS: TestApplyPolicy/invalid_as_is_too_robust_to_produce_defaulting_values (0.00s) PASS ok github.com/ubuntu/adsys/internal/policies/dconf 0.074s === RUN TestGetUniqueRules === PAUSE TestGetUniqueRules === RUN TestCacheGPOList --- PASS: TestCacheGPOList (0.00s) === RUN TestFormatGPO === PAUSE TestFormatGPO === CONT TestGetUniqueRules === RUN TestGetUniqueRules/Two_policies,_with_reversed_overrides === PAUSE TestGetUniqueRules/Two_policies,_with_reversed_overrides === RUN TestGetUniqueRules/Two_policies,_no_overrides,_reversed === PAUSE TestGetUniqueRules/Two_policies,_no_overrides,_reversed === RUN TestGetUniqueRules/Disabled_value_overrides_non_disabled_one === PAUSE TestGetUniqueRules/Disabled_value_overrides_non_disabled_one === RUN TestGetUniqueRules/Two_policies,_with_overrides === PAUSE TestGetUniqueRules/Two_policies,_with_overrides === RUN TestGetUniqueRules/Order_key_ascii === PAUSE TestGetUniqueRules/Order_key_ascii === RUN TestGetUniqueRules/Multiple_domains,_same_GPOs === PAUSE TestGetUniqueRules/Multiple_domains,_same_GPOs === RUN TestGetUniqueRules/Multiple_domains,_different_GPOs === PAUSE TestGetUniqueRules/Multiple_domains,_different_GPOs === RUN TestGetUniqueRules/Same_key_in_different_domains_are_kept_separated === PAUSE TestGetUniqueRules/Same_key_in_different_domains_are_kept_separated === RUN TestGetUniqueRules/Two_policies,_no_overrides === PAUSE TestGetUniqueRules/Two_policies,_no_overrides === RUN TestGetUniqueRules/Disabled_value_is_overridden === PAUSE TestGetUniqueRules/Disabled_value_is_overridden === RUN TestGetUniqueRules/More_policies,_with_multiple_overrides === PAUSE TestGetUniqueRules/More_policies,_with_multiple_overrides === RUN TestGetUniqueRules/One_GPO === PAUSE TestGetUniqueRules/One_GPO === CONT TestGetUniqueRules/Two_policies,_with_reversed_overrides === CONT TestFormatGPO === RUN TestFormatGPO/GPO_with_rules_and_overrides,_no_rules_processed === PAUSE TestFormatGPO/GPO_with_rules_and_overrides,_no_rules_processed === RUN TestFormatGPO/GPO_with_rules,_appending_to_existing_treated_key === PAUSE TestFormatGPO/GPO_with_rules,_appending_to_existing_treated_key === RUN TestFormatGPO/GPO_with_rules,_override_hidden === PAUSE TestFormatGPO/GPO_with_rules,_override_hidden === RUN TestFormatGPO/GPO_with_rules,_override_displayed === PAUSE TestFormatGPO/GPO_with_rules,_override_displayed === RUN TestFormatGPO/GPO_with_rules,_override_disabled_key === PAUSE TestFormatGPO/GPO_with_rules,_override_disabled_key === RUN TestFormatGPO/GPO_summary === PAUSE TestFormatGPO/GPO_summary === RUN TestFormatGPO/GPO_with_rules === PAUSE TestFormatGPO/GPO_with_rules === CONT TestFormatGPO/GPO_with_rules_and_overrides,_no_rules_processed === CONT TestGetUniqueRules/One_GPO === CONT TestGetUniqueRules/More_policies,_with_multiple_overrides === CONT TestGetUniqueRules/Disabled_value_is_overridden === CONT TestGetUniqueRules/Two_policies,_no_overrides === CONT TestGetUniqueRules/Same_key_in_different_domains_are_kept_separated === CONT TestGetUniqueRules/Multiple_domains,_different_GPOs === CONT TestGetUniqueRules/Multiple_domains,_same_GPOs === CONT TestGetUniqueRules/Order_key_ascii === CONT TestGetUniqueRules/Two_policies,_with_overrides === CONT TestGetUniqueRules/Disabled_value_overrides_non_disabled_one === CONT TestGetUniqueRules/Two_policies,_no_overrides,_reversed --- PASS: TestGetUniqueRules (0.00s) --- PASS: TestGetUniqueRules/Two_policies,_with_reversed_overrides (0.00s) --- PASS: TestGetUniqueRules/One_GPO (0.00s) --- PASS: TestGetUniqueRules/More_policies,_with_multiple_overrides (0.00s) --- PASS: TestGetUniqueRules/Disabled_value_is_overridden (0.00s) --- PASS: TestGetUniqueRules/Two_policies,_no_overrides (0.00s) --- PASS: TestGetUniqueRules/Same_key_in_different_domains_are_kept_separated (0.00s) --- PASS: TestGetUniqueRules/Multiple_domains,_different_GPOs (0.00s) --- PASS: TestGetUniqueRules/Multiple_domains,_same_GPOs (0.00s) --- PASS: TestGetUniqueRules/Order_key_ascii (0.00s) --- PASS: TestGetUniqueRules/Two_policies,_with_overrides (0.00s) --- PASS: TestGetUniqueRules/Disabled_value_overrides_non_disabled_one (0.00s) --- PASS: TestGetUniqueRules/Two_policies,_no_overrides,_reversed (0.00s) === CONT TestFormatGPO/GPO_with_rules === CONT TestFormatGPO/GPO_summary === CONT TestFormatGPO/GPO_with_rules,_override_disabled_key === CONT TestFormatGPO/GPO_with_rules,_override_displayed === CONT TestFormatGPO/GPO_with_rules,_override_hidden === CONT TestFormatGPO/GPO_with_rules,_appending_to_existing_treated_key --- PASS: TestFormatGPO (0.00s) --- PASS: TestFormatGPO/GPO_with_rules_and_overrides,_no_rules_processed (0.00s) --- PASS: TestFormatGPO/GPO_with_rules (0.00s) --- PASS: TestFormatGPO/GPO_summary (0.00s) --- PASS: TestFormatGPO/GPO_with_rules,_override_disabled_key (0.00s) --- PASS: TestFormatGPO/GPO_with_rules,_override_displayed (0.00s) --- PASS: TestFormatGPO/GPO_with_rules,_override_hidden (0.00s) --- PASS: TestFormatGPO/GPO_with_rules,_appending_to_existing_treated_key (0.00s) PASS ok github.com/ubuntu/adsys/internal/policies/entry 0.004s === RUN TestApplyPolicy === PAUSE TestApplyPolicy === CONT TestApplyPolicy === RUN TestApplyPolicy/dconf_policy === PAUSE TestApplyPolicy/dconf_policy === CONT TestApplyPolicy/dconf_policy --- PASS: TestApplyPolicy (0.00s) --- PASS: TestApplyPolicy/dconf_policy (0.00s) PASS ok github.com/ubuntu/adsys/internal/policies/gdm 0.004s === RUN TestExclusiveLockExec --- PASS: TestExclusiveLockExec (0.01s) === RUN TestExclusiveLockSmb --- PASS: TestExclusiveLockSmb (0.01s) === RUN TestMultipleExecLocksOnlyReleaseOnLast --- PASS: TestMultipleExecLocksOnlyReleaseOnLast (0.01s) === RUN TestMultipleSmbLocksOnlyReleaseOnLast --- PASS: TestMultipleSmbLocksOnlyReleaseOnLast (0.01s) PASS ok github.com/ubuntu/adsys/internal/smbsafe 0.056s === RUN TestAddStdoutForwarder --- PASS: TestAddStdoutForwarder (0.00s) === RUN TestAddStderrForwarder --- PASS: TestAddStderrForwarder (0.00s) === RUN TestAddStdoutForwarderEnsureStderrNoPolluted --- PASS: TestAddStdoutForwarderEnsureStderrNoPolluted (0.00s) === RUN TestAddForwarderAndDisconnect --- PASS: TestAddForwarderAndDisconnect (0.00s) === RUN TestAddForwardersGraduallyAndDisconnect --- PASS: TestAddForwardersGraduallyAndDisconnect (0.01s) === RUN TestAddForwarderDifferentWriterStdoutStderr --- PASS: TestAddForwarderDifferentWriterStdoutStderr (0.00s) === RUN TestAddForwarderSameWriterStdoutStderr --- PASS: TestAddForwarderSameWriterStdoutStderr (0.00s) === RUN TestAddStdoutForwarderWithBlockedStdout time="2021-06-21T12:47:11Z" level=warning msg="Failed to write to regular output: write |1: file already closed" time="2021-06-21T12:47:11Z" level=warning msg="Failed to write to regular output: write |1: file already closed" time="2021-06-21T12:47:11Z" level=warning msg="Failed to write to regular output: write |1: file already closed" --- PASS: TestAddStdoutForwarderWithBlockedStdout (0.01s) === RUN TestAddStderrForwarderWithBlockedStderr time="2021-06-21T12:47:11Z" level=warning msg="Failed to write to regular output: write |1: file already closed" time="2021-06-21T12:47:11Z" level=warning msg="Failed to write to regular output: write |1: file already closed" time="2021-06-21T12:47:11Z" level=warning msg="Failed to write to regular output: write |1: file already closed" --- PASS: TestAddStderrForwarderWithBlockedStderr (0.01s) === RUN TestAddStdoutForwarderOneWithFailingForwarder time="2021-06-21T12:47:11Z" level=warning msg="Failed to forward log: Error from failedWriter" time="2021-06-21T12:47:11Z" level=warning msg="Failed to forward log: Error from failedWriter" time="2021-06-21T12:47:11Z" level=warning msg="Failed to forward log: Error from failedWriter" --- PASS: TestAddStdoutForwarderOneWithFailingForwarder (0.01s) PASS ok github.com/ubuntu/adsys/internal/stdforward 0.052s ? github.com/ubuntu/adsys/internal/testutils [no test files] ? github.com/ubuntu/adsys/policies [no test files] create-stamp debian/debhelper-build-stamp fakeroot debian/rules binary-arch dh binary-arch --buildsystem=golang --with=golang,apport dh_testroot -a -O--buildsystem=golang dh_prep -a -O--buildsystem=golang debian/rules override_dh_auto_install make[1]: Entering directory '/<>' dh_auto_install -- --no-source cd obj-s390x-linux-gnu && mkdir -p /<>/debian/adsys/usr cd obj-s390x-linux-gnu && cp -r bin /<>/debian/adsys/usr # install in /sbin mv debian/adsys/usr/bin/ debian/adsys/sbin rmdir debian/adsys/usr/ # create adsysctl command ln -s adsysd debian/adsys/sbin/adsysctl # Workaround file system race making debian/adsys/lib/ a file while it’s a directory mkdir debian/adsys/lib # run go generate to install assets, but don’t regenerate them GENERATE_ONLY_INSTALL_TO_DESTDIR=/<>/debian/adsys go generate -tags tools -ldflags=-X=github.com/ubuntu/adsys/internal/consts.Version=0.6 --mod=vendor ./... # remove admxgen helper from installation rm debian/adsys/sbin/admxgen make[1]: Leaving directory '/<>' dh_install -a -O--buildsystem=golang dh_installdocs -a -O--buildsystem=golang dh_installchangelogs -a -O--buildsystem=golang dh_installman -a -O--buildsystem=golang dh_installsystemd -a -O--buildsystem=golang dh_installsystemduser -a -O--buildsystem=golang dh_apport -a -O--buildsystem=golang dh_perl -a -O--buildsystem=golang dh_link -a -O--buildsystem=golang dh_strip_nondeterminism -a -O--buildsystem=golang dh_compress -a -O--buildsystem=golang dh_fixperms -a -O--buildsystem=golang dh_missing -a -O--buildsystem=golang dh_dwz -a -a -O--buildsystem=golang dwz: debian/adsys/sbin/adsysd: .debug_info section not present dwz: Too few files for multifile optimization dh_dwz: warning: No dwz multifile created, but not explicitly requested either so ignoring it. dh_dwz: warning: Common issues include no debug information at all (missing -g) and dh_dwz: warning: compressed debug information (#931891). dh_strip -a -a -O--buildsystem=golang be7135eac95f5d8523f1d6a57caae278eec9e08d e57c76ca2306153e3b87dee8ae67decec5f5a5ec dh_makeshlibs -a -a -O--buildsystem=golang dh_shlibdeps -a -a -O--buildsystem=golang dh_installdeb -a -O--buildsystem=golang dh_golang -a -O--buildsystem=golang dh_gencontrol -a -O--buildsystem=golang dh_md5sums -a -O--buildsystem=golang dh_builddeb -a -O--buildsystem=golang INFO: pkgstriptranslations version 147 INFO: pkgstriptranslations version 147 pkgstriptranslations: processing adsys (in debian/adsys); do_strip: , oemstrip: pkgstriptranslations: processing adsys-dbgsym (in debian/.debhelper/adsys/dbgsym-root); do_strip: , oemstrip: pkgmaintainermangler: Not overriding Maintainer for domain lists.ubuntu.com pkgmaintainermangler: Not overriding Maintainer for domain lists.ubuntu.com pkgstripfiles: processing control file: debian/adsys/DEBIAN/control, package adsys, directory debian/adsys pkgstripfiles: Running PNG optimization (using 4 cpus) for package adsys ... pkgstripfiles: No PNG files. dpkg-deb: building package 'adsys' in '../adsys_0.6_s390x.deb'. pkgstripfiles: processing control file: debian/.debhelper/adsys/dbgsym-root/DEBIAN/control, package adsys-dbgsym, directory debian/.debhelper/adsys/dbgsym-root dpkg-deb: building package 'adsys-dbgsym' in 'debian/.debhelper/scratch-space/build-adsys/adsys-dbgsym_0.6_s390x.deb'. Renaming adsys-dbgsym_0.6_s390x.deb to adsys-dbgsym_0.6_s390x.ddeb dpkg-genbuildinfo --build=any dpkg-genchanges --build=any -mLaunchpad Build Daemon >../adsys_0.6_s390x.changes dpkg-genchanges: info: binary-only arch-specific upload (source code and arch-indep packages not included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) -------------------------------------------------------------------------------- Build finished at 2021-06-21T12:47:47Z Finished -------- I: Built successfully +------------------------------------------------------------------------------+ | Post Build Chroot | +------------------------------------------------------------------------------+ +------------------------------------------------------------------------------+ | Changes | +------------------------------------------------------------------------------+ adsys_0.6_s390x.changes: ------------------------ Format: 1.8 Date: Mon, 21 Jun 2021 14:16:16 +0200 Source: adsys Binary: adsys Built-For-Profiles: noudeb Architecture: s390x Version: 0.6 Distribution: impish-proposed Urgency: medium Maintainer: Launchpad Build Daemon Changed-By: Didier Roche Description: adsys - AD SYStem integration Changes: adsys (0.6) impish; urgency=medium . [ Jean-Baptiste Lallement ] [ Didier Roche ] * Add a new status command, returning current user connected, mode, last refresh time and applied configuration * Add a new doc command, which allows listing the documentation or write a specific chapter on the terminal or disk. * Add a new debus hidden (system) command, which allows dumping adsys-gpolist and (in the future) various multiple debugging tools for a specific AD setup * Advance CI completion for users, machines and other contextual strings (requesting the service for available valid items, based on context). * Hook up CI to update online documentation (on github) and local offline one in two ways (updating the local doc will update the online one and vice-versa) * Write the whole documentation for setting up and using adsys * Refactor configuration handling and const location * Only start machine GPO download on boot (blocking) if we have AD configured * Fix pam integration by setting correct linker property * Fallback to sssd discovery active AD server * Fix GDM dconf keys to use for screen customization * New adsysservice to properly shutdown authorizer and move service dbus handling * Integrate gosec to CI and multiple fixes * Serialize adsys-gpolist and admx/adml in binary * Misc fixes in listing Active Directory GPO, multiple error cases graceful handling and fix some Windows requirements like spec names. * Small fixes and error message reformulation * Update all dependencies to latest version and hook up Dependabot in CI * Multiple CI enhancements * Fix for admx generation, allowing pointing at keys not present in a release if filtered out * Tighten build and package depdencies. * Tests: - add more configuration for integration tests - fix protobuf namespace conflicts - multiple refactoring - ensure local dbus are properly shutdown - fix some racy tests but being more relax on times - allow coverage for python code and subprocesses - add many new tests, including integration tests - replace wharthogs.biz domain by example.com. Thanks Paul Mars Checksums-Sha1: 7c705be35f643a3c1534892e12912fff60a788a1 4009492 adsys-dbgsym_0.6_s390x.ddeb 634e4f5efac36dfb19efb60170b6a3cebf1b8c74 8573 adsys_0.6_s390x.buildinfo 9c931763f43ad0cebd9038405d47226f469ec909 4479108 adsys_0.6_s390x.deb Checksums-Sha256: d0606a5f7b715d723978471189597203d6b0238afc73a470eec0c3c1a94e8f4d 4009492 adsys-dbgsym_0.6_s390x.ddeb b67fce80117c3cbf6965ad9e16303f9bd39d2c0b082a98a669db5cc91021e8e2 8573 adsys_0.6_s390x.buildinfo f9893e4382df4bc930bb8eefdea6c78de2b622d34d18b36d456e90817af7c167 4479108 adsys_0.6_s390x.deb Files: 45188f91f57f6ed1a7834945910de8ab 4009492 debug optional adsys-dbgsym_0.6_s390x.ddeb a0787e4d27d9e12d54c2727bf9dae458 8573 admin optional adsys_0.6_s390x.buildinfo e15028e9884ca511ac792e5188d76ee2 4479108 admin optional adsys_0.6_s390x.deb +------------------------------------------------------------------------------+ | Buildinfo | +------------------------------------------------------------------------------+ Format: 1.0 Source: adsys Binary: adsys adsys-dbgsym Architecture: s390x Version: 0.6 Checksums-Md5: 45188f91f57f6ed1a7834945910de8ab 4009492 adsys-dbgsym_0.6_s390x.ddeb e15028e9884ca511ac792e5188d76ee2 4479108 adsys_0.6_s390x.deb Checksums-Sha1: 7c705be35f643a3c1534892e12912fff60a788a1 4009492 adsys-dbgsym_0.6_s390x.ddeb 9c931763f43ad0cebd9038405d47226f469ec909 4479108 adsys_0.6_s390x.deb Checksums-Sha256: d0606a5f7b715d723978471189597203d6b0238afc73a470eec0c3c1a94e8f4d 4009492 adsys-dbgsym_0.6_s390x.ddeb f9893e4382df4bc930bb8eefdea6c78de2b622d34d18b36d456e90817af7c167 4479108 adsys_0.6_s390x.deb Build-Origin: Ubuntu Build-Architecture: s390x Build-Date: Mon, 21 Jun 2021 12:47:47 +0000 Build-Path: /<> Build-Tainted-By: merged-usr-via-aliased-dirs usr-local-has-programs Installed-Build-Depends: adduser (= 3.118ubuntu5), autoconf (= 2.69-14), automake (= 1:1.16.3-2ubuntu1), autopoint (= 0.21-4ubuntu3), autotools-dev (= 20180224.1+nmu1), base-files (= 11.1ubuntu3), base-passwd (= 3.5.50), bash (= 5.1-3ubuntu1), binutils (= 2.36.50.20210618-1ubuntu1), binutils-common (= 2.36.50.20210618-1ubuntu1), binutils-s390x-linux-gnu (= 2.36.50.20210618-1ubuntu1), bsdextrautils (= 2.36.1-7ubuntu2), bsdutils (= 1:2.36.1-7ubuntu2), build-essential (= 12.9ubuntu1), bzip2 (= 1.0.8-4ubuntu3), coreutils (= 8.32-4ubuntu2), cpp (= 4:10.3.0-1ubuntu3), cpp-10 (= 10.3.0-4ubuntu1), dash (= 0.5.11+git20210120+802ebd4-1), dbus (= 1.12.20-2ubuntu1), debconf (= 1.5.77), debhelper (= 13.3.4ubuntu1), debianutils (= 4.11.2), debugedit (= 1:0.3-0ubuntu1), dh-apport (= 2.20.11-0ubuntu67), dh-autoreconf (= 20), dh-golang (= 1.51), dh-strip-nondeterminism (= 1.12.0-1), diffutils (= 1:3.7-5ubuntu1), dpkg (= 1.20.9ubuntu1), dpkg-dev (= 1.20.9ubuntu1), dwz (= 0.14-1), file (= 1:5.39-3), findutils (= 4.8.0-1ubuntu1), g++ (= 4:10.3.0-1ubuntu3), g++-10 (= 10.3.0-4ubuntu1), gcc (= 4:10.3.0-1ubuntu3), gcc-10 (= 10.3.0-4ubuntu1), gcc-10-base (= 10.3.0-4ubuntu1), gcc-11-base (= 11.1.0-3ubuntu1), gettext (= 0.21-4ubuntu3), gettext-base (= 0.21-4ubuntu3), golang-1.16-go (= 1.16.5-1ubuntu1), golang-1.16-src (= 1.16.5-1ubuntu1), golang-go (= 2:1.16~0ubuntu1), golang-src (= 2:1.16~0ubuntu1), gpg (= 2.2.20-1ubuntu3), gpgconf (= 2.2.20-1ubuntu3), grep (= 3.6-1), groff-base (= 1.22.4-6), gzip (= 1.10-4ubuntu1), hostname (= 3.23), init-system-helpers (= 1.60), intltool-debian (= 0.35.0+20060710.5), libacl1 (= 2.2.53-10ubuntu1), libapparmor1 (= 3.0.0-0ubuntu8), libarchive-zip-perl (= 1.68-1), libasan6 (= 11.1.0-3ubuntu1), libasn1-8-heimdal (= 7.7.0+dfsg-2), libassuan0 (= 2.5.4-1ubuntu1), libatomic1 (= 11.1.0-3ubuntu1), libattr1 (= 1:2.4.48-6build1), libaudit-common (= 1:3.0-2ubuntu1), libaudit1 (= 1:3.0-2ubuntu1), libavahi-client3 (= 0.8-5ubuntu3), libavahi-common-data (= 0.8-5ubuntu3), libavahi-common3 (= 0.8-5ubuntu3), libbinutils (= 2.36.50.20210618-1ubuntu1), libblkid1 (= 2.36.1-7ubuntu2), libbsd0 (= 0.11.3-1ubuntu2), libbz2-1.0 (= 1.0.8-4ubuntu3), libc-bin (= 2.33-0ubuntu8), libc-dev-bin (= 2.33-0ubuntu8), libc6 (= 2.33-0ubuntu8), libc6-dev (= 2.33-0ubuntu8), libcap-ng0 (= 0.7.9-2.2build1), libcap2 (= 1:2.44-1build1), libcc1-0 (= 11.1.0-3ubuntu1), libcom-err2 (= 1.46.2-1ubuntu2), libcrypt-dev (= 1:4.4.18-4ubuntu1), libcrypt1 (= 1:4.4.18-4ubuntu1), libctf-nobfd0 (= 2.36.50.20210618-1ubuntu1), libctf0 (= 2.36.50.20210618-1ubuntu1), libcups2 (= 2.3.3op2-3ubuntu3), libdb5.3 (= 5.3.28+dfsg1-0.8ubuntu1), libdbus-1-3 (= 1.12.20-2ubuntu1), libdbus-1-dev (= 1.12.20-2ubuntu1), libdebconfclient0 (= 0.256ubuntu3), libdebhelper-perl (= 13.3.4ubuntu1), libdpkg-perl (= 1.20.9ubuntu1), libdw1 (= 0.185-1), libelf1 (= 0.185-1), libexpat1 (= 2.3.0-1), libffi8ubuntu1 (= 3.4~20200819gead65ca871-0ubuntu5), libfile-stripnondeterminism-perl (= 1.12.0-1), libgcc-10-dev (= 10.3.0-4ubuntu1), libgcc-s1 (= 11.1.0-3ubuntu1), libgcrypt20 (= 1.8.7-5ubuntu1), libgdbm-compat4 (= 1.19-2), libgdbm6 (= 1.19-2), libglib2.0-0 (= 2.68.1-2), libgmp10 (= 2:6.2.1+dfsg-1ubuntu2), libgnutls30 (= 3.7.1-4ubuntu1), libgomp1 (= 11.1.0-3ubuntu1), libgpg-error0 (= 1.38-2build1), libgpgme11 (= 1.14.0-1ubuntu3), libgssapi-krb5-2 (= 1.18.3-5), libgssapi3-heimdal (= 7.7.0+dfsg-2), libhcrypto4-heimdal (= 7.7.0+dfsg-2), libheimbase1-heimdal (= 7.7.0+dfsg-2), libheimntlm0-heimdal (= 7.7.0+dfsg-2), libhogweed6 (= 3.7.3-1), libhx509-5-heimdal (= 7.7.0+dfsg-2), libicu67 (= 67.1-6ubuntu2), libidn2-0 (= 2.3.1-1), libisl23 (= 0.24-1), libitm1 (= 11.1.0-3ubuntu1), libjansson4 (= 2.13.1-1.1build1), libk5crypto3 (= 1.18.3-5), libkeyutils1 (= 1.6.1-2ubuntu1), libkrb5-26-heimdal (= 7.7.0+dfsg-2), libkrb5-3 (= 1.18.3-5), libkrb5support0 (= 1.18.3-5), libldap-2.4-2 (= 2.4.57+dfsg-2ubuntu1), libldb2 (= 2:2.2.0-3ubuntu2), liblmdb0 (= 0.9.24-1), liblz4-1 (= 1.9.3-2), liblzma5 (= 5.2.5-2), libmagic-mgc (= 1:5.39-3), libmagic1 (= 1:5.39-3), libmd0 (= 1.0.3-3build1), libmount1 (= 2.36.1-7ubuntu2), libmpc3 (= 1.2.0-1build1), libmpdec3 (= 2.5.1-2), libmpfr6 (= 4.1.0-3build1), libncurses6 (= 6.2+20201114-2build1), libncursesw6 (= 6.2+20201114-2build1), libnettle8 (= 3.7.3-1), libnsl-dev (= 1.3.0-2), libnsl2 (= 1.3.0-2), libp11-kit0 (= 0.23.22-1), libpam-modules (= 1.3.1-5ubuntu7), libpam-modules-bin (= 1.3.1-5ubuntu7), libpam-runtime (= 1.3.1-5ubuntu7), libpam0g (= 1.3.1-5ubuntu7), libpam0g-dev (= 1.3.1-5ubuntu7), libpcre2-8-0 (= 10.36-2ubuntu5), libpcre3 (= 2:8.39-13build3), libperl5.32 (= 5.32.1-3ubuntu2), libpipeline1 (= 1.5.3-1), libpopt0 (= 1.18-2build2), libprocps8 (= 2:3.3.17-5ubuntu2), libpython3-stdlib (= 3.9.4-1), libpython3.9 (= 3.9.5-3), libpython3.9-minimal (= 3.9.5-3), libpython3.9-stdlib (= 3.9.5-3), libreadline8 (= 8.1-2), libroken18-heimdal (= 7.7.0+dfsg-2), libsasl2-2 (= 2.1.27+dfsg-2.1), libsasl2-modules-db (= 2.1.27+dfsg-2.1), libseccomp2 (= 2.5.1-1ubuntu1), libselinux1 (= 3.1-3build1), libsemanage-common (= 3.1-1ubuntu1), libsemanage1 (= 3.1-1ubuntu1), libsepol1 (= 3.1-1ubuntu1), libsigsegv2 (= 2.13-1ubuntu1), libsmartcols1 (= 2.36.1-7ubuntu2), libsmbclient (= 2:4.13.5+dfsg-2ubuntu1), libsmbclient-dev (= 2:4.13.5+dfsg-2ubuntu1), libsqlite3-0 (= 3.35.5-1), libssl1.1 (= 1.1.1j-1ubuntu4), libstdc++-10-dev (= 10.3.0-4ubuntu1), libstdc++6 (= 11.1.0-3ubuntu1), libsub-override-perl (= 0.09-2), libsystemd0 (= 248.3-1ubuntu1), libtalloc2 (= 2.3.1-2ubuntu1), libtasn1-6 (= 4.16.0-2), libtdb1 (= 1.4.3-1build1), libtevent0 (= 0.10.2-1), libtinfo6 (= 6.2+20201114-2build1), libtirpc-common (= 1.3.1-1build1), libtirpc-dev (= 1.3.1-1build1), libtirpc3 (= 1.3.1-1build1), libtool (= 2.4.6-15), libubsan1 (= 11.1.0-3ubuntu1), libuchardet0 (= 0.0.7-1), libudev1 (= 248.3-1ubuntu1), libunistring2 (= 0.9.10-4), libuuid1 (= 2.36.1-7ubuntu2), libwbclient0 (= 2:4.13.5+dfsg-2ubuntu1), libwind0-heimdal (= 7.7.0+dfsg-2), libxml2 (= 2.9.10+dfsg-6.7), libzstd1 (= 1.4.8+dfsg-2.1), linux-libc-dev (= 5.11.0-20.21+21.10.1), login (= 1:4.8.1-1ubuntu8), lsb-base (= 11.1.0ubuntu2), lto-disabled-list (= 11), m4 (= 1.4.18-5), make (= 4.3-4ubuntu1), man-db (= 2.9.4-2), mawk (= 1.3.4.20200120-2), media-types (= 4.0.0), ncurses-base (= 6.2+20201114-2build1), ncurses-bin (= 6.2+20201114-2build1), netbase (= 6.3), passwd (= 1:4.8.1-1ubuntu8), patch (= 2.7.6-7), perl (= 5.32.1-3ubuntu2), perl-base (= 5.32.1-3ubuntu2), perl-modules-5.32 (= 5.32.1-3ubuntu2), pkg-config (= 0.29.2-1ubuntu1), po-debconf (= 1.0.21+nmu1), procps (= 2:3.3.17-5ubuntu2), python3 (= 3.9.4-1), python3-dnspython (= 2.0.0+really1.16.0-2ubuntu2), python3-ldb (= 2:2.2.0-3ubuntu2), python3-minimal (= 3.9.4-1), python3-samba (= 2:4.13.5+dfsg-2ubuntu1), python3-talloc (= 2.3.1-2ubuntu1), python3-tdb (= 1.4.3-1build1), python3.9 (= 3.9.5-3), python3.9-minimal (= 3.9.5-3), readline-common (= 8.1-2), rpcsvc-proto (= 1.4.2-0ubuntu4), samba (= 2:4.13.5+dfsg-2ubuntu1), samba-common (= 2:4.13.5+dfsg-2ubuntu1), samba-common-bin (= 2:4.13.5+dfsg-2ubuntu1), samba-dsdb-modules (= 2:4.13.5+dfsg-2ubuntu1), samba-libs (= 2:4.13.5+dfsg-2ubuntu1), sed (= 4.7-1ubuntu1), sensible-utils (= 0.0.14), sysvinit-utils (= 2.96-7ubuntu1), tar (= 1.34+dfsg-1build1), tdb-tools (= 1.4.3-1build1), tzdata (= 2021a-1ubuntu1), ucf (= 3.0043), util-linux (= 2.36.1-7ubuntu2), xz-utils (= 5.2.5-2), zlib1g (= 1:1.2.11.dfsg-2ubuntu6) Environment: DEB_BUILD_OPTIONS="parallel=4" DEB_BUILD_PROFILES="noudeb" LANG="C.UTF-8" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1624277776" +------------------------------------------------------------------------------+ | Package contents | +------------------------------------------------------------------------------+ adsys_0.6_s390x.deb ------------------- new Debian package, version 2.0. size 4479108 bytes: control archive=2456 bytes. 647 bytes, 14 lines control 2458 bytes, 33 lines md5sums 3287 bytes, 75 lines * postinst #!/bin/sh 805 bytes, 21 lines * postrm #!/bin/sh 456 bytes, 14 lines * prerm #!/bin/sh Package: adsys Version: 0.6 Architecture: s390x Maintainer: Ubuntu Developers Installed-Size: 22205 Depends: libc6 (>= 2.32), libpam0g (>= 0.99.7.1), libsmbclient (>= 2:4.0.3+dfsg1), python3, python3-samba, samba-dsdb-modules, sssd, sssd-dbus Built-Using: golang-1.16 (= 1.16.5-1ubuntu1) Section: admin Priority: optional Homepage: https://github.com/ubuntu/adsys Description: AD SYStem integration ADSys is an AD SYStem tool to integrate GPOs with a linux system. It allows one to handle machine and users GPOs, mapping them to dconf keys, apparmor rules and running scripts at different point in time. drwxr-xr-x root/root 0 2021-06-21 12:16 ./ drwxr-xr-x root/root 0 2021-06-21 12:16 ./lib/ drwxr-xr-x root/root 0 2021-06-21 12:16 ./lib/s390x-linux-gnu/ drwxr-xr-x root/root 0 2021-06-21 12:16 ./lib/s390x-linux-gnu/security/ -rw-r--r-- root/root 10208 2021-06-21 12:16 ./lib/s390x-linux-gnu/security/pam_adsys.so drwxr-xr-x root/root 0 2021-06-21 12:16 ./lib/systemd/ drwxr-xr-x root/root 0 2021-06-21 12:16 ./lib/systemd/system/ -rw-r--r-- root/root 535 2021-06-21 12:16 ./lib/systemd/system/adsys-boot.service -rw-r--r-- root/root 121 2021-06-21 12:16 ./lib/systemd/system/adsys-gpo-refresh.service -rw-r--r-- root/root 139 2021-06-21 12:16 ./lib/systemd/system/adsys-gpo-refresh.timer -rw-r--r-- root/root 178 2021-06-21 12:16 ./lib/systemd/system/adsysd.service -rw-r--r-- root/root 168 2021-06-21 12:16 ./lib/systemd/system/adsysd.socket drwxr-xr-x root/root 0 2021-06-21 12:16 ./sbin/ lrwxrwxrwx root/root 0 2021-06-21 12:16 ./sbin/adsysctl -> adsysd -rwxr-xr-x root/root 22616792 2021-06-21 12:16 ./sbin/adsysd drwxr-xr-x root/root 0 2021-06-21 12:16 ./usr/ drwxr-xr-x root/root 0 2021-06-21 12:16 ./usr/share/ drwxr-xr-x root/root 0 2021-06-21 12:16 ./usr/share/apport/ drwxr-xr-x root/root 0 2021-06-21 12:16 ./usr/share/apport/package-hooks/ -rw-r--r-- root/root 190 2021-06-21 12:16 ./usr/share/apport/package-hooks/adsys.py drwxr-xr-x root/root 0 2021-06-21 12:16 ./usr/share/bash-completion/ drwxr-xr-x root/root 0 2021-06-21 12:16 ./usr/share/bash-completion/completions/ -rw-r--r-- root/root 23443 2021-06-21 12:16 ./usr/share/bash-completion/completions/adsysctl -rw-r--r-- root/root 15330 2021-06-21 12:16 ./usr/share/bash-completion/completions/adsysd drwxr-xr-x root/root 0 2021-06-21 12:16 ./usr/share/doc/ drwxr-xr-x root/root 0 2021-06-21 12:16 ./usr/share/doc/adsys/ -rw-r--r-- root/root 2144 2021-06-21 12:16 ./usr/share/doc/adsys/changelog.gz -rw-r--r-- root/root 8632 2021-06-21 12:16 ./usr/share/doc/adsys/copyright drwxr-xr-x root/root 0 2021-06-21 12:16 ./usr/share/locale/ drwxr-xr-x root/root 0 2021-06-21 12:16 ./usr/share/man/ drwxr-xr-x root/root 0 2021-06-21 12:16 ./usr/share/man/man1/ -rw-r--r-- root/root 639 2021-06-21 12:16 ./usr/share/man/man1/adsysctl-applied.1.gz -rw-r--r-- root/root 594 2021-06-21 12:16 ./usr/share/man/man1/adsysctl-completion.1.gz -rw-r--r-- root/root 584 2021-06-21 12:16 ./usr/share/man/man1/adsysctl-doc.1.gz -rw-r--r-- root/root 576 2021-06-21 12:16 ./usr/share/man/man1/adsysctl-policy-admx.1.gz -rw-r--r-- root/root 637 2021-06-21 12:16 ./usr/share/man/man1/adsysctl-policy-applied.1.gz -rw-r--r-- root/root 565 2021-06-21 12:16 ./usr/share/man/man1/adsysctl-policy-debug-gpolist-script.1.gz -rw-r--r-- root/root 543 2021-06-21 12:16 ./usr/share/man/man1/adsysctl-policy-debug.1.gz -rw-r--r-- root/root 672 2021-06-21 12:16 ./usr/share/man/man1/adsysctl-policy-update.1.gz -rw-r--r-- root/root 537 2021-06-21 12:16 ./usr/share/man/man1/adsysctl-policy.1.gz -rw-r--r-- root/root 519 2021-06-21 12:16 ./usr/share/man/man1/adsysctl-service-cat.1.gz -rw-r--r-- root/root 517 2021-06-21 12:16 ./usr/share/man/man1/adsysctl-service-status.1.gz -rw-r--r-- root/root 588 2021-06-21 12:16 ./usr/share/man/man1/adsysctl-service-stop.1.gz -rw-r--r-- root/root 534 2021-06-21 12:16 ./usr/share/man/man1/adsysctl-service.1.gz -rw-r--r-- root/root 672 2021-06-21 12:16 ./usr/share/man/man1/adsysctl-update.1.gz -rw-r--r-- root/root 524 2021-06-21 12:16 ./usr/share/man/man1/adsysctl-version.1.gz -rw-r--r-- root/root 561 2021-06-21 12:16 ./usr/share/man/man1/adsysctl.1.gz -rw-r--r-- root/root 733 2021-06-21 12:16 ./usr/share/man/man1/adsysd-completion.1.gz -rw-r--r-- root/root 659 2021-06-21 12:16 ./usr/share/man/man1/adsysd-version.1.gz -rw-r--r-- root/root 657 2021-06-21 12:16 ./usr/share/man/man1/adsysd.1.gz drwxr-xr-x root/root 0 2021-06-21 12:16 ./usr/share/pam-configs/ -rw-r--r-- root/root 155 2021-06-21 12:16 ./usr/share/pam-configs/adsys drwxr-xr-x root/root 0 2021-06-21 12:16 ./usr/share/polkit-1/ drwxr-xr-x root/root 0 2021-06-21 12:16 ./usr/share/polkit-1/actions/ -rw-r--r-- root/root 2473 2021-06-21 12:16 ./usr/share/polkit-1/actions/com.ubuntu.adsys.policy +------------------------------------------------------------------------------+ | Post Build | +------------------------------------------------------------------------------+ +------------------------------------------------------------------------------+ | Cleanup | +------------------------------------------------------------------------------+ Purging /<> Not removing build depends: as requested +------------------------------------------------------------------------------+ | Summary | +------------------------------------------------------------------------------+ Build Architecture: s390x Build Type: any Build-Space: n/a Build-Time: 89 Distribution: impish-proposed Host Architecture: s390x Install-Time: 23 Job: adsys_0.6.dsc Machine Architecture: s390x Package: adsys Package-Time: 113 Source-Version: 0.6 Space: n/a Status: successful Version: 0.6 -------------------------------------------------------------------------------- Finished at 2021-06-21T12:47:47Z Build needed 00:01:53, no disk space Adding user buildd to group lxd RUN: /usr/share/launchpad-buildd/bin/in-target scan-for-processes --backend=chroot --series=impish --arch=s390x PACKAGEBUILD-21711207 Scanning for processes to kill in build PACKAGEBUILD-21711207