We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a027cc commit 370491bCopy full SHA for 370491b
testinfra/modules/service.py
@@ -42,6 +42,24 @@ def is_enabled(self):
42
"""Test if service is enabled"""
43
raise NotImplementedError
44
45
+ @property
46
+ def is_valid(self):
47
+ """Test if service is valid
48
+
49
+ This method is only available in the systemd implementation,
50
+ it will raise NotImplementedError in others implementation
51
+ """
52
+ raise NotImplementedError
53
54
55
+ def is_masked(self):
56
+ """Test if service is masked
57
58
59
+ it will raise NotImplementedError in others implementations
60
61
62
63
@classmethod
64
def get_module_class(cls, host):
65
if host.system_info.type == "linux":
0 commit comments