Current code has two issues:
- Parses dmesg for "xen:" messages. This will only work when initial kernel
messages are still available via dmesg. After some uptime other messages
(e.g. OOM) will have evicted the initial boot messages from the ringbuffer.
This leads to the weird situation that a grain changes depending on uptime.
- Checks if /sys/bus/xen/drivers/xenconsole is a file to verify it's running
under Xen. Unfortunately, this path is not a file but a directory.
This change swaps the order, first check for xenconsole being a directory, then
run dmesg as a fallback.
Unit tests are updated correctly to cover this case.
Drive-By: Correct docstring for xen tests. These have nothing to do with Ubuntu
Xenial
Drive-By: Fix indentation error in tests
nftables.build_rule does not correctly build nftables rules when saddr
or daddr is used due to missing whitespace. This PR adds the missing
whitespace to corretly build the rule.
* Adding preliminary support for Rocky.
* Adding changelog and test per MR guidence.
* Update test_core.py
Fix a clean up issue
Co-authored-by: Megan Wilhite <megan.wilhite@gmail.com>
Co-authored-by: Gareth J. Greenaway <gareth@wiked.org>
* surface reason why user could not be created
* init commit before tests
* add changelog file
* bruh
* fix docstring
* better handle on logic
* convert first test to pytest
* pre-commit
* add runs_on to test
* fix lint
* more fixes
* fix nix tests
* fix windows tests
* add extra check to not break other tests
* pre commit
* remove extra check
Co-authored-by: Joe Eacott <jeacott@vmware.com>
Co-authored-by: Sage the Rage <36676171+sagetherage@users.noreply.github.com>
- `allow_one_of()` raises an error if more than one of the allowed
parameters is supplied.
- `require_one_of()` operates the same as `allow_one_of()` but also
raises an error if none of the allowed parameters are supplied.
* Tests for existing postgres_user states. Basic usage and password-related.
* Fix minor failing tests in postgres_user.present
* Make postgres_group consistent with postgres_user
Related: #59028
* Add support for SCRAM-SHA-256 for PostgreSQL.
Fixes: #51217
* Some additional old postgres tests that are now redundant.
* Add postgres changelog entries.
* Update documentation for 3003 release
* Convert DB_ARGS constant to fixture
* Simplify six auto-removal
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
* filename_map.yml should still list pytests
* Another six removal simplification
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
Co-authored-by: Sage the Rage <36676171+sagetherage@users.noreply.github.com>
Co-authored-by: Gareth J. Greenaway <gareth@wiked.org>
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>