Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test test_check_users fails #53

Open
mcepl opened this issue Nov 6, 2024 · 0 comments
Open

test test_check_users fails #53

mcepl opened this issue Nov 6, 2024 · 0 comments

Comments

@mcepl
Copy link

mcepl commented Nov 6, 2024

While packaging the package for openSUSE/Factory, test test_check_users fails:

[   17s] =================================== FAILURES ===================================
[   17s] ________________________ ExamplesTest.test_check_users _________________________
[   17s] 
[   17s] self = <test_examples.ExamplesTest testMethod=test_check_users>
[   17s] 
[   17s]         def test_check_users(self):
[   17s] >           self._run_example('check_users.py', """\
[   17s]     USERS OK - \\d+ users logged in
[   17s]     users: .*
[   17s]     | total=\\d+;;;0 unique=\\d+;;;0
[   17s]     """)
[   17s] 
[   17s] tests/test_examples.py:39: 
[   17s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[   17s] tests/test_examples.py:25: in _run_example
[   17s]     self.assertTrue(re.match(regexp, out.decode()) is not None,
[   17s] E   AssertionError: False is not true : "USERS UNKNOWN - cannot determine number of users (who failed)
[   17s] E   " does not match "USERS OK - \d+ users logged in
[   17s] E   users: .*
[   17s] E   | total=\d+;;;0 unique=\d+;;;0
[   17s] E   "
[   17s] =============================== warnings summary ===============================
[   17s] tests/test_examples.py:2
[   17s]   /home/abuild/rpmbuild/BUILD/nagiosplugin-1.3.3/tests/test_examples.py:2: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
[   17s]     import pkg_resources
[   17s] 
[   17s] -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
[   17s] =========================== short test summary info ============================
[   17s] FAILED tests/test_examples.py::ExamplesTest::test_check_users - AssertionErro...
[   17s] =================== 1 failed, 140 passed, 1 warning in 1.34s ===================

Complete build log with all packages used and steps taken to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant