root@b1:/usr/lib/python3/dist-packages/oslo_policy# PYTHONPATH=`realpath tests` ; python3 -m unittest tests.test_policy.EnforcerTest.test_load_directory_after_file_update
WARNING [oslo_policy.policy] Policies ['foo'] reference a rule that is not defined.
.
----------------------------------------------------------------------
Ran 1 test in 0.410s
root@b1:/usr/lib/python3/dist-packages/oslo_policy# PYTHONPATH=`realpath tests` ; python3 -m unittest tests.test_policy.EnforcerTest.test_load_directory_after_file_update
WARNING [oslo_policy.policy] Policies ['foo'] reference a rule that is not defined.
.
----------------------------------------------------------------------
Ran 1 test in 0.233s
root@b1:/usr/lib/python3/dist-packages/oslo_policy# PYTHONPATH=`realpath tests` ; python3 -m unittest tests.test_policy.EnforcerTest.test_load_directory_after_file_update
WARNING [oslo_policy.policy] Policies ['foo'] reference a rule that is not defined.
.
----------------------------------------------------------------------
Ran 1 test in 0.194s
root@b1:/usr/lib/python3/dist-packages/oslo_policy# PYTHONPATH=`realpath tests` ; python3 -m unittest tests.test_policy.EnforcerTest.test_load_directory_after_file_update
WARNING [oslo_policy.policy] Policies ['foo'] reference a rule that is not defined.
.
----------------------------------------------------------------------
Ran 1 test in 0.155s
@Dmitrii, thanks for the simple test.
Just did a quick run through of testing cloud archive packages on bionic. All passed the test:
root@b1:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
root@b1: /usr/lib/ python3/ dist-packages/ oslo_policy# apt policy python3-oslo.policy oslo.policy: 0ubuntu1~ cloud1 1~cloud0 1.0-0ubuntu1. 1~cloud0 500 ubuntu- cloud.archive. canonical. com/ubuntu bionic- proposed/ ussuri/ main amd64 Packages 3.2-0ubuntu1~ cloud1 500 ubuntu- cloud.archive. canonical. com/ubuntu bionic- proposed/ train/main amd64 Packages 1.1-0ubuntu1~ cloud1 500 ubuntu- cloud.archive. canonical. com/ubuntu bionic- proposed/ stein/main amd64 Packages 0ubuntu1~ cloud1 500 ubuntu- cloud.archive. canonical. com/ubuntu bionic- proposed/ rocky/main amd64 Packages dpkg/status 33.1-0ubuntu2 500 archive. ubuntu. com/ubuntu bionic- updates/ universe amd64 Packages 33.1-0ubuntu1 500 archive. ubuntu. com/ubuntu bionic/universe amd64 Packages
python3-
Installed: 1.38.1-
Candidate: 3.1.0-0ubuntu1.
Version table:
3.
500 http://
2.
500 http://
2.
500 http://
*** 1.38.1-
500 http://
100 /var/lib/
1.
500 http://
1.
500 http://
root@b1: /usr/lib/ python3/ dist-packages/ oslo_policy# PYTHONPATH= `realpath tests` ; python3 -m unittest tests.test_ policy. EnforcerTest. test_load_ directory_ after_file_ update policy] Policies ['foo'] reference a rule that is not defined. ------- ------- ------- ------- ------- ------- ------- ------- -------
WARNING [oslo_policy.
.
-------
Ran 1 test in 0.410s
OK
root@b1: /usr/lib/ python3/ dist-packages/ oslo_policy# apt policy python3-oslo.policy oslo.policy: cloud1 1~cloud0 1.0-0ubuntu1. 1~cloud0 500 ubuntu- cloud.archive. canonical. com/ubuntu bionic- proposed/ ussuri/ main amd64 Packages 3.2-0ubuntu1~ cloud1 500 ubuntu- cloud.archive. canonical. com/ubuntu bionic- proposed/ train/main amd64 Packages cloud1 500 ubuntu- cloud.archive. canonical. com/ubuntu bionic- proposed/ stein/main amd64 Packages dpkg/status 38.1-0ubuntu1~ cloud1 500 ubuntu- cloud.archive. canonical. com/ubuntu bionic- proposed/ rocky/main amd64 Packages 33.1-0ubuntu2 500 archive. ubuntu. com/ubuntu bionic- updates/ universe amd64 Packages 33.1-0ubuntu1 500 archive. ubuntu. com/ubuntu bionic/universe amd64 Packages
python3-
Installed: 2.1.1-0ubuntu1~
Candidate: 3.1.0-0ubuntu1.
Version table:
3.
500 http://
2.
500 http://
*** 2.1.1-0ubuntu1~
500 http://
100 /var/lib/
1.
500 http://
1.
500 http://
1.
500 http://
root@b1: /usr/lib/ python3/ dist-packages/ oslo_policy# PYTHONPATH= `realpath tests` ; python3 -m unittest tests.test_ policy. EnforcerTest. test_load_ directory_ after_file_ update policy] Policies ['foo'] reference a rule that is not defined. ------- ------- ------- ------- ------- ------- ------- ------- -------
WARNING [oslo_policy.
.
-------
Ran 1 test in 0.233s
OK
root@b1: /usr/lib/ python3/ dist-packages/ oslo_policy# apt policy python3-oslo.policy oslo.policy: cloud1 1~cloud0 1.0-0ubuntu1. 1~cloud0 500 ubuntu- cloud.archive. canonical. com/ubuntu bionic- proposed/ ussuri/ main amd64 Packages cloud1 500 ubuntu- cloud.archive. canonical. com/ubuntu bionic- proposed/ train/main amd64 Packages dpkg/status 1.1-0ubuntu1~ cloud1 500 ubuntu- cloud.archive. canonical. com/ubuntu bionic- proposed/ stein/main amd64 Packages 38.1-0ubuntu1~ cloud1 500 ubuntu- cloud.archive. canonical. com/ubuntu bionic- proposed/ rocky/main amd64 Packages 33.1-0ubuntu2 500 archive. ubuntu. com/ubuntu bionic- updates/ universe amd64 Packages 33.1-0ubuntu1 500 archive. ubuntu. com/ubuntu bionic/universe amd64 Packages
python3-
Installed: 2.3.2-0ubuntu1~
Candidate: 3.1.0-0ubuntu1.
Version table:
3.
500 http://
*** 2.3.2-0ubuntu1~
500 http://
100 /var/lib/
2.
500 http://
1.
500 http://
1.
500 http://
1.
500 http://
root@b1: /usr/lib/ python3/ dist-packages/ oslo_policy# PYTHONPATH= `realpath tests` ; python3 -m unittest tests.test_ policy. EnforcerTest. test_load_ directory_ after_file_ update policy] Policies ['foo'] reference a rule that is not defined. ------- ------- ------- ------- ------- ------- ------- ------- -------
WARNING [oslo_policy.
.
-------
Ran 1 test in 0.194s
OK
root@b1: /usr/lib/ python3/ dist-packages/ oslo_policy# apt policy python3-oslo.policy oslo.policy: 1~cloud0 1~cloud0 1~cloud0 500 ubuntu- cloud.archive. canonical. com/ubuntu bionic- proposed/ ussuri/ main amd64 Packages dpkg/status 3.2-0ubuntu1~ cloud1 500 ubuntu- cloud.archive. canonical. com/ubuntu bionic- proposed/ train/main amd64 Packages 1.1-0ubuntu1~ cloud1 500 ubuntu- cloud.archive. canonical. com/ubuntu bionic- proposed/ stein/main amd64 Packages 38.1-0ubuntu1~ cloud1 500 ubuntu- cloud.archive. canonical. com/ubuntu bionic- proposed/ rocky/main amd64 Packages 33.1-0ubuntu2 500 archive. ubuntu. com/ubuntu bionic- updates/ universe amd64 Packages 33.1-0ubuntu1 500 archive. ubuntu. com/ubuntu bionic/universe amd64 Packages
python3-
Installed: 3.1.0-0ubuntu1.
Candidate: 3.1.0-0ubuntu1.
Version table:
*** 3.1.0-0ubuntu1.
500 http://
100 /var/lib/
2.
500 http://
2.
500 http://
1.
500 http://
1.
500 http://
1.
500 http://
root@b1: /usr/lib/ python3/ dist-packages/ oslo_policy# PYTHONPATH= `realpath tests` ; python3 -m unittest tests.test_ policy. EnforcerTest. test_load_ directory_ after_file_ update policy] Policies ['foo'] reference a rule that is not defined. ------- ------- ------- ------- ------- ------- ------- ------- -------
WARNING [oslo_policy.
.
-------
Ran 1 test in 0.155s
OK