Add masked unit tests for enable and disable

This commit is contained in:
Tai Groot
2021-05-15 20:02:05 -07:00
parent 5865d30ada
commit 34f11bfcd1
4 changed files with 55 additions and 2 deletions

View File

@@ -25,4 +25,6 @@ var (
ErrBusFailure = errors.New("Failure to connect to bus, did you run in usermode as root?")
// ErrValueNotSet means an expected value is unavailable, but the unit may be running
ErrValueNotSet = errors.New("Value not set or unavailable")
// ErrMasked means a unit cannot be enabled because it is masked
ErrMasked = errors.New("Unit is masked")
)