1. Create group
2. Change GID
:steps:
- 1. Check group entry
- 2. Check gshadow entry
+ 1. Group exists and GID is 1001
:expectedresults:
- 1. group entry for the user exists and the attributes are correct
- 2. gshadow entry for the user exists and the attributes are correct
+ 1. Group is found and GID matches
:customerscenario: False
"""
shadow.groupadd("tgroup")
assert result is not None, "Group should be found"
assert result.name == "tgroup", "Incorrect groupname"
assert result.gid == 1001, "Incorrect GID"
-
- if shadow.host.features["gshadow"]:
- result = shadow.tools.getent.gshadow("tgroup")
- assert result is not None, "Group should be found"
- assert result.name == "tgroup", "Incorrect groupname"
- assert result.password == "!", "Incorrect password"