diff options
author | Martin Milata <martin@martinmilata.cz> | 2019-11-25 00:01:06 +0100 |
---|---|---|
committer | Martin Milata <martin@martinmilata.cz> | 2019-11-25 00:01:51 +0100 |
commit | e290dd881c050919714686489101ec0d85b10e89 (patch) | |
tree | d31992997d4baa8b2822bbfc733d63eefcde6f2e /nixos/tests/wordpress.nix | |
parent | 35d99698aecce66f5b6597d3b8efa2b23e120636 (diff) |
nixosTests.wordpress: fix assertions
Diffstat (limited to 'nixos/tests/wordpress.nix')
-rw-r--r-- | nixos/tests/wordpress.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/tests/wordpress.nix b/nixos/tests/wordpress.nix index 64c533d70f428..b7449859f7e62 100644 --- a/nixos/tests/wordpress.nix +++ b/nixos/tests/wordpress.nix @@ -45,12 +45,12 @@ import ./make-test-python.nix ({ pkgs, ... }: with subtest("wordpress-init went through"): for site_name in site_names: info = machine.get_unit_info(f"wordpress-init-{site_name}") - assert info.Result == "success" + assert info["Result"] == "success" with subtest("secret keys are set"): - re.compile(r"^define.*NONCE_SALT.{64,};$") + pattern = re.compile(r"^define.*NONCE_SALT.{64,};$", re.MULTILINE) for site_name in site_names: - assert r.match( + assert pattern.search( machine.succeed(f"cat /var/lib/wordpress/{site_name}/secret-keys.php") ) ''; |