Diff of the two buildlogs: -- --- b1/build.log 2021-12-11 11:43:01.233316931 +0000 +++ b2/build.log 2021-12-11 11:47:05.613689421 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Jan 13 06:04:31 -12 2023 -I: pbuilder-time-stamp: 1673633071 +I: Current time: Sun Dec 12 01:43:03 +14 2021 +I: pbuilder-time-stamp: 1639222983 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/buster-reproducible-base.tgz] I: copying local configuration @@ -17,7 +17,7 @@ I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/root/.gnupg/trustedkeys.kbx': General error -gpgv: Signature made Tue Sep 4 10:15:34 2018 -12 +gpgv: Signature made Wed Sep 5 12:15:34 2018 +14 gpgv: using RSA key B4A0AAFCA86C86055D067614AB53E503586877A6 gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./python-oslo.policy_1.38.1-2.dsc @@ -26,136 +26,170 @@ dpkg-source: info: unpacking python-oslo.policy_1.38.1-2.debian.tar.xz I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/3031221/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3294199/tmp/hooks/D01_modify_environment starting +debug: Running on ionos1-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/3294199/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3294199/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=16' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="0" [2]="3" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.0.3(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=15' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='1ea300c1d20e4fd099d36dda93154cd3' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='3031221' - PS1='# ' - PS2='> ' + INVOCATION_ID=3e011461eaeb455e94927a490dfba59c + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=3294199 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.7FZynIFmW8/pbuilderrc_o2Tp --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.7FZynIFmW8/b1 --logfile b1/build.log python-oslo.policy_1.38.1-2.dsc' - SUDO_GID='111' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://85.184.249.68:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.7FZynIFmW8/pbuilderrc_C2vz --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.7FZynIFmW8/b2 --logfile b2/build.log python-oslo.policy_1.38.1-2.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://78.137.99.97:3128 I: uname -a - Linux ionos15-amd64 5.14.0-0.bpo.2-amd64 #1 SMP Debian 5.14.9-2~bpo11+1 (2021-10-10) x86_64 GNU/Linux + Linux i-capture-the-hostname 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux I: ls -l /bin total 5116 - -rwxr-xr-x 1 root root 1168776 Apr 17 2019 bash - -rwxr-xr-x 3 root root 38984 Jul 10 2019 bunzip2 - -rwxr-xr-x 3 root root 38984 Jul 10 2019 bzcat - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2227 Jul 10 2019 bzdiff - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Jun 24 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3641 Jul 10 2019 bzgrep - -rwxr-xr-x 3 root root 38984 Jul 10 2019 bzip2 - -rwxr-xr-x 1 root root 14328 Jul 10 2019 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 10 2019 bzmore - -rwxr-xr-x 1 root root 43744 Feb 28 2019 cat - -rwxr-xr-x 1 root root 64320 Feb 28 2019 chgrp - -rwxr-xr-x 1 root root 64288 Feb 28 2019 chmod - -rwxr-xr-x 1 root root 72512 Feb 28 2019 chown - -rwxr-xr-x 1 root root 146880 Feb 28 2019 cp - -rwxr-xr-x 1 root root 121464 Jan 17 2019 dash - -rwxr-xr-x 1 root root 109408 Feb 28 2019 date - -rwxr-xr-x 1 root root 76712 Feb 28 2019 dd - -rwxr-xr-x 1 root root 93744 Feb 28 2019 df - -rwxr-xr-x 1 root root 138856 Feb 28 2019 dir - -rwxr-xr-x 1 root root 84288 Jan 9 2019 dmesg - lrwxrwxrwx 1 root root 8 Sep 26 2018 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Sep 26 2018 domainname -> hostname - -rwxr-xr-x 1 root root 39520 Feb 28 2019 echo - -rwxr-xr-x 1 root root 28 Jan 7 2019 egrep - -rwxr-xr-x 1 root root 35424 Feb 28 2019 false - -rwxr-xr-x 1 root root 28 Jan 7 2019 fgrep - -rwxr-xr-x 1 root root 68880 Jan 9 2019 findmnt - -rwsr-xr-x 1 root root 34896 Apr 22 2020 fusermount - -rwxr-xr-x 1 root root 198976 Jan 7 2019 grep - -rwxr-xr-x 2 root root 2345 Jan 5 2019 gunzip - -rwxr-xr-x 1 root root 6375 Jan 5 2019 gzexe - -rwxr-xr-x 1 root root 98048 Jan 5 2019 gzip - -rwxr-xr-x 1 root root 26696 Sep 26 2018 hostname - -rwxr-xr-x 1 root root 68552 Feb 28 2019 ln - -rwxr-xr-x 1 root root 56760 Jul 26 2018 login - -rwxr-xr-x 1 root root 138856 Feb 28 2019 ls - -rwxr-xr-x 1 root root 108624 Jan 9 2019 lsblk - -rwxr-xr-x 1 root root 89088 Feb 28 2019 mkdir - -rwxr-xr-x 1 root root 68544 Feb 28 2019 mknod - -rwxr-xr-x 1 root root 43808 Feb 28 2019 mktemp - -rwxr-xr-x 1 root root 43008 Jan 9 2019 more - -rwsr-xr-x 1 root root 51280 Jan 9 2019 mount - -rwxr-xr-x 1 root root 14408 Jan 9 2019 mountpoint - -rwxr-xr-x 1 root root 138728 Feb 28 2019 mv - lrwxrwxrwx 1 root root 8 Sep 26 2018 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Feb 14 2019 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 39616 Feb 28 2019 pwd - lrwxrwxrwx 1 root root 4 Apr 17 2019 rbash -> bash - -rwxr-xr-x 1 root root 47776 Feb 28 2019 readlink - -rwxr-xr-x 1 root root 68416 Feb 28 2019 rm - -rwxr-xr-x 1 root root 47776 Feb 28 2019 rmdir - -rwxr-xr-x 1 root root 23312 Jan 21 2019 run-parts - -rwxr-xr-x 1 root root 122224 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Dec 10 16:20 sh -> dash - -rwxr-xr-x 1 root root 39552 Feb 28 2019 sleep - -rwxr-xr-x 1 root root 80672 Feb 28 2019 stty - -rwsr-xr-x 1 root root 63568 Jan 9 2019 su - -rwxr-xr-x 1 root root 35488 Feb 28 2019 sync - -rwxr-xr-x 1 root root 445560 Apr 23 2019 tar - -rwxr-xr-x 1 root root 14440 Jan 21 2019 tempfile - -rwxr-xr-x 1 root root 97152 Feb 28 2019 touch - -rwxr-xr-x 1 root root 35424 Feb 28 2019 true - -rwxr-xr-x 1 root root 14328 Apr 22 2020 ulockmgr_server - -rwsr-xr-x 1 root root 34888 Jan 9 2019 umount - -rwxr-xr-x 1 root root 39584 Feb 28 2019 uname - -rwxr-xr-x 2 root root 2345 Jan 5 2019 uncompress - -rwxr-xr-x 1 root root 138856 Feb 28 2019 vdir - -rwxr-xr-x 1 root root 34896 Jan 9 2019 wdctl - -rwxr-xr-x 1 root root 946 Jan 21 2019 which - lrwxrwxrwx 1 root root 8 Sep 26 2018 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1983 Jan 5 2019 zcat - -rwxr-xr-x 1 root root 1677 Jan 5 2019 zcmp - -rwxr-xr-x 1 root root 5879 Jan 5 2019 zdiff - -rwxr-xr-x 1 root root 29 Jan 5 2019 zegrep - -rwxr-xr-x 1 root root 29 Jan 5 2019 zfgrep - -rwxr-xr-x 1 root root 2080 Jan 5 2019 zforce - -rwxr-xr-x 1 root root 7584 Jan 5 2019 zgrep - -rwxr-xr-x 1 root root 2205 Jan 5 2019 zless - -rwxr-xr-x 1 root root 1841 Jan 5 2019 zmore - -rwxr-xr-x 1 root root 4552 Jan 5 2019 znew -I: user script /srv/workspace/pbuilder/3031221/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1168776 Apr 18 2019 bash + -rwxr-xr-x 3 root root 38984 Jul 11 2019 bunzip2 + -rwxr-xr-x 3 root root 38984 Jul 11 2019 bzcat + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2227 Jul 11 2019 bzdiff + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Jun 25 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3641 Jul 11 2019 bzgrep + -rwxr-xr-x 3 root root 38984 Jul 11 2019 bzip2 + -rwxr-xr-x 1 root root 14328 Jul 11 2019 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 11 2019 bzmore + -rwxr-xr-x 1 root root 43744 Mar 1 2019 cat + -rwxr-xr-x 1 root root 64320 Mar 1 2019 chgrp + -rwxr-xr-x 1 root root 64288 Mar 1 2019 chmod + -rwxr-xr-x 1 root root 72512 Mar 1 2019 chown + -rwxr-xr-x 1 root root 146880 Mar 1 2019 cp + -rwxr-xr-x 1 root root 121464 Jan 18 2019 dash + -rwxr-xr-x 1 root root 109408 Mar 1 2019 date + -rwxr-xr-x 1 root root 76712 Mar 1 2019 dd + -rwxr-xr-x 1 root root 93744 Mar 1 2019 df + -rwxr-xr-x 1 root root 138856 Mar 1 2019 dir + -rwxr-xr-x 1 root root 84288 Jan 10 2019 dmesg + lrwxrwxrwx 1 root root 8 Sep 27 2018 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Sep 27 2018 domainname -> hostname + -rwxr-xr-x 1 root root 39520 Mar 1 2019 echo + -rwxr-xr-x 1 root root 28 Jan 8 2019 egrep + -rwxr-xr-x 1 root root 35424 Mar 1 2019 false + -rwxr-xr-x 1 root root 28 Jan 8 2019 fgrep + -rwxr-xr-x 1 root root 68880 Jan 10 2019 findmnt + -rwsr-xr-x 1 root root 34896 Apr 23 2020 fusermount + -rwxr-xr-x 1 root root 198976 Jan 8 2019 grep + -rwxr-xr-x 2 root root 2345 Jan 6 2019 gunzip + -rwxr-xr-x 1 root root 6375 Jan 6 2019 gzexe + -rwxr-xr-x 1 root root 98048 Jan 6 2019 gzip + -rwxr-xr-x 1 root root 26696 Sep 27 2018 hostname + -rwxr-xr-x 1 root root 68552 Mar 1 2019 ln + -rwxr-xr-x 1 root root 56760 Jul 27 2018 login + -rwxr-xr-x 1 root root 138856 Mar 1 2019 ls + -rwxr-xr-x 1 root root 108624 Jan 10 2019 lsblk + -rwxr-xr-x 1 root root 89088 Mar 1 2019 mkdir + -rwxr-xr-x 1 root root 68544 Mar 1 2019 mknod + -rwxr-xr-x 1 root root 43808 Mar 1 2019 mktemp + -rwxr-xr-x 1 root root 43008 Jan 10 2019 more + -rwsr-xr-x 1 root root 51280 Jan 10 2019 mount + -rwxr-xr-x 1 root root 14408 Jan 10 2019 mountpoint + -rwxr-xr-x 1 root root 138728 Mar 1 2019 mv + lrwxrwxrwx 1 root root 8 Sep 27 2018 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Feb 15 2019 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 39616 Mar 1 2019 pwd + lrwxrwxrwx 1 root root 4 Apr 18 2019 rbash -> bash + -rwxr-xr-x 1 root root 47776 Mar 1 2019 readlink + -rwxr-xr-x 1 root root 68416 Mar 1 2019 rm + -rwxr-xr-x 1 root root 47776 Mar 1 2019 rmdir + -rwxr-xr-x 1 root root 23312 Jan 22 2019 run-parts + -rwxr-xr-x 1 root root 122224 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Dec 12 01:43 sh -> bash + lrwxrwxrwx 1 root root 4 Nov 8 11:58 sh.distrib -> dash + -rwxr-xr-x 1 root root 39552 Mar 1 2019 sleep + -rwxr-xr-x 1 root root 80672 Mar 1 2019 stty + -rwsr-xr-x 1 root root 63568 Jan 10 2019 su + -rwxr-xr-x 1 root root 35488 Mar 1 2019 sync + -rwxr-xr-x 1 root root 445560 Apr 24 2019 tar + -rwxr-xr-x 1 root root 14440 Jan 22 2019 tempfile + -rwxr-xr-x 1 root root 97152 Mar 1 2019 touch + -rwxr-xr-x 1 root root 35424 Mar 1 2019 true + -rwxr-xr-x 1 root root 14328 Apr 23 2020 ulockmgr_server + -rwsr-xr-x 1 root root 34888 Jan 10 2019 umount + -rwxr-xr-x 1 root root 39584 Mar 1 2019 uname + -rwxr-xr-x 2 root root 2345 Jan 6 2019 uncompress + -rwxr-xr-x 1 root root 138856 Mar 1 2019 vdir + -rwxr-xr-x 1 root root 34896 Jan 10 2019 wdctl + -rwxr-xr-x 1 root root 946 Jan 22 2019 which + lrwxrwxrwx 1 root root 8 Sep 27 2018 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1983 Jan 6 2019 zcat + -rwxr-xr-x 1 root root 1677 Jan 6 2019 zcmp + -rwxr-xr-x 1 root root 5879 Jan 6 2019 zdiff + -rwxr-xr-x 1 root root 29 Jan 6 2019 zegrep + -rwxr-xr-x 1 root root 29 Jan 6 2019 zfgrep + -rwxr-xr-x 1 root root 2080 Jan 6 2019 zforce + -rwxr-xr-x 1 root root 7584 Jan 6 2019 zgrep + -rwxr-xr-x 1 root root 2205 Jan 6 2019 zless + -rwxr-xr-x 1 root root 1841 Jan 6 2019 zmore + -rwxr-xr-x 1 root root 4552 Jan 6 2019 znew +I: user script /srv/workspace/pbuilder/3294199/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -564,7 +598,7 @@ Get: 287 http://deb.debian.org/debian buster/main amd64 python3-requests-mock all 1.5.2-2 [14.5 kB] Get: 288 http://deb.debian.org/debian buster/main amd64 python3-testrepository all 0.0.20-3 [65.8 kB] Get: 289 http://deb.debian.org/debian buster/main amd64 testrepository all 0.0.20-3 [21.3 kB] -Fetched 59.8 MB in 1s (67.5 MB/s) +Fetched 59.8 MB in 2s (35.6 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libbsd0:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19195 files and directories currently installed.) @@ -1820,7 +1854,8 @@ fakeroot is already the newest version (1.23-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/python-oslo.policy-1.38.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../python-oslo.policy_1.38.1-2_source.changes +hostname: Name or service not known +I: Running cd /build/python-oslo.policy-1.38.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../python-oslo.policy_1.38.1-2_source.changes dpkg-buildpackage: info: source package python-oslo.policy dpkg-buildpackage: info: source version 1.38.1-2 dpkg-buildpackage: info: source distribution unstable @@ -1926,150 +1961,339 @@ + PYTHONS=disabled + PYTHON3S=disabled + TEST_PARALLEL_OPT=--parallel -+ [ yes = yes ] ++ '[' yes = yes ']' + PYTHONS=2.7 -+ [ yes = yes ] -+ py3versions -vr ++ '[' yes = yes ']' +++ py3versions -vr + PYTHON3S=3.7 -+ [ yes = no ] -+ [ 2.7 = disabled ] -+ echo 2.7 -+ cut -d. -f1 ++ '[' yes = no ']' ++ for pyvers in ${PYTHONS} ${PYTHON3S} ++ '[' 2.7 = disabled ']' +++ echo 2.7 +++ cut -d. -f1 + PYMAJOR=2 -+ echo ===> Testing with python (python2) ++ echo '===> Testing with python (python2)' ===> Testing with python (python2) -+ [ 2 = 3 ] -+ [ 2 = 2 ] -+ pwd -+ [ -d /build/python-oslo.policy-1.38.1/debian/tmp/usr/lib/python3/dist-packages ] -+ [ -e .stestr.conf ] ++ '[' 2 = 3 ']' ++ '[' 2 = 2 ']' +++ pwd ++ '[' -d /build/python-oslo.policy-1.38.1/debian/tmp/usr/lib/python3/dist-packages ']' ++ '[' -e .stestr.conf ']' + rm -rf .stestr -+ PYTHON=python2.7 python2-stestr run --subunit ++ PYTHON=python2.7 ++ python2-stestr run --subunit + subunit2pyunit -oslo_policy.tests.test_checks.GenericCheckTestCase.test_entry_not_in_list_rejected -oslo_policy.tests.test_checks.GenericCheckTestCase.test_entry_not_in_list_rejected ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entry_in_list_accepted -oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entry_in_list_accepted ... ok -oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_missing -oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_missing ... ok -oslo_policy.tests.test_external.HttpCheckTestCase.test_reject_with_rule_in_argument -oslo_policy.tests.test_external.HttpCheckTestCase.test_reject_with_rule_in_argument ... ok -oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_false -oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_false ... ok -oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_parse_state_meta -oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_parse_state_meta ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_logs_warning_when_overridden -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_logs_warning_when_overridden ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_method -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_method ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_path -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_path ... ok -oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check -oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_accept -oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_accept ... ok -oslo_policy.tests.test_checks.AndCheckTestCase.test_str -oslo_policy.tests.test_checks.AndCheckTestCase.test_str ... ok -oslo_policy.tests.test_checks.FalseCheckTestCase.test_str -oslo_policy.tests.test_checks.FalseCheckTestCase.test_str ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_missing_role_does_not_matches -oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_missing_role_does_not_matches ... ok -oslo_policy.tests.test_checks.RoleCheckTestCase.test_accept -oslo_policy.tests.test_checks.RoleCheckTestCase.test_accept ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_accept -oslo_policy.tests.test_checks.GenericCheckTestCase.test_accept ... ok -oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check_decorator -oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check_decorator ... ok -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify ... ok -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_cert -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_cert ... ok -oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content -oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_missing_credentials_dictionary_lookup -oslo_policy.tests.test_checks.GenericCheckTestCase.test_missing_credentials_dictionary_lookup ... ok -oslo_policy.tests.test_checks.NotCheckTestCase.test_str -oslo_policy.tests.test_checks.NotCheckTestCase.test_str ... ok -oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_with_rule_in_argument -oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_with_rule_in_argument ... ok - WARNING [oslo_policy.policy] Policies [u'foo'] reference a rule that is not defined. -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_reject -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_reject ... ok - WARNING [oslo_policy.policy] Policies [u'foo'] reference a rule that is not defined. -oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_true -oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_true ... ok -oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_raises_error -oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_raises_error ... ok -oslo_policy.tests.test_parser.ParseCheckTestCase.test_check -oslo_policy.tests.test_parser.ParseCheckTestCase.test_check ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_3 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_3 ... ok +oslo_policy.tests.test_checks.CheckTestCase.test_str +oslo_policy.tests.test_checks.CheckTestCase.test_str ... ok +oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_does_not_take_current_rule +oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_does_not_take_current_rule ... ok +oslo_policy.tests.test_checks.TrueCheckTestCase.test_str +oslo_policy.tests.test_checks.TrueCheckTestCase.test_str ... ok +oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_call_with_no_arguments_raises_error +oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_call_with_no_arguments_raises_error ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_3 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_3 ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_and_D +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_and_D ... ok oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_for_removal_must_include_deprecated_since oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_for_removal_must_include_deprecated_since ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_rule_requires_deprecated_rule_object -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_rule_requires_deprecated_rule_object ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_contain_operations -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_contain_operations ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_clear_opts_registered -oslo_policy.tests.test_policy.EnforcerTest.test_clear_opts_registered ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_must_include_deprecated_since +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_must_include_deprecated_since ... ok oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_subclassed_context_objects oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_subclassed_context_objects ... ok oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_with_overwrite_opts_registered oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_with_overwrite_opts_registered ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_update_rules -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_update_rules ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_file -oslo_policy.tests.test_policy.EnforcerTest.test_load_file ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_ensure_scope_types_are_unique -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_ensure_scope_types_are_unique ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_init -oslo_policy.tests.test_policy.RulesTestCase.test_init ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_str_true -oslo_policy.tests.test_policy.RulesTestCase.test_str_true ... ok -oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_scope_types -oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_scope_types ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_result_empty -oslo_policy.tests.test_parser.ParseStateTestCase.test_result_empty ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_1 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_1 ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_7 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_7 ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_be_list_of_dicts -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_be_list_of_dicts ... ok -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule_raises -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule_raises ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_not_registered -oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_not_registered ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_default_policy_file -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_default_policy_file ... ok oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same_but_overwrite_false oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same_but_overwrite_false ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_policy_dirs_with_non_directory +oslo_policy.tests.test_policy.EnforcerTest.test_load_policy_dirs_with_non_directory ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_rule_with_check +oslo_policy.tests.test_policy.EnforcerTest.test_rule_with_check ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equal_subclass +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equal_subclass ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_class +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_class ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_rule_is_parsed +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_rule_is_parsed ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_from_dict +oslo_policy.tests.test_policy.RulesTestCase.test_from_dict ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml_invalid_exc +oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml_invalid_exc ... ok +oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_description +oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_description ... ok +oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_with_rule_in_argument +oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_with_rule_in_argument ... ok +oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_false +oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_false ... ok +oslo_policy.tests.test_generator.GeneratePolicyTestCase.test_merged_rules +oslo_policy.tests.test_generator.GeneratePolicyTestCase.test_merged_rules ... ok + WARNING [oslo_policy.policy] Policies [u'foo', u'bar'] are part of a cyclical reference. + WARNING [oslo_policy.policy] Policies [u'foo', u'bar'] are part of a cyclical reference. +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content_stdout +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content_stdout ... ok +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_generate_loadable_yaml +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_generate_loadable_yaml ... ok +oslo_policy.tests.test_parser.ParseRuleTestCase.test_parse_rule_list +oslo_policy.tests.test_parser.ParseRuleTestCase.test_parse_rule_list ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_init +oslo_policy.tests.test_parser.ParseStateTestCase.test_init ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_2 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_2 ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C_and_D +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C_and_D ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C_or_D +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C_or_D ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_missing_role_does_not_matches +oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_missing_role_does_not_matches ... ok +oslo_policy.tests.test_checks.OrCheckTestCase.test_init +oslo_policy.tests.test_checks.OrCheckTestCase.test_init ... ok +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_and_client_certs +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_and_client_certs ... ok +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_deprecated_policies_are_aliased_to_new_names +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_deprecated_policies_are_aliased_to_new_names ... ok +oslo_policy.tests.test_parser.ParseCheckTestCase.test_true +oslo_policy.tests.test_parser.ParseCheckTestCase.test_true ... ok +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_empty +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_empty ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_result +oslo_policy.tests.test_parser.ParseStateTestCase.test_result ... ok +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_cyclical_rules +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_cyclical_rules ... ok +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_no_rules +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_no_rules ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_default_rule_name +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_default_rule_name ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_false +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_false ... ok +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_default +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_default ... ok +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_rule_not_exist_not_empty_policy_file +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_rule_not_exist_not_empty_policy_file ... ok +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_complex_cyclical_rules_true +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_complex_cyclical_rules_true ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_clear +oslo_policy.tests.test_policy.EnforcerTest.test_clear ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_context_objects +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_context_objects ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_update_rules +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_update_rules ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated_opts_registered +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated_opts_registered ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_without_overwrite_opts_registered +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_without_overwrite_opts_registered ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_policy_file +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_policy_file ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice +oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_name +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_name ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_subclass +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_subclass ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_retrieval +oslo_policy.tests.test_policy.RulesTestCase.test_retrieval ... ok oslo_policy.tests.test_policy.RuleDefaultTestCase.test_str oslo_policy.tests.test_policy.RuleDefaultTestCase.test_str ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_init_basic -oslo_policy.tests.test_policy.RulesTestCase.test_init_basic ... ok -oslo_policy.tests.test_checks.AndCheckTestCase.test_call_first_true -oslo_policy.tests.test_checks.AndCheckTestCase.test_call_first_true ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_load_json_deprecated +oslo_policy.tests.test_policy.RulesTestCase.test_load_json_deprecated ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_with_default +oslo_policy.tests.test_policy.RulesTestCase.test_with_default ... ok +oslo_policy.tests.test_checks.AndCheckTestCase.test_rule_does_not_take_current_rule +oslo_policy.tests.test_checks.AndCheckTestCase.test_rule_does_not_take_current_rule ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_accept +oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_accept ... ok +oslo_policy.tests.test_checks.NotCheckTestCase.test_str +oslo_policy.tests.test_checks.NotCheckTestCase.test_str ... ok +oslo_policy.tests.test_checks.OrCheckTestCase.test_add_check +oslo_policy.tests.test_checks.OrCheckTestCase.test_add_check ... ok +oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_missing +oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_missing ... ok +oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_objects_in_target +oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_objects_in_target ... ok +oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_true +oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_true ... ok +oslo_policy.tests.test_parser.ParseRuleTestCase.test_parse_rule_string +oslo_policy.tests.test_parser.ParseRuleTestCase.test_parse_rule_string ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_or_expr +oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_or_expr ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_1 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_1 ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_1 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_1 ... ok +oslo_policy.tests.test_policy.BaseCheckTypesTestCase.test_base_check_types_are_public +oslo_policy.tests.test_policy.BaseCheckTypesTestCase.test_base_check_types_are_public ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_description_not_empty +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_description_not_empty ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_multiple_operations +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_multiple_operations ... ok +oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_load_rules +oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_load_rules ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_with_overwrite +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_with_overwrite ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_check +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_check ... ok +oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_minimal +oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_minimal ... ok +oslo_policy.tests.test_checks.AndCheckTestCase.test_add_check +oslo_policy.tests.test_checks.AndCheckTestCase.test_add_check ... ok oslo_policy.tests.test_checks.AndCheckTestCase.test_call_second_true oslo_policy.tests.test_checks.AndCheckTestCase.test_call_second_true ... ok +oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check_decorator +oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check_decorator ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_entry_not_in_list_rejected +oslo_policy.tests.test_checks.GenericCheckTestCase.test_entry_not_in_list_rejected ... ok +oslo_policy.tests.test_checks.OrCheckTestCase.test_pop_check +oslo_policy.tests.test_checks.OrCheckTestCase.test_pop_check ... ok +oslo_policy.tests.test_checks.RoleCheckTestCase.test_no_roles_case +oslo_policy.tests.test_checks.RoleCheckTestCase.test_no_roles_case ... ok +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_strings_in_target +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_strings_in_target ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_short +oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_short ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_5 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_5 ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_8 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_8 ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_empty +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_empty ... ok +oslo_policy.tests.test_parser.ParseTokenizeTestCase.test_tokenize +oslo_policy.tests.test_parser.ParseTokenizeTestCase.test_tokenize ... ok +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_custom_exception +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_custom_exception ... ok +oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check +oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check ... ok oslo_policy.tests.test_checks.GenericCheckTestCase.test_cred_mismatch oslo_policy.tests.test_checks.GenericCheckTestCase.test_cred_mismatch ... ok -oslo_policy.tests.test_checks.OrCheckTestCase.test_add_check -oslo_policy.tests.test_checks.OrCheckTestCase.test_add_check ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_missing_credentials_dictionary_lookup +oslo_policy.tests.test_checks.GenericCheckTestCase.test_missing_credentials_dictionary_lookup ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entries_one_matches +oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entries_one_matches ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_no_cred +oslo_policy.tests.test_checks.GenericCheckTestCase.test_no_cred ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_single_entry_in_list_accepted +oslo_policy.tests.test_checks.GenericCheckTestCase.test_single_entry_in_list_accepted ... ok +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_with_rule +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_with_rule ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_check_string +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_check_string ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_not_registered +oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_not_registered ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_clear_opts_registered +oslo_policy.tests.test_policy.EnforcerTest.test_clear_opts_registered ... ok +oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_json +oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_json ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_rejects_non_context_objects +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_rejects_non_context_objects ... ok +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_empty_line_formatting +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_empty_line_formatting ... ok +oslo_policy.tests.test_opts.OptsTestCase.test_set_defaults_policy_file +oslo_policy.tests.test_opts.OptsTestCase.test_set_defaults_policy_file ... ok +oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_parse_state_meta +oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_parse_state_meta ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_and_expr +oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_and_expr ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_result_empty +oslo_policy.tests.test_parser.ParseStateTestCase.test_result_empty ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_or_D +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_or_D ... ok +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_no_violations +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_no_violations ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories +oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml +oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml ... ok +oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_multiple_config_files +oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_multiple_config_files ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_role_check_matches +oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_role_check_matches ... ok oslo_policy.tests.test_checks.OrCheckTestCase.test_rule_takes_current_rule oslo_policy.tests.test_checks.OrCheckTestCase.test_rule_takes_current_rule ... ok -oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_call_with_no_arguments_raises_error -oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_call_with_no_arguments_raises_error ... ok -oslo_policy.tests.test_parser.ParseCheckTestCase.test_check_default -oslo_policy.tests.test_parser.ParseCheckTestCase.test_check_default ... ok -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_empty -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_empty ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_one -oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_one ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_default_rule_name -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_default_rule_name ... ok +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept ... ok +oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content_stdout +oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content_stdout ... ok +oslo_policy.tests.test_checks.FalseCheckTestCase.test_call +oslo_policy.tests.test_checks.FalseCheckTestCase.test_call ... ok + WARNING [oslo_policy.policy] Policies [u'foo', u'bar'] are part of a cyclical reference. + WARNING [oslo_policy.policy] Policies [u'foo', u'bar'] are part of a cyclical reference. +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_multi_multi +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_multi_multi ... ok +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_oneele +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_oneele ... ok +oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_reducer +oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_reducer ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_6 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_6 ... ok +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_explicit +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_explicit ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_contain_operations +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_contain_operations ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entry_in_nested_list_accepted +oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entry_in_nested_list_accepted ... ok +oslo_policy.tests.test_checks.RoleCheckTestCase.test_format_value +oslo_policy.tests.test_checks.RoleCheckTestCase.test_format_value ... ok +oslo_policy.tests.test_external.HttpCheckTestCase.test_accept +oslo_policy.tests.test_external.HttpCheckTestCase.test_accept ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_path +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_path ... ok +oslo_policy.tests.test_external.HttpCheckTestCase.test_reject +oslo_policy.tests.test_external.HttpCheckTestCase.test_reject ... ok +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_cyclical_rules_raises +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_cyclical_rules_raises ... ok +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify ... ok + ERROR [oslo_policy._parser] Failed to understand rule foobar +Traceback (most recent call last): + File "oslo_policy/_parser.py", line 212, in _parse_check + kind, match = rule.split(':', 1) +ValueError: need more than 1 value to unpack +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory +oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice_force +oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice_force ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_set_rules_type +oslo_policy.tests.test_policy.EnforcerTest.test_set_rules_type ... ok +oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_operations +oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_operations ... ok +oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_generate_loadable_json +oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_generate_loadable_json ... ok +oslo_policy.tests.test_parser.ParseCheckTestCase.test_bad_rule +oslo_policy.tests.test_parser.ParseCheckTestCase.test_bad_rule ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_make_and_expr +oslo_policy.tests.test_parser.ParseStateTestCase.test_make_and_expr ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_make_not_expr +oslo_policy.tests.test_parser.ParseStateTestCase.test_make_not_expr ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_or_D +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_or_D ... ok +oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_opts_registered +oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_opts_registered ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_policy_values_from_context +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_policy_values_from_context ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload_opts_registered +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload_opts_registered ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_file_opts_registered +oslo_policy.tests.test_policy.EnforcerTest.test_load_file_opts_registered ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories_opts_registered +oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories_opts_registered ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_init +oslo_policy.tests.test_policy.RulesTestCase.test_init ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_literal_accept +oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_literal_accept ... ok +oslo_policy.tests.test_checks.OrCheckTestCase.test_str +oslo_policy.tests.test_checks.OrCheckTestCase.test_str ... ok +oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_false +oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_false ... ok +oslo_policy.tests.test_external.HttpCheckTestCase.test_reject_with_rule_in_argument +oslo_policy.tests.test_external.HttpCheckTestCase.test_reject_with_rule_in_argument ... ok +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_cert +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_cert ... ok ERROR [oslo_policy._parser] Failed to understand rule test rule Traceback (most recent call last): File "oslo_policy/_parser.py", line 340, in _parse_text_rule @@ -2077,1059 +2301,874 @@ File "oslo_policy/_parser.py", line 141, in result raise ValueError('Could not parse rule') ValueError: Could not parse rule -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_overwrite_rules -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_overwrite_rules ... ok oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_objects_in_target oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_objects_in_target ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_1 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_1 ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_contain_method_and_path_only -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_contain_method_and_path_only ... ok -oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_opts_registered -oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_opts_registered ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_false -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_false ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_register_twice_raises -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_register_twice_raises ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_file_opts_registered -oslo_policy.tests.test_policy.EnforcerTest.test_load_file_opts_registered ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_scope_types -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_scope_types ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_obvious -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_obvious ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same_opts_registered -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same_opts_registered ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories_opts_registered -oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories_opts_registered ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_missing_default -oslo_policy.tests.test_policy.RulesTestCase.test_missing_default ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_retrieval -oslo_policy.tests.test_policy.RulesTestCase.test_retrieval ... ok -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_multi -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_multi ... ok -oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_reducer -oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_reducer ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_2 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_2 ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_5 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_5 ... ok -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_default -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_default ... ok -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_with_rule -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_with_rule ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_policy_values_from_context -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_policy_values_from_context ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_policy_dirs_with_non_directory -oslo_policy.tests.test_policy.EnforcerTest.test_load_policy_dirs_with_non_directory ... ok -oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_operations -oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_operations ... ok +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_policies_deprecated_for_removal +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_policies_deprecated_for_removal ... ok ERROR [oslo_policy._parser] No handler for matches of kind no - WARNING [oslo_policy.policy] Policies [u'foo', u'bar'] are part of a cyclical reference. - WARNING [oslo_policy.policy] Policies [u'foo', u'bar'] are part of a cyclical reference. - WARNING [oslo_policy.policy] Policies [u'foo', u'bar'] are part of a cyclical reference. - WARNING [oslo_policy.policy] Policies [u'foo', u'bar'] are part of a cyclical reference. +oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_raises_error +oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_raises_error ... ok WARNING [oslo_policy.policy] Policies [u'baz', u'foo', u'bar'] are part of a cyclical reference. WARNING [oslo_policy.policy] Policies [u'baz', u'foo', u'bar'] are part of a cyclical reference. +oslo_policy.tests.test_checks.AndCheckTestCase.test_call_first_true +oslo_policy.tests.test_checks.AndCheckTestCase.test_call_first_true ... ok + WARNING [oslo_policy.policy] Policies [u'foo'] reference a rule that is not defined. + WARNING [oslo_policy.policy] Policies [u'foo'] reference a rule that is not defined. +oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_mismatch +oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_mismatch ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_nested_lists_accepted +oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_nested_lists_accepted ... ok +oslo_policy.tests.test_checks.NotCheckTestCase.test_call_true +oslo_policy.tests.test_checks.NotCheckTestCase.test_call_true ... ok +oslo_policy.tests.test_checks.OrCheckTestCase.test_call_all_false +oslo_policy.tests.test_checks.OrCheckTestCase.test_call_all_false ... ok +oslo_policy.tests.test_generator.ListRedundantTestCase.test_matched_rules +oslo_policy.tests.test_generator.ListRedundantTestCase.test_matched_rules ... ok +oslo_policy.tests.test_checks.OrCheckTestCase.test_rule_does_not_take_current_rule +oslo_policy.tests.test_checks.OrCheckTestCase.test_rule_does_not_take_current_rule ... ok +oslo_policy.tests.test_parser.ParseCheckTestCase.test_check +oslo_policy.tests.test_parser.ParseCheckTestCase.test_check ... ok +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_zeroele +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_zeroele ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_none +oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_none ... ok oslo_policy.tests.test_checks.AndCheckTestCase.test_call_all_false oslo_policy.tests.test_checks.AndCheckTestCase.test_call_all_false ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_literal_accept -oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_literal_accept ... ok -oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_does_not_take_current_rule -oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_does_not_take_current_rule ... ok -oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_strings_in_target -oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_strings_in_target ... ok -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_bare -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_bare ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C_or_D -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C_or_D ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_8 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_8 ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_2 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_2 ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_or_D -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_or_D ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_clear -oslo_policy.tests.test_policy.EnforcerTest.test_clear ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_consolidates_context_attributes_with_creds -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_consolidates_context_attributes_with_creds ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories -oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_map_context_attributes_populated_system -oslo_policy.tests.test_policy.EnforcerTest.test_map_context_attributes_populated_system ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_load_json -oslo_policy.tests.test_policy.RulesTestCase.test_load_json ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_single_entry_in_list_accepted -oslo_policy.tests.test_checks.GenericCheckTestCase.test_single_entry_in_list_accepted ... ok -oslo_policy.tests.test_checks.AndCheckTestCase.test_add_check -oslo_policy.tests.test_checks.AndCheckTestCase.test_add_check ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_no_key_match_in_target -oslo_policy.tests.test_checks.GenericCheckTestCase.test_no_key_match_in_target ... ok -oslo_policy.tests.test_checks.OrCheckTestCase.test_call_first_true -oslo_policy.tests.test_checks.OrCheckTestCase.test_call_first_true ... ok -oslo_policy.tests.test_checks.OrCheckTestCase.test_pop_check -oslo_policy.tests.test_checks.OrCheckTestCase.test_pop_check ... ok -oslo_policy.tests.test_checks.RoleCheckTestCase.test_format_value -oslo_policy.tests.test_checks.RoleCheckTestCase.test_format_value ... ok -oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_objects_in_target -oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_objects_in_target ... ok +oslo_policy.tests.test_checks.OrCheckTestCase.test_call_second_true +oslo_policy.tests.test_checks.OrCheckTestCase.test_call_second_true ... ok + WARNING [oslo_policy.policy] Policies [u'foo'] reference a rule that is not defined. + WARNING [oslo_policy.policy] Policies [u'foo'] reference a rule that is not defined. +oslo_policy.tests.test_checks.RoleCheckTestCase.test_accept +oslo_policy.tests.test_checks.RoleCheckTestCase.test_accept ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_2 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_2 ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_2 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_2 ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_7 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_7 ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_be_list +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_be_list ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_contain_method_and_path_only +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_contain_method_and_path_only ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_fail +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_fail ... ok +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_reject +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_reject ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_logs_warning_when_overridden +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_logs_warning_when_overridden ... ok oslo_policy.tests.test_parser.ParseCheckTestCase.test_no_handler oslo_policy.tests.test_parser.ParseCheckTestCase.test_no_handler ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_none -oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_none ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_multi +oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_multi ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_opts_registered +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_opts_registered ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_name +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_name ... ok +oslo_policy.tests.test_checks.AndCheckTestCase.test_str +oslo_policy.tests.test_checks.AndCheckTestCase.test_str ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_one +oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_one ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_two +oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_two ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_wrap_check +oslo_policy.tests.test_parser.ParseStateTestCase.test_wrap_check ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C ... ok oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_must_include_deprecated_reason oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_must_include_deprecated_reason ... ok +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice_clear +oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice_clear ... ok oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_complex_cyclical_rules_false oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_complex_cyclical_rules_false ... ok -oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_minimal -oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_minimal ... ok +oslo_policy.tests.test_checks.NotCheckTestCase.test_init +oslo_policy.tests.test_checks.NotCheckTestCase.test_init ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_call_map_context_attributes +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_call_map_context_attributes ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_scope_type_strings_fails +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_scope_type_strings_fails ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_init_basic +oslo_policy.tests.test_policy.RulesTestCase.test_init_basic ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_str_true +oslo_policy.tests.test_policy.RulesTestCase.test_str_true ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice ... ok +oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_takes_current_rule +oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_takes_current_rule ... ok +oslo_policy.tests.test_checks.TrueCheckTestCase.test_call +oslo_policy.tests.test_checks.TrueCheckTestCase.test_call ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_dir_caching_with_files_same_overwrite_false_opts_reg +oslo_policy.tests.test_policy.EnforcerTest.test_load_dir_caching_with_files_same_overwrite_false_opts_reg ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_non_reversible_check +oslo_policy.tests.test_policy.EnforcerTest.test_non_reversible_check ... ok oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_single_config_file oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_single_config_file ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload_opts_registered -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload_opts_registered ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_set_rules -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_set_rules ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_file +oslo_policy.tests.test_policy.EnforcerTest.test_load_file ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C_and_D +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C_and_D ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_3 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_3 ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_shifts +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_shifts ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_missing_default +oslo_policy.tests.test_policy.RulesTestCase.test_missing_default ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_does_not_log_warning +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_does_not_log_warning ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_no_default +oslo_policy.tests.test_policy.RulesTestCase.test_no_default ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_be_list_of_dicts +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_be_list_of_dicts ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_method +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_method ... ok +oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_load_directory +oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_load_directory ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_register_twice_raises +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_register_twice_raises ... ok oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_default_rule oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_default_rule ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_get_policy_path_raises_exc +oslo_policy.tests.test_policy.EnforcerTest.test_get_policy_path_raises_exc ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_str +oslo_policy.tests.test_policy.RulesTestCase.test_str ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same_opts_registered +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same_opts_registered ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice_force +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice_force ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_map_context_attributes_populated_system +oslo_policy.tests.test_policy.EnforcerTest.test_map_context_attributes_populated_system ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_multiple_scope_types +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_multiple_scope_types ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_deep_credentials_dictionary_lookup +oslo_policy.tests.test_checks.GenericCheckTestCase.test_deep_credentials_dictionary_lookup ... ok +oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_false +oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_false ... ok +oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content +oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content ... ok +oslo_policy.tests.test_parser.ParseCheckTestCase.test_false +oslo_policy.tests.test_parser.ParseCheckTestCase.test_false ... ok +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_multi_oneele +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_multi_oneele ... ok +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_multi +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_multi ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_shift +oslo_policy.tests.test_parser.ParseStateTestCase.test_shift ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_4 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_4 ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_rule_requires_deprecated_rule_object +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_rule_requires_deprecated_rule_object ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_consolidates_context_attributes_with_creds +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_consolidates_context_attributes_with_creds ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_without_overwrite +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_without_overwrite ... ok oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice_changed oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice_changed ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory -oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory ... ok -oslo_policy.tests.test_checks.AndCheckTestCase.test_rule_takes_current_rule -oslo_policy.tests.test_checks.AndCheckTestCase.test_rule_takes_current_rule ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory_opts_registered +oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory_opts_registered ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_scope_types +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_scope_types ... ok +oslo_policy.tests.test_checks.CheckTestCase.test_init +oslo_policy.tests.test_checks.CheckTestCase.test_init ... ok +oslo_policy.tests.test_checks.FalseCheckTestCase.test_str +oslo_policy.tests.test_checks.FalseCheckTestCase.test_str ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_literal_mismatch +oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_literal_mismatch ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_ensure_scope_types_are_unique +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_ensure_scope_types_are_unique ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_obvious +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_obvious ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_load_empty_data +oslo_policy.tests.test_policy.RulesTestCase.test_load_empty_data ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_load_json +oslo_policy.tests.test_policy.RulesTestCase.test_load_json ... ok oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_true oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_true ... ok -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_strings_in_target -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_strings_in_target ... ok -oslo_policy.tests.test_generator.GeneratePolicyTestCase.test_merged_rules -oslo_policy.tests.test_generator.GeneratePolicyTestCase.test_merged_rules ... ok -oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_generate_loadable_json -oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_generate_loadable_json ... ok -oslo_policy.tests.test_opts.OptsTestCase.test_set_defaults_policy_file -oslo_policy.tests.test_opts.OptsTestCase.test_set_defaults_policy_file ... ok -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_oneele -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_oneele ... ok -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_zeroele -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_zeroele ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_or_expr -oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_or_expr ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_two -oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_two ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_wrap_check -oslo_policy.tests.test_parser.ParseStateTestCase.test_wrap_check ... ok -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_subclass -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_subclass ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_rule_is_parsed -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_rule_is_parsed ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_4 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_4 ... ok -oslo_policy.tests.test_generator.ListRedundantTestCase.test_matched_rules -oslo_policy.tests.test_generator.ListRedundantTestCase.test_matched_rules ... ok -oslo_policy.tests.test_parser.ParseCheckTestCase.test_true -oslo_policy.tests.test_parser.ParseCheckTestCase.test_true ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_shift -oslo_policy.tests.test_parser.ParseStateTestCase.test_shift ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_and_D -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_and_D ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_does_not_log_warning -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_does_not_log_warning ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_name -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_name ... ok -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_cyclical_rules -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_cyclical_rules ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload ... ok +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_json +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_json ... ok +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content ... ok +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_bare +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_bare ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_make_or_expr +oslo_policy.tests.test_parser.ParseStateTestCase.test_make_or_expr ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_1 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_1 ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_not_empty_list +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_not_empty_list ... ok +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule_raises +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule_raises ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_registered +oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_registered ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_overwrite_rules +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_overwrite_rules ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_set_rules +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_set_rules ... ok oslo_policy.tests.test_policy.RegisterCheckTestCase.test_register_check oslo_policy.tests.test_policy.RegisterCheckTestCase.test_register_check ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_check -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_check ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_name -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_name ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml_invalid_exc -oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml_invalid_exc ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_no_default -oslo_policy.tests.test_policy.RulesTestCase.test_no_default ... ok -oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_multiple_config_files -oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_multiple_config_files ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_with_default -oslo_policy.tests.test_policy.RulesTestCase.test_with_default ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_fail -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_fail ... ok -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_no_violations -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_no_violations ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_less_obvious +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_less_obvious ... ok +oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_scope_types +oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_scope_types ... ok +oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_single_config_file_no_base +oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_single_config_file_no_base ... ok +oslo_policy.tests.test_checks.AndCheckTestCase.test_init +oslo_policy.tests.test_checks.AndCheckTestCase.test_init ... ok +oslo_policy.tests.test_checks.AndCheckTestCase.test_rule_takes_current_rule +oslo_policy.tests.test_checks.AndCheckTestCase.test_rule_takes_current_rule ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_accept +oslo_policy.tests.test_checks.GenericCheckTestCase.test_accept ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entry_in_list_accepted +oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entry_in_list_accepted ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_no_key_match_in_target +oslo_policy.tests.test_checks.GenericCheckTestCase.test_no_key_match_in_target ... ok +oslo_policy.tests.test_checks.NotCheckTestCase.test_call_false +oslo_policy.tests.test_checks.NotCheckTestCase.test_call_false ... ok +oslo_policy.tests.test_checks.OrCheckTestCase.test_call_first_true +oslo_policy.tests.test_checks.OrCheckTestCase.test_call_first_true ... ok +oslo_policy.tests.test_checks.RoleCheckTestCase.test_reject +oslo_policy.tests.test_checks.RoleCheckTestCase.test_reject ... ok +oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_strings_in_target +oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_strings_in_target ... ok +oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_true +oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_true ... ok +oslo_policy.tests.test_parser.ParseCheckTestCase.test_check_default +oslo_policy.tests.test_parser.ParseCheckTestCase.test_check_default ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_result_unreduced +oslo_policy.tests.test_parser.ParseStateTestCase.test_result_unreduced ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C_or_D +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C_or_D ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_and_D +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_and_D ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_default_policy_file +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_default_policy_file ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_load_json_invalid_exc +oslo_policy.tests.test_policy.RulesTestCase.test_load_json_invalid_exc ... ok + +---------------------------------------------------------------------- +Ran 272 tests in 2.848s + +OK ++ python2-stestr slowest +Test id Runtime (s) +------------------------------------------------------------------------------------------------- ----------- +oslo_policy.tests.test_generator.GeneratePolicyTestCase.test_merged_rules 0.015 +oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_with_rule_in_argument 0.010 +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_generate_loadable_yaml 0.009 +oslo_policy.tests.test_generator.ListRedundantTestCase.test_matched_rules 0.008 +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_and_client_certs 0.008 +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_json 0.008 +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_strings_in_target 0.008 +oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_objects_in_target 0.007 +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_reject 0.007 +oslo_policy.tests.test_external.HttpCheckTestCase.test_accept 0.007 ++ rm -rf .stestr ++ for pyvers in ${PYTHONS} ${PYTHON3S} ++ '[' 3.7 = disabled ']' +++ echo 3.7 +++ cut -d. -f1 ++ PYMAJOR=3 ++ echo '===> Testing with python (python3)' +===> Testing with python (python3) ++ '[' 3 = 3 ']' +++ pwd ++ '[' -d /build/python-oslo.policy-1.38.1/debian/tmp/usr/lib/python3/dist-packages ']' ++ '[' -e .stestr.conf ']' ++ rm -rf .stestr ++ PYTHON=python3.7 ++ python3-stestr run --subunit ++ subunit2pyunit +oslo_policy.tests.test_checks.AndCheckTestCase.test_call_second_true +oslo_policy.tests.test_checks.AndCheckTestCase.test_call_second_true ... ok oslo_policy.tests.test_checks.FalseCheckTestCase.test_call oslo_policy.tests.test_checks.FalseCheckTestCase.test_call ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated_opts_registered -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated_opts_registered ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_mismatch +oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_mismatch ... ok + ERROR [oslo_policy._parser] Failed to understand rule foobar +Traceback (most recent call last): + File "/build/python-oslo.policy-1.38.1/oslo_policy/_parser.py", line 212, in _parse_check + kind, match = rule.split(':', 1) +ValueError: not enough values to unpack (expected 2, got 1) oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_literal_mismatch oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_literal_mismatch ... ok oslo_policy.tests.test_checks.GenericCheckTestCase.test_no_cred oslo_policy.tests.test_checks.GenericCheckTestCase.test_no_cred ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice_force -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice_force ... ok + ERROR [oslo_policy._parser] Failed to understand rule test rule +Traceback (most recent call last): + File "/build/python-oslo.policy-1.38.1/oslo_policy/_parser.py", line 340, in _parse_text_rule + return state.result + File "/build/python-oslo.policy-1.38.1/oslo_policy/_parser.py", line 141, in result + raise ValueError('Could not parse rule') +ValueError: Could not parse rule + WARNING [oslo_policy.policy] Policies ['foo', 'bar'] are part of a cyclical reference. + WARNING [oslo_policy.policy] Policies ['foo', 'bar'] are part of a cyclical reference. +oslo_policy.tests.test_checks.GenericCheckTestCase.test_missing_credentials_dictionary_lookup +oslo_policy.tests.test_checks.GenericCheckTestCase.test_missing_credentials_dictionary_lookup ... ok +oslo_policy.tests.test_external.HttpCheckTestCase.test_reject_with_rule_in_argument +oslo_policy.tests.test_external.HttpCheckTestCase.test_reject_with_rule_in_argument ... ok +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_policies_deprecated_for_removal +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_policies_deprecated_for_removal ... ok +oslo_policy.tests.test_parser.ParseCheckTestCase.test_bad_rule +oslo_policy.tests.test_parser.ParseCheckTestCase.test_bad_rule ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_and_expr +oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_and_expr ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_result_empty +oslo_policy.tests.test_parser.ParseStateTestCase.test_result_empty ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_2 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_2 ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_method +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_method ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_path +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_path ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_cred_mismatch +oslo_policy.tests.test_checks.GenericCheckTestCase.test_cred_mismatch ... ok oslo_policy.tests.test_checks.NotCheckTestCase.test_call_true oslo_policy.tests.test_checks.NotCheckTestCase.test_call_true ... ok -oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_description -oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_description ... ok -oslo_policy.tests.test_checks.OrCheckTestCase.test_call_all_false -oslo_policy.tests.test_checks.OrCheckTestCase.test_call_all_false ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_deep_credentials_dictionary_lookup -oslo_policy.tests.test_checks.GenericCheckTestCase.test_deep_credentials_dictionary_lookup ... ok -oslo_policy.tests.test_checks.TrueCheckTestCase.test_str -oslo_policy.tests.test_checks.TrueCheckTestCase.test_str ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entries_one_matches -oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entries_one_matches ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_nested_lists_accepted -oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_nested_lists_accepted ... ok -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_deprecated_policies_are_aliased_to_new_names -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_deprecated_policies_are_aliased_to_new_names ... ok -oslo_policy.tests.test_checks.OrCheckTestCase.test_init -oslo_policy.tests.test_checks.OrCheckTestCase.test_init ... ok -oslo_policy.tests.test_parser.ParseCheckTestCase.test_false -oslo_policy.tests.test_parser.ParseCheckTestCase.test_false ... ok -oslo_policy.tests.test_checks.TrueCheckTestCase.test_call -oslo_policy.tests.test_checks.TrueCheckTestCase.test_call ... ok -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_multi_multi -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_multi_multi ... ok -oslo_policy.tests.test_checks.CheckTestCase.test_str -oslo_policy.tests.test_checks.CheckTestCase.test_str ... ok -oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_true -oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_true ... ok -oslo_policy.tests.test_parser.ParseRuleTestCase.test_parse_rule_list -oslo_policy.tests.test_parser.ParseRuleTestCase.test_parse_rule_list ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_make_and_expr -oslo_policy.tests.test_parser.ParseStateTestCase.test_make_and_expr ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_mismatch -oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_mismatch ... ok +oslo_policy.tests.test_checks.NotCheckTestCase.test_str +oslo_policy.tests.test_checks.NotCheckTestCase.test_str ... ok +oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_true +oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_true ... ok +oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_call_with_no_arguments_raises_error +oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_call_with_no_arguments_raises_error ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_make_not_expr +oslo_policy.tests.test_parser.ParseStateTestCase.test_make_not_expr ... ok oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_multi oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_multi ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_3 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_3 ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_5 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_5 ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C_and_D +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C_and_D ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_logs_warning_when_overridden +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_logs_warning_when_overridden ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_context_objects +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_context_objects ... ok +oslo_policy.tests.test_checks.CheckTestCase.test_init +oslo_policy.tests.test_checks.CheckTestCase.test_init ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_literal_accept +oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_literal_accept ... ok + WARNING [oslo_policy.policy] Policies ['foo'] reference a rule that is not defined. + WARNING [oslo_policy.policy] Policies ['foo'] reference a rule that is not defined. +oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_missing_role_does_not_matches +oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_missing_role_does_not_matches ... ok oslo_policy.tests.test_checks.NotCheckTestCase.test_init oslo_policy.tests.test_checks.NotCheckTestCase.test_init ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_result_unreduced -oslo_policy.tests.test_parser.ParseStateTestCase.test_result_unreduced ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C ... ok -oslo_policy.tests.test_checks.OrCheckTestCase.test_call_second_true -oslo_policy.tests.test_checks.OrCheckTestCase.test_call_second_true ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_1 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_1 ... ok -oslo_policy.tests.test_policy.BaseCheckTypesTestCase.test_base_check_types_are_public -oslo_policy.tests.test_policy.BaseCheckTypesTestCase.test_base_check_types_are_public ... ok +oslo_policy.tests.test_checks.OrCheckTestCase.test_call_first_true +oslo_policy.tests.test_checks.OrCheckTestCase.test_call_first_true ... ok +oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_false +oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_false ... ok +oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_true +oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_true ... ok +oslo_policy.tests.test_parser.ParseCheckTestCase.test_check_default +oslo_policy.tests.test_parser.ParseCheckTestCase.test_check_default ... ok +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_multi +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_multi ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_or_D +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_or_D ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_4 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_4 ... ok oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_empty oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_empty ... ok -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_custom_exception -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_custom_exception ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_multiple_operations -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_multiple_operations ... ok -oslo_policy.tests.test_external.HttpCheckTestCase.test_accept -oslo_policy.tests.test_external.HttpCheckTestCase.test_accept ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_fail +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_fail ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_name +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_name ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_description_not_empty +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_description_not_empty ... ok oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_complex_cyclical_rules_true oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_complex_cyclical_rules_true ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_get_policy_path_raises_exc -oslo_policy.tests.test_policy.EnforcerTest.test_get_policy_path_raises_exc ... ok -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_and_client_certs -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_and_client_certs ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_opts_registered -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_opts_registered ... ok -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_cyclical_rules_raises -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_cyclical_rules_raises ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_call_map_context_attributes -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_call_map_context_attributes ... ok -oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_false -oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_false ... ok -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_empty_line_formatting -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_empty_line_formatting ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice -oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice_clear -oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice_clear ... ok -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content_stdout -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content_stdout ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_make_or_expr -oslo_policy.tests.test_parser.ParseStateTestCase.test_make_or_expr ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equal_subclass -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equal_subclass ... ok -oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_single_config_file_no_base -oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_single_config_file_no_base ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_role_check_matches -oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_role_check_matches ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_6 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_6 ... ok -oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_takes_current_rule -oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_takes_current_rule ... ok oslo_policy.tests.test_checks.RoleCheckTestCase.test_no_roles_case oslo_policy.tests.test_checks.RoleCheckTestCase.test_no_roles_case ... ok -oslo_policy.tests.test_checks.RoleCheckTestCase.test_reject -oslo_policy.tests.test_checks.RoleCheckTestCase.test_reject ... ok -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_rule_not_exist_not_empty_policy_file -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_rule_not_exist_not_empty_policy_file ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_description_not_empty -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_description_not_empty ... ok -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_policies_deprecated_for_removal -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_policies_deprecated_for_removal ... ok +oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_missing +oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_missing ... ok +oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_objects_in_target +oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_objects_in_target ... ok +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_objects_in_target +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_objects_in_target ... ok +oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_true +oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_true ... ok +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content ... ok oslo_policy.tests.test_parser.ParseListRuleTestCase.test_multi_oneele oslo_policy.tests.test_parser.ParseListRuleTestCase.test_multi_oneele ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_rejects_non_context_objects -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_rejects_non_context_objects ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice_force -oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice_force ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_result_unreduced +oslo_policy.tests.test_parser.ParseStateTestCase.test_result_unreduced ... ok + ERROR [oslo_policy._parser] No handler for matches of kind no + WARNING [oslo_policy.policy] Policies ['foo'] reference a rule that is not defined. + WARNING [oslo_policy.policy] Policies ['foo'] reference a rule that is not defined. +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_1 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_1 ... ok +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_default +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_default ... ok +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_rule_not_exist_not_empty_policy_file +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_rule_not_exist_not_empty_policy_file ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_does_not_log_warning +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_does_not_log_warning ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_must_include_deprecated_reason +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_must_include_deprecated_reason ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories_opts_registered +oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories_opts_registered ... ok +oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_operations +oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_operations ... ok +oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_scope_types +oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_scope_types ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_default_policy_file +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_default_policy_file ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_set_rules_type +oslo_policy.tests.test_policy.EnforcerTest.test_set_rules_type ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_name +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_name ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_init_basic +oslo_policy.tests.test_policy.RulesTestCase.test_init_basic ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml_invalid_exc +oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml_invalid_exc ... ok +oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_minimal +oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_minimal ... ok +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_cyclical_rules +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_cyclical_rules ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice_force +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice_force ... ok +oslo_policy.tests.test_checks.AndCheckTestCase.test_init +oslo_policy.tests.test_checks.AndCheckTestCase.test_init ... ok +oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check_decorator +oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check_decorator ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_deep_credentials_dictionary_lookup +oslo_policy.tests.test_checks.GenericCheckTestCase.test_deep_credentials_dictionary_lookup ... ok +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept ... ok +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_zeroele +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_zeroele ... ok oslo_policy.tests.test_parser.ParseRuleTestCase.test_parse_rule_string oslo_policy.tests.test_parser.ParseRuleTestCase.test_parse_rule_string ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_short +oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_short ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_or_D +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_or_D ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_call_map_context_attributes +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_call_map_context_attributes ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_rejects_non_context_objects +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_rejects_non_context_objects ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_default_rule +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_default_rule ... ok oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_scope_type_strings_fails oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_scope_type_strings_fails ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_make_not_expr -oslo_policy.tests.test_parser.ParseStateTestCase.test_make_not_expr ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_subclass +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_subclass ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_load_json +oslo_policy.tests.test_policy.RulesTestCase.test_load_json ... ok +oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_takes_current_rule +oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_takes_current_rule ... ok +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_json +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_json ... ok +oslo_policy.tests.test_checks.AndCheckTestCase.test_str +oslo_policy.tests.test_checks.AndCheckTestCase.test_str ... ok +oslo_policy.tests.test_checks.AndCheckTestCase.test_rule_takes_current_rule +oslo_policy.tests.test_checks.AndCheckTestCase.test_rule_takes_current_rule ... ok +oslo_policy.tests.test_checks.CheckTestCase.test_str +oslo_policy.tests.test_checks.CheckTestCase.test_str ... ok +oslo_policy.tests.test_checks.OrCheckTestCase.test_add_check +oslo_policy.tests.test_checks.OrCheckTestCase.test_add_check ... ok +oslo_policy.tests.test_checks.RoleCheckTestCase.test_reject +oslo_policy.tests.test_checks.RoleCheckTestCase.test_reject ... ok +oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_with_rule_in_argument +oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_with_rule_in_argument ... ok +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_strings_in_target +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_strings_in_target ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_entry_not_in_list_rejected +oslo_policy.tests.test_checks.GenericCheckTestCase.test_entry_not_in_list_rejected ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_role_check_matches +oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_role_check_matches ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entry_in_nested_list_accepted +oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entry_in_nested_list_accepted ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_no_key_match_in_target +oslo_policy.tests.test_checks.GenericCheckTestCase.test_no_key_match_in_target ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_single_entry_in_list_accepted +oslo_policy.tests.test_checks.GenericCheckTestCase.test_single_entry_in_list_accepted ... ok +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_oneele +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_oneele ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_shifts +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_shifts ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_check_string +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_check_string ... ok +oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_load_directory +oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_load_directory ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_registered +oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_registered ... ok +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_cert +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_cert ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_subclassed_context_objects +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_subclassed_context_objects ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_consolidates_context_attributes_with_creds +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_consolidates_context_attributes_with_creds ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_accept +oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_accept ... ok +oslo_policy.tests.test_checks.NotCheckTestCase.test_call_false +oslo_policy.tests.test_checks.NotCheckTestCase.test_call_false ... ok +oslo_policy.tests.test_checks.OrCheckTestCase.test_call_second_true +oslo_policy.tests.test_checks.OrCheckTestCase.test_call_second_true ... ok +oslo_policy.tests.test_checks.RoleCheckTestCase.test_accept +oslo_policy.tests.test_checks.RoleCheckTestCase.test_accept ... ok +oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_false +oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_false ... ok +oslo_policy.tests.test_generator.GeneratePolicyTestCase.test_merged_rules +oslo_policy.tests.test_generator.GeneratePolicyTestCase.test_merged_rules ... ok +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_deprecated_policies_are_aliased_to_new_names +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_deprecated_policies_are_aliased_to_new_names ... ok +oslo_policy.tests.test_parser.ParseCheckTestCase.test_no_handler +oslo_policy.tests.test_parser.ParseCheckTestCase.test_no_handler ... ok +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_generate_loadable_yaml +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_generate_loadable_yaml ... ok +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_multi_multi +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_multi_multi ... ok +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_bare +oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_bare ... ok +oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_parse_state_meta +oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_parse_state_meta ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_init +oslo_policy.tests.test_parser.ParseStateTestCase.test_init ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_make_or_expr +oslo_policy.tests.test_parser.ParseStateTestCase.test_make_or_expr ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_6 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_6 ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_get_policy_path_raises_exc +oslo_policy.tests.test_policy.EnforcerTest.test_get_policy_path_raises_exc ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_non_reversible_check +oslo_policy.tests.test_policy.EnforcerTest.test_non_reversible_check ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_less_obvious +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_less_obvious ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated_opts_registered +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated_opts_registered ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice_changed +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice_changed ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories +oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories ... ok oslo_policy.tests.test_policy.RulesTestCase.test_load_json_invalid_exc oslo_policy.tests.test_policy.RulesTestCase.test_load_json_invalid_exc ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C_and_D -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C_and_D ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_or_D -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_or_D ... ok +oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_single_config_file_no_base +oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_single_config_file_no_base ... ok +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_empty_line_formatting +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_empty_line_formatting ... ok +oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_raises_error +oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_raises_error ... ok +oslo_policy.tests.test_parser.ParseRuleTestCase.test_parse_rule_list +oslo_policy.tests.test_parser.ParseRuleTestCase.test_parse_rule_list ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_shift +oslo_policy.tests.test_parser.ParseStateTestCase.test_shift ... ok oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_2 oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_2 ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_not_empty_list -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_not_empty_list ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_policy_file -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_policy_file ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice ... ok -oslo_policy.tests.test_checks.CheckTestCase.test_init -oslo_policy.tests.test_checks.CheckTestCase.test_init ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_and_D +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_and_D ... ok +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_custom_exception +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_custom_exception ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_rule_requires_deprecated_rule_object +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_rule_requires_deprecated_rule_object ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_multiple_operations +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_multiple_operations ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_register_twice_raises +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_register_twice_raises ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory_opts_registered +oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory_opts_registered ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_map_context_attributes_populated_system +oslo_policy.tests.test_policy.EnforcerTest.test_map_context_attributes_populated_system ... ok oslo_policy.tests.test_policy.EnforcerTest.test_rule_with_check oslo_policy.tests.test_policy.EnforcerTest.test_rule_with_check ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entry_in_nested_list_accepted -oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entry_in_nested_list_accepted ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_load_json_deprecated -oslo_policy.tests.test_policy.RulesTestCase.test_load_json_deprecated ... ok -oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_false -oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_false ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_str -oslo_policy.tests.test_policy.RulesTestCase.test_str ... ok -oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_json -oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_json ... ok -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_generate_loadable_yaml -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_generate_loadable_yaml ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_short -oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_short ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_result -oslo_policy.tests.test_parser.ParseStateTestCase.test_result ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C ... ok +oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_multiple_config_files +oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_multiple_config_files ... ok oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C_or_D oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C_or_D ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_for_removal_must_include_deprecated_since +oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_for_removal_must_include_deprecated_since ... ok oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_must_include_deprecated_since oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_must_include_deprecated_since ... ok -oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_load_directory -oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_load_directory ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_with_overwrite -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_with_overwrite ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_contain_operations +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_contain_operations ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_with_overwrite_opts_registered +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_with_overwrite_opts_registered ... ok oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_without_overwrite oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_without_overwrite ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_dir_caching_with_files_same_overwrite_false_opts_reg -oslo_policy.tests.test_policy.EnforcerTest.test_load_dir_caching_with_files_same_overwrite_false_opts_reg ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_non_reversible_check -oslo_policy.tests.test_policy.EnforcerTest.test_non_reversible_check ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_set_rules_type -oslo_policy.tests.test_policy.EnforcerTest.test_set_rules_type ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_from_dict -oslo_policy.tests.test_policy.RulesTestCase.test_from_dict ... ok -oslo_policy.tests.test_checks.AndCheckTestCase.test_rule_does_not_take_current_rule -oslo_policy.tests.test_checks.AndCheckTestCase.test_rule_does_not_take_current_rule ... ok -oslo_policy.tests.test_external.HttpCheckTestCase.test_reject -oslo_policy.tests.test_external.HttpCheckTestCase.test_reject ... ok -oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content_stdout -oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content_stdout ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_and_expr -oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_and_expr ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_init -oslo_policy.tests.test_parser.ParseStateTestCase.test_init ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_and_D -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_and_D ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C_and_D -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C_and_D ... ok -oslo_policy.tests.test_parser.ParseTokenizeTestCase.test_tokenize -oslo_policy.tests.test_parser.ParseTokenizeTestCase.test_tokenize ... ok -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_no_rules -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_no_rules ... ok - WARNING [oslo_policy.policy] Policies [u'foo'] reference a rule that is not defined. - WARNING [oslo_policy.policy] Policies [u'foo'] reference a rule that is not defined. -oslo_policy.tests.test_checks.AndCheckTestCase.test_init -oslo_policy.tests.test_checks.AndCheckTestCase.test_init ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_be_list -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_be_list ... ok -oslo_policy.tests.test_checks.NotCheckTestCase.test_call_false -oslo_policy.tests.test_checks.NotCheckTestCase.test_call_false ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload_opts_registered +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload_opts_registered ... ok +oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_does_not_take_current_rule +oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_does_not_take_current_rule ... ok +oslo_policy.tests.test_checks.OrCheckTestCase.test_init +oslo_policy.tests.test_checks.OrCheckTestCase.test_init ... ok oslo_policy.tests.test_checks.OrCheckTestCase.test_rule_does_not_take_current_rule oslo_policy.tests.test_checks.OrCheckTestCase.test_rule_does_not_take_current_rule ... ok -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule ... ok +oslo_policy.tests.test_checks.OrCheckTestCase.test_rule_takes_current_rule +oslo_policy.tests.test_checks.OrCheckTestCase.test_rule_takes_current_rule ... ok oslo_policy.tests.test_checks.OrCheckTestCase.test_str oslo_policy.tests.test_checks.OrCheckTestCase.test_str ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_registered -oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_registered ... ok -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_json -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_json ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated ... ok -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content ... ok - ERROR [oslo_policy._parser] Failed to understand rule foobar -Traceback (most recent call last): - File "oslo_policy/_parser.py", line 212, in _parse_check - kind, match = rule.split(':', 1) -ValueError: need more than 1 value to unpack -oslo_policy.tests.test_parser.ParseCheckTestCase.test_bad_rule -oslo_policy.tests.test_parser.ParseCheckTestCase.test_bad_rule ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_3 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_3 ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory_opts_registered -oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory_opts_registered ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_shifts -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_shifts ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_multiple_scope_types -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_multiple_scope_types ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_less_obvious -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_less_obvious ... ok +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify ... ok +oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_generate_loadable_json +oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_generate_loadable_json ... ok +oslo_policy.tests.test_generator.ListRedundantTestCase.test_matched_rules +oslo_policy.tests.test_generator.ListRedundantTestCase.test_matched_rules ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_wrap_check +oslo_policy.tests.test_parser.ParseStateTestCase.test_wrap_check ... ok oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_explicit oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_explicit ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_class -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_class ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_check_string -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_check_string ... ok +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule_raises +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule_raises ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_clear_opts_registered +oslo_policy.tests.test_policy.EnforcerTest.test_clear_opts_registered ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_file +oslo_policy.tests.test_policy.EnforcerTest.test_load_file ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory +oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_rule_is_parsed +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_rule_is_parsed ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_missing_default +oslo_policy.tests.test_policy.RulesTestCase.test_missing_default ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_with_default +oslo_policy.tests.test_policy.RulesTestCase.test_with_default ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_contain_method_and_path_only +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_contain_method_and_path_only ... ok +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule ... ok oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_load_rules oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_load_rules ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_context_objects -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_context_objects ... ok oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_without_overwrite_opts_registered oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_without_overwrite_opts_registered ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_load_empty_data -oslo_policy.tests.test_policy.RulesTestCase.test_load_empty_data ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml -oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml ... ok - ----------------------------------------------------------------------- -Ran 272 tests in 2.527s - -OK -+ python2-stestr slowest -Test id Runtime (s) ---------------------------------------------------------------------------------------------------------- ----------- -oslo_policy.tests.test_generator.GeneratePolicyTestCase.test_merged_rules 0.016 -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice_force 0.015 -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated_opts_registered 0.014 -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule_raises 0.010 -oslo_policy.tests.test_generator.ListRedundantTestCase.test_matched_rules 0.009 -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_no_violations 0.009 -oslo_policy.tests.test_checks.GenericCheckTestCase.test_deep_credentials_dictionary_lookup 0.008 -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify 0.008 -oslo_policy.tests.test_external.HttpCheckTestCase.test_accept 0.008 -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_strings_in_target 0.008 -+ rm -rf .stestr -+ [ 3.7 = disabled ] -+ echo 3.7 -+ cut -d. -f1 -+ PYMAJOR=3 -+ echo ===> Testing with python (python3) -===> Testing with python (python3) -+ [ 3 = 3 ] -+ pwd -+ [ -d /build/python-oslo.policy-1.38.1/debian/tmp/usr/lib/python3/dist-packages ] -+ [ -e .stestr.conf ] -+ rm -rf .stestr -+ PYTHON=python3.7 python3-stestr run --subunit -+ subunit2pyunit -oslo_policy.tests.test_checks.AndCheckTestCase.test_add_check -oslo_policy.tests.test_checks.AndCheckTestCase.test_add_check ... ok -oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_does_not_take_current_rule -oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_does_not_take_current_rule ... ok - WARNING [oslo_policy.policy] Policies ['foo'] reference a rule that is not defined. - WARNING [oslo_policy.policy] Policies ['foo'] reference a rule that is not defined. -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_policies_deprecated_for_removal -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_policies_deprecated_for_removal ... ok -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_multi_oneele -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_multi_oneele ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_or_expr -oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_or_expr ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_short -oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_short ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_result -oslo_policy.tests.test_parser.ParseStateTestCase.test_result ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_1 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_1 ... ok -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule ... ok -oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_load_directory -oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_load_directory ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_accept -oslo_policy.tests.test_checks.GenericCheckTestCase.test_accept ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_mismatch -oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_mismatch ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_with_overwrite -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_with_overwrite ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_set_rules +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_set_rules ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_update_rules +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_update_rules ... ok oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same ... ok -oslo_policy.tests.test_checks.OrCheckTestCase.test_rule_does_not_take_current_rule -oslo_policy.tests.test_checks.OrCheckTestCase.test_rule_does_not_take_current_rule ... ok -oslo_policy.tests.test_checks.OrCheckTestCase.test_str -oslo_policy.tests.test_checks.OrCheckTestCase.test_str ... ok -oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_true -oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_true ... ok -oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_parse_state_meta -oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_parse_state_meta ... ok -oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_reducer -oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_reducer ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice ... ok oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice_clear oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice_clear ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice_force -oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice_force ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_rule_is_parsed -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_rule_is_parsed ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_multiple_scope_types +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_multiple_scope_types ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_init +oslo_policy.tests.test_policy.RulesTestCase.test_init ... ok oslo_policy.tests.test_policy.RulesTestCase.test_load_empty_data oslo_policy.tests.test_policy.RulesTestCase.test_load_empty_data ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml_invalid_exc -oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml_invalid_exc ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entries_one_matches -oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entries_one_matches ... ok -oslo_policy.tests.test_checks.RoleCheckTestCase.test_no_roles_case -oslo_policy.tests.test_checks.RoleCheckTestCase.test_no_roles_case ... ok -oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_strings_in_target -oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_strings_in_target ... ok -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept ... ok -oslo_policy.tests.test_parser.ParseCheckTestCase.test_true -oslo_policy.tests.test_parser.ParseCheckTestCase.test_true ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_none -oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_none ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_result_empty -oslo_policy.tests.test_parser.ParseStateTestCase.test_result_empty ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_shift -oslo_policy.tests.test_parser.ParseStateTestCase.test_shift ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_and_D -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_and_D ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_6 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_6 ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_shifts -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_shifts ... ok -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_no_rules -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_no_rules ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_logs_warning_when_overridden -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_logs_warning_when_overridden ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_false -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_false ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_policy_file -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_policy_file ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_set_rules_type -oslo_policy.tests.test_policy.EnforcerTest.test_set_rules_type ... ok oslo_policy.tests.test_policy.RegisterCheckTestCase.test_register_check oslo_policy.tests.test_policy.RegisterCheckTestCase.test_register_check ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_check_string -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_check_string ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_does_not_log_warning -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_does_not_log_warning ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_must_include_deprecated_since -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_must_include_deprecated_since ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_clear_opts_registered -oslo_policy.tests.test_policy.EnforcerTest.test_clear_opts_registered ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_default_policy_file -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_default_policy_file ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml -oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_role_check_matches -oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_role_check_matches ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_no_key_match_in_target -oslo_policy.tests.test_checks.GenericCheckTestCase.test_no_key_match_in_target ... ok -oslo_policy.tests.test_checks.RoleCheckTestCase.test_accept -oslo_policy.tests.test_checks.RoleCheckTestCase.test_accept ... ok -oslo_policy.tests.test_external.HttpCheckTestCase.test_reject_with_rule_in_argument -oslo_policy.tests.test_external.HttpCheckTestCase.test_reject_with_rule_in_argument ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_ensure_scope_types_are_unique -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_ensure_scope_types_are_unique ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_check -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_check ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_missing_default -oslo_policy.tests.test_policy.RulesTestCase.test_missing_default ... ok -oslo_policy.tests.test_checks.FalseCheckTestCase.test_call -oslo_policy.tests.test_checks.FalseCheckTestCase.test_call ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_entry_not_in_list_rejected -oslo_policy.tests.test_checks.GenericCheckTestCase.test_entry_not_in_list_rejected ... ok -oslo_policy.tests.test_checks.OrCheckTestCase.test_init -oslo_policy.tests.test_checks.OrCheckTestCase.test_init ... ok -oslo_policy.tests.test_generator.GeneratePolicyTestCase.test_merged_rules -oslo_policy.tests.test_generator.GeneratePolicyTestCase.test_merged_rules ... ok -oslo_policy.tests.test_parser.ParseRuleTestCase.test_parse_rule_string -oslo_policy.tests.test_parser.ParseRuleTestCase.test_parse_rule_string ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_one -oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_one ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_4 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_4 ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_5 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_5 ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_path -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_path ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_not_empty_list -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_not_empty_list ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_from_dict +oslo_policy.tests.test_policy.RulesTestCase.test_from_dict ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_load_json_deprecated +oslo_policy.tests.test_policy.RulesTestCase.test_load_json_deprecated ... ok +oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_single_config_file +oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_single_config_file ... ok +oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check +oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check ... ok oslo_policy.tests.test_checks.RoleCheckTestCase.test_format_value oslo_policy.tests.test_checks.RoleCheckTestCase.test_format_value ... ok oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_json oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_json ... ok -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_empty_line_formatting -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_empty_line_formatting ... ok -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_no_violations -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_no_violations ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_policy_values_from_context -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_policy_values_from_context ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_register_twice_raises -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_register_twice_raises ... ok -oslo_policy.tests.test_policy.BaseCheckTypesTestCase.test_base_check_types_are_public -oslo_policy.tests.test_policy.BaseCheckTypesTestCase.test_base_check_types_are_public ... ok -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_custom_exception -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_custom_exception ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_for_removal_must_include_deprecated_since -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_for_removal_must_include_deprecated_since ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_rule_requires_deprecated_rule_object -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_rule_requires_deprecated_rule_object ... ok -oslo_policy.tests.test_checks.AndCheckTestCase.test_call_all_false -oslo_policy.tests.test_checks.AndCheckTestCase.test_call_all_false ... ok +oslo_policy.tests.test_checks.AndCheckTestCase.test_add_check +oslo_policy.tests.test_checks.AndCheckTestCase.test_add_check ... ok +oslo_policy.tests.test_checks.AndCheckTestCase.test_call_first_true +oslo_policy.tests.test_checks.AndCheckTestCase.test_call_first_true ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_accept +oslo_policy.tests.test_checks.GenericCheckTestCase.test_accept ... ok + WARNING [oslo_policy.policy] Policies ['foo', 'bar', 'baz'] are part of a cyclical reference. + WARNING [oslo_policy.policy] Policies ['foo', 'bar', 'baz'] are part of a cyclical reference. +oslo_policy.tests.test_checks.TrueCheckTestCase.test_call +oslo_policy.tests.test_checks.TrueCheckTestCase.test_call ... ok +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_and_client_certs +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_and_client_certs ... ok +oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_strings_in_target +oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_strings_in_target ... ok +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content_stdout +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content_stdout ... ok +oslo_policy.tests.test_parser.ParseCheckTestCase.test_true +oslo_policy.tests.test_parser.ParseCheckTestCase.test_true ... ok +oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_reducer +oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_reducer ... ok +oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content_stdout +oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content_stdout ... ok +oslo_policy.tests.test_opts.OptsTestCase.test_set_defaults_policy_file +oslo_policy.tests.test_opts.OptsTestCase.test_set_defaults_policy_file ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_or_expr +oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_or_expr ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_make_and_expr +oslo_policy.tests.test_parser.ParseStateTestCase.test_make_and_expr ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C_and_D +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C_and_D ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entries_one_matches +oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entries_one_matches ... ok oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entry_in_list_accepted oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entry_in_list_accepted ... ok -oslo_policy.tests.test_checks.OrCheckTestCase.test_add_check -oslo_policy.tests.test_checks.OrCheckTestCase.test_add_check ... ok -oslo_policy.tests.test_checks.OrCheckTestCase.test_pop_check -oslo_policy.tests.test_checks.OrCheckTestCase.test_pop_check ... ok -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_cert -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_cert ... ok -oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_false -oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_false ... ok - ERROR [oslo_policy._parser] No handler for matches of kind no -oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_multi -oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_multi ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_result_unreduced -oslo_policy.tests.test_parser.ParseStateTestCase.test_result_unreduced ... ok +oslo_policy.tests.test_checks.TrueCheckTestCase.test_str +oslo_policy.tests.test_checks.TrueCheckTestCase.test_str ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_result +oslo_policy.tests.test_parser.ParseStateTestCase.test_result ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C ... ok oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C_or_D oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C_or_D ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_1 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_1 ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_2 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_2 ... ok -oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check_decorator -oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check_decorator ... ok -oslo_policy.tests.test_checks.CheckTestCase.test_init -oslo_policy.tests.test_checks.CheckTestCase.test_init ... ok -oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_with_rule_in_argument -oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_with_rule_in_argument ... ok -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_objects_in_target -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_objects_in_target ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_contain_operations -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_contain_operations ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_1 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_1 ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C ... ok +oslo_policy.tests.test_policy.BaseCheckTypesTestCase.test_base_check_types_are_public +oslo_policy.tests.test_policy.BaseCheckTypesTestCase.test_base_check_types_are_public ... ok +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_complex_cyclical_rules_false +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_complex_cyclical_rules_false ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_with_overwrite +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_with_overwrite ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_dir_caching_with_files_same_overwrite_false_opts_reg +oslo_policy.tests.test_policy.EnforcerTest.test_load_dir_caching_with_files_same_overwrite_false_opts_reg ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_ensure_scope_types_are_unique +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_ensure_scope_types_are_unique ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equal_subclass +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equal_subclass ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_obvious +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_obvious ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_no_default +oslo_policy.tests.test_policy.RulesTestCase.test_no_default ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_2 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_2 ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C ... ok +oslo_policy.tests.test_parser.ParseTokenizeTestCase.test_tokenize +oslo_policy.tests.test_parser.ParseTokenizeTestCase.test_tokenize ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_not_registered +oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_not_registered ... ok +oslo_policy.tests.test_checks.AndCheckTestCase.test_call_all_false +oslo_policy.tests.test_checks.AndCheckTestCase.test_call_all_false ... ok +oslo_policy.tests.test_checks.FalseCheckTestCase.test_str +oslo_policy.tests.test_checks.FalseCheckTestCase.test_str ... ok +oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_nested_lists_accepted +oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_nested_lists_accepted ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_retrieval +oslo_policy.tests.test_policy.RulesTestCase.test_retrieval ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_str_true +oslo_policy.tests.test_policy.RulesTestCase.test_str_true ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_7 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_7 ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_3 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_3 ... ok +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_with_rule +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_with_rule ... ok oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_be_list oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_be_list ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories_opts_registered -oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories_opts_registered ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_init_basic -oslo_policy.tests.test_policy.RulesTestCase.test_init_basic ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_load_json_deprecated -oslo_policy.tests.test_policy.RulesTestCase.test_load_json_deprecated ... ok -oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_single_config_file_no_base -oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_single_config_file_no_base ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_name -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_name ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_without_overwrite -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_without_overwrite ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_without_overwrite_opts_registered -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_without_overwrite_opts_registered ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_default_rule_name +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_default_rule_name ... ok oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same_opts_registered oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same_opts_registered ... ok -oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_description -oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_description ... ok -oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_scope_types -oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_scope_types ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated_opts_registered -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated_opts_registered ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_obvious -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_obvious ... ok -oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_operations -oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_operations ... ok -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_generate_loadable_yaml -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_generate_loadable_yaml ... ok -oslo_policy.tests.test_parser.ParseCheckTestCase.test_false -oslo_policy.tests.test_parser.ParseCheckTestCase.test_false ... ok -oslo_policy.tests.test_parser.ParseCheckTestCase.test_no_handler -oslo_policy.tests.test_parser.ParseCheckTestCase.test_no_handler ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_two -oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_two ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C_and_D -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C_and_D ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_empty -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_empty ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_description_not_empty -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_description_not_empty ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_multiple_operations -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_multiple_operations ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_clear -oslo_policy.tests.test_policy.EnforcerTest.test_clear ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_consolidates_context_attributes_with_creds -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_consolidates_context_attributes_with_creds ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice_changed -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice_changed ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory_opts_registered -oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory_opts_registered ... ok + WARNING [oslo_policy.policy] Policies ['foo', 'bar'] are part of a cyclical reference. + WARNING [oslo_policy.policy] Policies ['foo', 'bar'] are part of a cyclical reference. +oslo_policy.tests.test_policy.EnforcerTest.test_load_file_opts_registered +oslo_policy.tests.test_policy.EnforcerTest.test_load_file_opts_registered ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_policy_dirs_with_non_directory +oslo_policy.tests.test_policy.EnforcerTest.test_load_policy_dirs_with_non_directory ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice_force +oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice_force ... ok oslo_policy.tests.test_policy.RuleDefaultTestCase.test_str oslo_policy.tests.test_policy.RuleDefaultTestCase.test_str ... ok -oslo_policy.tests.test_checks.AndCheckTestCase.test_call_second_true -oslo_policy.tests.test_checks.AndCheckTestCase.test_call_second_true ... ok -oslo_policy.tests.test_checks.AndCheckTestCase.test_rule_takes_current_rule -oslo_policy.tests.test_checks.AndCheckTestCase.test_rule_takes_current_rule ... ok -oslo_policy.tests.test_checks.AndCheckTestCase.test_str -oslo_policy.tests.test_checks.AndCheckTestCase.test_str ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_deep_credentials_dictionary_lookup -oslo_policy.tests.test_checks.GenericCheckTestCase.test_deep_credentials_dictionary_lookup ... ok -oslo_policy.tests.test_checks.OrCheckTestCase.test_rule_takes_current_rule -oslo_policy.tests.test_checks.OrCheckTestCase.test_rule_takes_current_rule ... ok -oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_false -oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_false ... ok +oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_description +oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_description ... ok +oslo_policy.tests.test_external.HttpCheckTestCase.test_reject +oslo_policy.tests.test_external.HttpCheckTestCase.test_reject ... ok +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_reject +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_reject ... ok +oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_false +oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_false ... ok +oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content +oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content ... ok oslo_policy.tests.test_parser.ParseListRuleTestCase.test_empty oslo_policy.tests.test_parser.ParseListRuleTestCase.test_empty ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_make_and_expr -oslo_policy.tests.test_parser.ParseStateTestCase.test_make_and_expr ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C ... ok -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_explicit -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_explicit ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_context_objects -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_context_objects ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_default_rule_name -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_default_rule_name ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_set_rules -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_set_rules ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_dir_caching_with_files_same_overwrite_false_opts_reg -oslo_policy.tests.test_policy.EnforcerTest.test_load_dir_caching_with_files_same_overwrite_false_opts_reg ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories -oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_map_context_attributes_populated_system -oslo_policy.tests.test_policy.EnforcerTest.test_map_context_attributes_populated_system ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_init -oslo_policy.tests.test_policy.RulesTestCase.test_init ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_none +oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_none ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_one +oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_one ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_clear +oslo_policy.tests.test_policy.EnforcerTest.test_clear ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_false +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_false ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload ... ok +oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_two +oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_two ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_8 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_8 ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same_but_overwrite_false +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same_but_overwrite_false ... ok +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_no_rules +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_no_rules ... ok oslo_policy.tests.test_checks.AndCheckTestCase.test_rule_does_not_take_current_rule oslo_policy.tests.test_checks.AndCheckTestCase.test_rule_does_not_take_current_rule ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_cred_mismatch -oslo_policy.tests.test_checks.GenericCheckTestCase.test_cred_mismatch ... ok oslo_policy.tests.test_checks.OrCheckTestCase.test_call_all_false oslo_policy.tests.test_checks.OrCheckTestCase.test_call_all_false ... ok -oslo_policy.tests.test_checks.OrCheckTestCase.test_call_first_true -oslo_policy.tests.test_checks.OrCheckTestCase.test_call_first_true ... ok +oslo_policy.tests.test_checks.OrCheckTestCase.test_pop_check +oslo_policy.tests.test_checks.OrCheckTestCase.test_pop_check ... ok oslo_policy.tests.test_external.HttpCheckTestCase.test_accept oslo_policy.tests.test_external.HttpCheckTestCase.test_accept ... ok -oslo_policy.tests.test_external.HttpCheckTestCase.test_reject -oslo_policy.tests.test_external.HttpCheckTestCase.test_reject ... ok -oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content_stdout -oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content_stdout ... ok -oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_raises_error -oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_raises_error ... ok -oslo_policy.tests.test_parser.ParseRuleTestCase.test_parse_rule_list -oslo_policy.tests.test_parser.ParseRuleTestCase.test_parse_rule_list ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_wrap_check -oslo_policy.tests.test_parser.ParseStateTestCase.test_wrap_check ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_contain_method_and_path_only -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_contain_method_and_path_only ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_opts_registered -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_opts_registered ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice_force -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice_force ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_file_opts_registered -oslo_policy.tests.test_policy.EnforcerTest.test_load_file_opts_registered ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_less_obvious -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_less_obvious ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_with_default -oslo_policy.tests.test_policy.RulesTestCase.test_with_default ... ok -oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_minimal -oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_minimal ... ok -oslo_policy.tests.test_checks.FalseCheckTestCase.test_str -oslo_policy.tests.test_checks.FalseCheckTestCase.test_str ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_single_entry_in_list_accepted -oslo_policy.tests.test_checks.GenericCheckTestCase.test_single_entry_in_list_accepted ... ok -oslo_policy.tests.test_checks.NotCheckTestCase.test_call_true -oslo_policy.tests.test_checks.NotCheckTestCase.test_call_true ... ok -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_json -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_json ... ok -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_and_client_certs -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_and_client_certs ... ok -oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content -oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content ... ok -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_multi_multi -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_multi_multi ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_make_not_expr -oslo_policy.tests.test_parser.ParseStateTestCase.test_make_not_expr ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_or_D -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_or_D ... ok -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_complex_cyclical_rules_true -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_complex_cyclical_rules_true ... ok - WARNING [oslo_policy.policy] Policies ['foo', 'bar'] are part of a cyclical reference. - WARNING [oslo_policy.policy] Policies ['foo', 'bar'] are part of a cyclical reference. +oslo_policy.tests.test_parser.ParseCheckTestCase.test_check +oslo_policy.tests.test_parser.ParseCheckTestCase.test_check ... ok oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_cyclical_rules_raises oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_cyclical_rules_raises ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice -oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_scope_type_strings_fails -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_scope_type_strings_fails ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_subclass -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_subclass ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_load_json -oslo_policy.tests.test_policy.RulesTestCase.test_load_json ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_no_default -oslo_policy.tests.test_policy.RulesTestCase.test_no_default ... ok -oslo_policy.tests.test_checks.AndCheckTestCase.test_init -oslo_policy.tests.test_checks.AndCheckTestCase.test_init ... ok -oslo_policy.tests.test_checks.NotCheckTestCase.test_call_false -oslo_policy.tests.test_checks.NotCheckTestCase.test_call_false ... ok -oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_takes_current_rule -oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_takes_current_rule ... ok -oslo_policy.tests.test_checks.RoleCheckTestCase.test_reject -oslo_policy.tests.test_checks.RoleCheckTestCase.test_reject ... ok -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_deprecated_policies_are_aliased_to_new_names -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_deprecated_policies_are_aliased_to_new_names ... ok - ERROR [oslo_policy._parser] Failed to understand rule foobar -Traceback (most recent call last): - File "/build/python-oslo.policy-1.38.1/oslo_policy/_parser.py", line 212, in _parse_check - kind, match = rule.split(':', 1) -ValueError: not enough values to unpack (expected 2, got 1) -oslo_policy.tests.test_parser.ParseCheckTestCase.test_bad_rule -oslo_policy.tests.test_parser.ParseCheckTestCase.test_bad_rule ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_init -oslo_policy.tests.test_parser.ParseStateTestCase.test_init ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_make_or_expr -oslo_policy.tests.test_parser.ParseStateTestCase.test_make_or_expr ... ok +oslo_policy.tests.test_parser.ParseCheckTestCase.test_false +oslo_policy.tests.test_parser.ParseCheckTestCase.test_false ... ok +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_no_violations +oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_no_violations ... ok oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_and_D oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_and_D ... ok - ERROR [oslo_policy._parser] Failed to understand rule test rule -Traceback (most recent call last): - File "/build/python-oslo.policy-1.38.1/oslo_policy/_parser.py", line 340, in _parse_text_rule - return state.result - File "/build/python-oslo.policy-1.38.1/oslo_policy/_parser.py", line 141, in result - raise ValueError('Could not parse rule') -ValueError: Could not parse rule -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_2 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_2 ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_fail -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_fail ... ok -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_with_rule -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_with_rule ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_method -oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_method ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_get_policy_path_raises_exc -oslo_policy.tests.test_policy.EnforcerTest.test_get_policy_path_raises_exc ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_non_reversible_check -oslo_policy.tests.test_policy.EnforcerTest.test_non_reversible_check ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_str_true -oslo_policy.tests.test_policy.RulesTestCase.test_str_true ... ok -oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_multiple_config_files -oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_multiple_config_files ... ok -oslo_policy.tests.test_checks.AndCheckTestCase.test_call_first_true -oslo_policy.tests.test_checks.AndCheckTestCase.test_call_first_true ... ok -oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check -oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check ... ok -oslo_policy.tests.test_checks.CheckTestCase.test_str -oslo_policy.tests.test_checks.CheckTestCase.test_str ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_literal_accept -oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_literal_accept ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_literal_mismatch -oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_literal_mismatch ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_accept -oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_accept ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_no_cred -oslo_policy.tests.test_checks.GenericCheckTestCase.test_no_cred ... ok -oslo_policy.tests.test_checks.OrCheckTestCase.test_call_second_true -oslo_policy.tests.test_checks.OrCheckTestCase.test_call_second_true ... ok -oslo_policy.tests.test_checks.TrueCheckTestCase.test_call -oslo_policy.tests.test_checks.TrueCheckTestCase.test_call ... ok -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_multi -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_multi ... ok -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_oneele -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_oneele ... ok -oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_and_expr -oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_and_expr ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_rejects_non_context_objects -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_rejects_non_context_objects ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_scope_types -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_scope_types ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equal_subclass -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equal_subclass ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_missing_role_does_not_matches -oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_missing_role_does_not_matches ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_missing_credentials_dictionary_lookup -oslo_policy.tests.test_checks.GenericCheckTestCase.test_missing_credentials_dictionary_lookup ... ok -oslo_policy.tests.test_checks.NotCheckTestCase.test_init -oslo_policy.tests.test_checks.NotCheckTestCase.test_init ... ok -oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_missing -oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_missing ... ok -oslo_policy.tests.test_opts.OptsTestCase.test_set_defaults_policy_file -oslo_policy.tests.test_opts.OptsTestCase.test_set_defaults_policy_file ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entry_in_nested_list_accepted -oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entry_in_nested_list_accepted ... ok -oslo_policy.tests.test_parser.ParseCheckTestCase.test_check_default -oslo_policy.tests.test_parser.ParseCheckTestCase.test_check_default ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C_and_D -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C_and_D ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_registered -oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_registered ... ok -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_reject -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_reject ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_subclassed_context_objects -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_subclassed_context_objects ... ok -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_strings_in_target -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_strings_in_target ... ok -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_call_map_context_attributes -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_call_map_context_attributes ... ok - WARNING [oslo_policy.policy] Policies ['foo', 'bar'] are part of a cyclical reference. - WARNING [oslo_policy.policy] Policies ['foo', 'bar'] are part of a cyclical reference. -oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_true -oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_true ... ok -oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_call_with_no_arguments_raises_error -oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_call_with_no_arguments_raises_error ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_with_overwrite_opts_registered -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_with_overwrite_opts_registered ... ok -oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_nested_lists_accepted -oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_nested_lists_accepted ... ok -oslo_policy.tests.test_checks.NotCheckTestCase.test_str -oslo_policy.tests.test_checks.NotCheckTestCase.test_str ... ok -oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_false -oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_false ... ok -oslo_policy.tests.test_checks.TrueCheckTestCase.test_str -oslo_policy.tests.test_checks.TrueCheckTestCase.test_str ... ok -oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_objects_in_target -oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_objects_in_target ... ok -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content_stdout -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content_stdout ... ok -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify ... ok +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_1 +oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_1 ... ok oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_overwrite_rules oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_overwrite_rules ... ok -oslo_policy.tests.test_parser.ParseCheckTestCase.test_check -oslo_policy.tests.test_parser.ParseCheckTestCase.test_check ... ok - WARNING [oslo_policy.policy] Policies ['foo'] reference a rule that is not defined. - WARNING [oslo_policy.policy] Policies ['foo'] reference a rule that is not defined. -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_8 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_8 ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C_or_D -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C_or_D ... ok -oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_true -oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_true ... ok - WARNING [oslo_policy.policy] Policies ['foo', 'bar', 'baz'] are part of a cyclical reference. - WARNING [oslo_policy.policy] Policies ['foo', 'bar', 'baz'] are part of a cyclical reference. -oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_generate_loadable_json -oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_generate_loadable_json ... ok -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_bare -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_bare ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_file -oslo_policy.tests.test_policy.EnforcerTest.test_load_file ... ok oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_be_list_of_dicts oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_be_list_of_dicts ... ok -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_cyclical_rules -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_cyclical_rules ... ok -oslo_policy.tests.test_generator.ListRedundantTestCase.test_matched_rules -oslo_policy.tests.test_generator.ListRedundantTestCase.test_matched_rules ... ok -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_zeroele -oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_zeroele ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_1 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_1 ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload_opts_registered -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload_opts_registered ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory -oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_7 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_7 ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_2 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_2 ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_policy_dirs_with_non_directory -oslo_policy.tests.test_policy.EnforcerTest.test_load_policy_dirs_with_non_directory ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_or_D -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_or_D ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_3 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_3 ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_3 -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_3 ... ok -oslo_policy.tests.test_parser.ParseTokenizeTestCase.test_tokenize -oslo_policy.tests.test_parser.ParseTokenizeTestCase.test_tokenize ... ok -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C -oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C ... ok -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_rule_not_exist_not_empty_policy_file -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_rule_not_exist_not_empty_policy_file ... ok -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_must_include_deprecated_reason -oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_must_include_deprecated_reason ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_default_rule -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_default_rule ... ok -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_default -oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_default ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_multiple_scope_types -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_multiple_scope_types ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_str -oslo_policy.tests.test_policy.RulesTestCase.test_str ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_rule_with_check -oslo_policy.tests.test_policy.EnforcerTest.test_rule_with_check ... ok -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule_raises -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule_raises ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_not_registered -oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_not_registered ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice +oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice ... ok +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_not_empty_list +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_not_empty_list ... ok oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_class oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_class ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_retrieval -oslo_policy.tests.test_policy.RulesTestCase.test_retrieval ... ok -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_complex_cyclical_rules_false -oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_complex_cyclical_rules_false ... ok -oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_load_rules -oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_load_rules ... ok oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_opts_registered oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_opts_registered ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_update_rules -oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_update_rules ... ok -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same_but_overwrite_false -oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same_but_overwrite_false ... ok -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_name -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_name ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_from_dict -oslo_policy.tests.test_policy.RulesTestCase.test_from_dict ... ok -oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_single_config_file -oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_single_config_file ... ok -oslo_policy.tests.test_policy.RulesTestCase.test_load_json_invalid_exc -oslo_policy.tests.test_policy.RulesTestCase.test_load_json_invalid_exc ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_policy_values_from_context +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_policy_values_from_context ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_policy_file +oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_policy_file ... ok +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_opts_registered +oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_opts_registered ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_scope_types +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_scope_types ... ok +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_check +oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_check ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml +oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml ... ok +oslo_policy.tests.test_policy.RulesTestCase.test_str +oslo_policy.tests.test_policy.RulesTestCase.test_str ... ok ---------------------------------------------------------------------- -Ran 272 tests in 2.413s +Ran 272 tests in 2.638s OK + python3-stestr slowest -Test id Runtime (s) ---------------------------------------------------------------------------------------- ----------- -oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_with_rule_in_argument 0.023 -oslo_policy.tests.test_generator.GeneratePolicyTestCase.test_merged_rules 0.014 -oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_false 0.012 -oslo_policy.tests.test_policy.RuleDefaultTestCase.test_str 0.012 -oslo_policy.tests.test_policy.EnforcerTest.test_set_rules_type 0.010 -oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_generate_loadable_yaml 0.010 -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_cert 0.010 -oslo_policy.tests.test_external.HttpCheckTestCase.test_reject_with_rule_in_argument 0.009 -oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_reject 0.009 -oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_json 0.008 +Test id Runtime (s) +------------------------------------------------------------------------------------------------------------- ----------- +oslo_policy.tests.test_generator.GeneratePolicyTestCase.test_merged_rules 0.030 +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_cert 0.020 +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_json 0.017 +oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_multiple_operations 0.013 +oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory_opts_registered 0.013 +oslo_policy.tests.test_policy.EnforcerTest.test_rule_with_check 0.012 +oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_deprecated_policies_are_aliased_to_new_names 0.012 +oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_custom_exception 0.012 +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept 0.011 +oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify 0.011 + rm -rf .stestr make[1]: Leaving directory '/build/python-oslo.policy-1.38.1' fakeroot debian/rules binary @@ -3147,19 +3186,20 @@ pkgos-dh_auto_install + PKGOS_USE_PY2=yes + PKGOS_USE_PY3=yes -+ dpkg-parsechangelog -SSource +++ dpkg-parsechangelog -SSource + SRC_PKG_NAME=python-oslo.policy -+ echo python-oslo.policy -+ sed s/python-// +++ echo python-oslo.policy +++ sed s/python-// + PY_MODULE_NAME=oslo.policy -+ [ yes = yes ] -+ pyversions -vr ++ '[' yes = yes ']' +++ pyversions -vr + PYTHONS=2.7 -+ [ yes = yes ] -+ py3versions -vr ++ '[' yes = yes ']' +++ py3versions -vr + PYTHON3S=3.7 -+ [ yes = yes ] -+ pwd ++ '[' yes = yes ']' ++ for pyvers in ${PYTHONS} +++ pwd + python2.7 setup.py install --install-layout=deb --root /build/python-oslo.policy-1.38.1/debian/python-oslo.policy running install [pbr] Generating AUTHORS @@ -3243,8 +3283,9 @@ Installing oslopolicy-checker script to /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin Installing oslopolicy-sample-generator script to /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin Installing oslopolicy-policy-generator script to /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin -+ [ yes = yes ] -+ pwd ++ '[' yes = yes ']' ++ for pyvers in ${PYTHON3S} +++ pwd + python3.7 setup.py install --install-layout=deb --root /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy running install [pbr] Generating AUTHORS @@ -3253,19 +3294,6 @@ running build_py creating build/lib creating build/lib/oslo_policy -creating build/lib/oslo_policy/tests -copying oslo_policy/tests/token_fixture.py -> build/lib/oslo_policy/tests -copying oslo_policy/tests/test_sphinxpolicygen.py -> build/lib/oslo_policy/tests -copying oslo_policy/tests/test_sphinxext.py -> build/lib/oslo_policy/tests -copying oslo_policy/tests/test_policy.py -> build/lib/oslo_policy/tests -copying oslo_policy/tests/test_parser.py -> build/lib/oslo_policy/tests -copying oslo_policy/tests/test_opts.py -> build/lib/oslo_policy/tests -copying oslo_policy/tests/test_generator.py -> build/lib/oslo_policy/tests -copying oslo_policy/tests/test_fixtures.py -> build/lib/oslo_policy/tests -copying oslo_policy/tests/test_external.py -> build/lib/oslo_policy/tests -copying oslo_policy/tests/test_checks.py -> build/lib/oslo_policy/tests -copying oslo_policy/tests/base.py -> build/lib/oslo_policy/tests -copying oslo_policy/tests/__init__.py -> build/lib/oslo_policy/tests copying oslo_policy/version.py -> build/lib/oslo_policy copying oslo_policy/sphinxpolicygen.py -> build/lib/oslo_policy copying oslo_policy/sphinxext.py -> build/lib/oslo_policy @@ -3280,6 +3308,19 @@ copying oslo_policy/_checks.py -> build/lib/oslo_policy copying oslo_policy/_cache_handler.py -> build/lib/oslo_policy copying oslo_policy/__init__.py -> build/lib/oslo_policy +creating build/lib/oslo_policy/tests +copying oslo_policy/tests/token_fixture.py -> build/lib/oslo_policy/tests +copying oslo_policy/tests/test_sphinxpolicygen.py -> build/lib/oslo_policy/tests +copying oslo_policy/tests/test_sphinxext.py -> build/lib/oslo_policy/tests +copying oslo_policy/tests/test_policy.py -> build/lib/oslo_policy/tests +copying oslo_policy/tests/test_parser.py -> build/lib/oslo_policy/tests +copying oslo_policy/tests/test_opts.py -> build/lib/oslo_policy/tests +copying oslo_policy/tests/test_generator.py -> build/lib/oslo_policy/tests +copying oslo_policy/tests/test_fixtures.py -> build/lib/oslo_policy/tests +copying oslo_policy/tests/test_external.py -> build/lib/oslo_policy/tests +copying oslo_policy/tests/test_checks.py -> build/lib/oslo_policy/tests +copying oslo_policy/tests/base.py -> build/lib/oslo_policy/tests +copying oslo_policy/tests/__init__.py -> build/lib/oslo_policy/tests running egg_info writing oslo.policy.egg-info/PKG-INFO writing dependency_links to oslo.policy.egg-info/dependency_links.txt @@ -3294,6 +3335,19 @@ creating /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3 creating /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages creating /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy +creating /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests +copying build/lib/oslo_policy/tests/__init__.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests +copying build/lib/oslo_policy/tests/base.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests +copying build/lib/oslo_policy/tests/test_checks.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests +copying build/lib/oslo_policy/tests/test_external.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests +copying build/lib/oslo_policy/tests/test_fixtures.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests +copying build/lib/oslo_policy/tests/test_generator.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests +copying build/lib/oslo_policy/tests/test_opts.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests +copying build/lib/oslo_policy/tests/test_parser.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests +copying build/lib/oslo_policy/tests/test_policy.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests +copying build/lib/oslo_policy/tests/test_sphinxext.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests +copying build/lib/oslo_policy/tests/test_sphinxpolicygen.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests +copying build/lib/oslo_policy/tests/token_fixture.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests copying build/lib/oslo_policy/__init__.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy copying build/lib/oslo_policy/_cache_handler.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy copying build/lib/oslo_policy/_checks.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy @@ -3308,19 +3362,18 @@ copying build/lib/oslo_policy/sphinxext.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy copying build/lib/oslo_policy/sphinxpolicygen.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy copying build/lib/oslo_policy/version.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy -creating /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests -copying build/lib/oslo_policy/tests/__init__.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests -copying build/lib/oslo_policy/tests/base.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests -copying build/lib/oslo_policy/tests/test_checks.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests -copying build/lib/oslo_policy/tests/test_external.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests -copying build/lib/oslo_policy/tests/test_fixtures.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests -copying build/lib/oslo_policy/tests/test_generator.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests -copying build/lib/oslo_policy/tests/test_opts.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests -copying build/lib/oslo_policy/tests/test_parser.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests -copying build/lib/oslo_policy/tests/test_policy.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests -copying build/lib/oslo_policy/tests/test_sphinxext.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests -copying build/lib/oslo_policy/tests/test_sphinxpolicygen.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests -copying build/lib/oslo_policy/tests/token_fixture.py -> /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests +byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/__init__.py to __init__.cpython-37.pyc +byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/base.py to base.cpython-37.pyc +byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/test_checks.py to test_checks.cpython-37.pyc +byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/test_external.py to test_external.cpython-37.pyc +byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/test_fixtures.py to test_fixtures.cpython-37.pyc +byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/test_generator.py to test_generator.cpython-37.pyc +byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/test_opts.py to test_opts.cpython-37.pyc +byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/test_parser.py to test_parser.cpython-37.pyc +byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/test_policy.py to test_policy.cpython-37.pyc +byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/test_sphinxext.py to test_sphinxext.cpython-37.pyc +byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/test_sphinxpolicygen.py to test_sphinxpolicygen.cpython-37.pyc +byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/token_fixture.py to token_fixture.cpython-37.pyc byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/__init__.py to __init__.cpython-37.pyc byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/_cache_handler.py to _cache_handler.cpython-37.pyc byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/_checks.py to _checks.cpython-37.pyc @@ -3335,18 +3388,6 @@ byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/sphinxext.py to sphinxext.cpython-37.pyc byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/sphinxpolicygen.py to sphinxpolicygen.cpython-37.pyc byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/version.py to version.cpython-37.pyc -byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/__init__.py to __init__.cpython-37.pyc -byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/base.py to base.cpython-37.pyc -byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/test_checks.py to test_checks.cpython-37.pyc -byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/test_external.py to test_external.cpython-37.pyc -byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/test_fixtures.py to test_fixtures.cpython-37.pyc -byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/test_generator.py to test_generator.cpython-37.pyc -byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/test_opts.py to test_opts.cpython-37.pyc -byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/test_parser.py to test_parser.cpython-37.pyc -byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/test_policy.py to test_policy.cpython-37.pyc -byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/test_sphinxext.py to test_sphinxext.cpython-37.pyc -byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/test_sphinxpolicygen.py to test_sphinxpolicygen.cpython-37.pyc -byte-compiling /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo_policy/tests/token_fixture.py to token_fixture.cpython-37.pyc running install_egg_info Copying oslo.policy.egg-info to /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/lib/python3/dist-packages/oslo.policy-1.38.1.egg-info Skipping SOURCES.txt @@ -3357,50 +3398,54 @@ Installing oslopolicy-sample-generator script to /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/bin /usr/lib/python3/dist-packages/pbr/packaging.py:407: EasyInstallDeprecationWarning: Use get_header header = easy_install.get_script_header("", executable, is_wininst) -+ pwd -+ rm -rf /build/python-oslo.policy-1.38.1/debian/python*/usr/lib/python*/dist-packages/*.pth -+ pwd -+ [ -d /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin ] -+ pwd -+ basename /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin/oslopolicy-checker +++ pwd ++ rm -rf '/build/python-oslo.policy-1.38.1/debian/python*/usr/lib/python*/dist-packages/*.pth' +++ pwd ++ '[' -d /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin ']' +++ pwd ++ for i in $(pwd)/debian/python-${PY_MODULE_NAME}/usr/bin/* +++ basename /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin/oslopolicy-checker + SCRIPT_NAME=oslopolicy-checker -+ [ yes = yes ] -+ pwd -+ pwd ++ '[' yes = yes ']' +++ pwd +++ pwd + mv /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin/oslopolicy-checker /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin/python2-oslopolicy-checker -+ [ yes = yes ] -+ pwd -+ pwd ++ '[' yes = yes ']' +++ pwd +++ pwd + mv /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/bin/oslopolicy-checker /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/bin/python3-oslopolicy-checker -+ basename /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin/oslopolicy-list-redundant ++ for i in $(pwd)/debian/python-${PY_MODULE_NAME}/usr/bin/* +++ basename /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin/oslopolicy-list-redundant + SCRIPT_NAME=oslopolicy-list-redundant -+ [ yes = yes ] -+ pwd -+ pwd ++ '[' yes = yes ']' +++ pwd +++ pwd + mv /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin/oslopolicy-list-redundant /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin/python2-oslopolicy-list-redundant -+ [ yes = yes ] -+ pwd -+ pwd ++ '[' yes = yes ']' +++ pwd +++ pwd + mv /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/bin/oslopolicy-list-redundant /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/bin/python3-oslopolicy-list-redundant -+ basename /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin/oslopolicy-policy-generator ++ for i in $(pwd)/debian/python-${PY_MODULE_NAME}/usr/bin/* +++ basename /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin/oslopolicy-policy-generator + SCRIPT_NAME=oslopolicy-policy-generator -+ [ yes = yes ] -+ pwd -+ pwd ++ '[' yes = yes ']' +++ pwd +++ pwd + mv /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin/oslopolicy-policy-generator /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin/python2-oslopolicy-policy-generator -+ [ yes = yes ] -+ pwd -+ pwd ++ '[' yes = yes ']' +++ pwd +++ pwd + mv /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/bin/oslopolicy-policy-generator /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/bin/python3-oslopolicy-policy-generator -+ basename /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin/oslopolicy-sample-generator ++ for i in $(pwd)/debian/python-${PY_MODULE_NAME}/usr/bin/* +++ basename /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin/oslopolicy-sample-generator + SCRIPT_NAME=oslopolicy-sample-generator -+ [ yes = yes ] -+ pwd -+ pwd ++ '[' yes = yes ']' +++ pwd +++ pwd + mv /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin/oslopolicy-sample-generator /build/python-oslo.policy-1.38.1/debian/python-oslo.policy/usr/bin/python2-oslopolicy-sample-generator -+ [ yes = yes ] -+ pwd -+ pwd ++ '[' yes = yes ']' +++ pwd +++ pwd + mv /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/bin/oslopolicy-sample-generator /build/python-oslo.policy-1.38.1/debian/python3-oslo.policy/usr/bin/python3-oslopolicy-sample-generator make[1]: Leaving directory '/build/python-oslo.policy-1.38.1' dh_installdocs -O--buildsystem=python_distutils @@ -3422,7 +3467,7 @@ reading sources... [ 21%] admin/policy-yaml-file reading sources... [ 28%] cli/index reading sources... [ 35%] configuration/index -dumping output to '/tmp/tmprqbl5v_e.rst' +dumping output to '/tmp/tmpu4t5x494.rst' reading sources... [ 42%] contributor/index reading sources... [ 50%] index reading sources... [ 57%] install/index @@ -3466,10 +3511,10 @@ The HTML pages are in debian/python-oslo.policy-doc/usr/share/doc/python-oslo.policy-doc/html. dh_sphinxdoc -O--buildsystem=python_distutils -dh_sphinxdoc: ignoring unknown JavaScript code: debian/python-oslo.policy-doc/usr/share/doc/python-oslo.policy-doc/html/_static/js/docs.js -dh_sphinxdoc: ignoring unknown JavaScript code: debian/python-oslo.policy-doc/usr/share/doc/python-oslo.policy-doc/html/_static/js/bootstrap.min.js dh_sphinxdoc: ignoring unknown JavaScript code: debian/python-oslo.policy-doc/usr/share/doc/python-oslo.policy-doc/html/_static/js/webui-popover.js dh_sphinxdoc: ignoring unknown JavaScript code: debian/python-oslo.policy-doc/usr/share/doc/python-oslo.policy-doc/html/_static/js/navigation.js +dh_sphinxdoc: ignoring unknown JavaScript code: debian/python-oslo.policy-doc/usr/share/doc/python-oslo.policy-doc/html/_static/js/docs.js +dh_sphinxdoc: ignoring unknown JavaScript code: debian/python-oslo.policy-doc/usr/share/doc/python-oslo.policy-doc/html/_static/js/bootstrap.min.js make[1]: Leaving directory '/build/python-oslo.policy-1.38.1' debian/rules override_dh_installchangelogs make[1]: Entering directory '/build/python-oslo.policy-1.38.1' @@ -3506,14 +3551,14 @@ cat /usr/share/openstack-pkg-tools/init-script-template >>$MYINIT.init ; \ pkgos-gen-systemd-unit $i ; \ done -+ ls -1 debian/*.init.in +++ ls -1 'debian/*.init.in' ls: cannot access 'debian/*.init.in': No such file or directory # If there's a service.in file, use that one instead of the generated one set -e ; set -x ; for i in `ls -1 debian/*.service.in`; do \ MYPKG=`echo $i | sed s/.service.in//` ; \ cp $MYPKG.service.in $MYPKG.service ; \ done -+ ls -1 debian/*.service.in +++ ls -1 'debian/*.service.in' ls: cannot access 'debian/*.service.in': No such file or directory # Generate the systemd unit if there's no already existing .service.in set -e ; set -x ; for i in `ls debian/*.init.in` ; do \ @@ -3522,7 +3567,7 @@ pkgos-gen-systemd-unit $i ; \ fi \ done -+ ls debian/*.init.in +++ ls 'debian/*.init.in' ls: cannot access 'debian/*.init.in': No such file or directory dh_installinit --error-handler=true make[1]: Leaving directory '/build/python-oslo.policy-1.38.1' @@ -3542,14 +3587,14 @@ else \ dh_gencontrol -- -T/build/python-oslo.policy-1.38.1/debian/debian_control_vars ; \ fi +dpkg-gencontrol: warning: package python-oslo.policy-doc: substitution variable ${sphinxdoc:Built-Using} unused, but is defined dpkg-gencontrol: warning: package python-oslo.policy: substitution variable ${python:Provides} unused, but is defined dpkg-gencontrol: warning: package python-oslo.policy: substitution variable ${python:Versions} unused, but is defined -dpkg-gencontrol: warning: package python-oslo.policy-doc: substitution variable ${sphinxdoc:Built-Using} unused, but is defined make[1]: Leaving directory '/build/python-oslo.policy-1.38.1' dh_md5sums -O--buildsystem=python_distutils dh_builddeb -O--buildsystem=python_distutils -dpkg-deb: building package 'python-oslo.policy-doc' in '../python-oslo.policy-doc_1.38.1-2_all.deb'. dpkg-deb: building package 'python-oslo.policy' in '../python-oslo.policy_1.38.1-2_all.deb'. +dpkg-deb: building package 'python-oslo.policy-doc' in '../python-oslo.policy-doc_1.38.1-2_all.deb'. dpkg-deb: building package 'python3-oslo.policy' in '../python3-oslo.policy_1.38.1-2_all.deb'. dpkg-genbuildinfo --build=binary dpkg-genchanges --build=binary >../python-oslo.policy_1.38.1-2_amd64.changes @@ -3559,12 +3604,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/3294199/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3294199/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/3031221 and its subdirectories -I: Current time: Fri Jan 13 06:06:03 -12 2023 -I: pbuilder-time-stamp: 1673633163 +I: removing directory /srv/workspace/pbuilder/3294199 and its subdirectories +I: Current time: Sun Dec 12 01:47:05 +14 2021 +I: pbuilder-time-stamp: 1639223225