Open vashirov opened 3 months ago
Another test fails similarly
ERROR dirsrvtests/tests/suites/password/password_TPR_policy_test.py::test_TPR_replication_entry
https://github.com/389ds/389-ds-base/actions/runs/9444641584/job/26011110324#step:7:639
changelog_test.py::test_changelog_pagesize
:
try:
cmd = ["/usr/bin/db_stat", "-h", s1.ds_paths.db_home_dir, "-e"]
log.debug(f"DEBUG: Running {cmd}")
output = subprocess.check_output(cmd, universal_newlines=True, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
> self.log.error(f'Failed to gather db statistics {cmd}: "{e.output.decode()}')
E NameError: name 'self' is not defined
Also e.output
doesn't have decode()
, since it's already a string (through universal_newlines=True
).
Moreover, I think changelog_test.py::test_changelog_pagesize
should be skipped on LMDB, since it tries to run db_stat
on MDB database and it fails:
# /usr/bin/db_stat -h /var/lib/dirsrv/slapd-supplier1/db -e
db_stat: DB_ENV->open: /var/lib/dirsrv/slapd-supplier1/db: No such file or directory
changelog_test.py::test_cldump_files_removed
changelog_test.py::test_cldump_files_removed SKIPPED (does not work for prefix builds) [ 9%]
It tested cl-dump
perl script, which we no longer ship, I think it's safe to remove this test.
Issue Description
Tests error out during instance creation:
There is also a warning that should be fixed, as the comparison is incorrect: