Add additional check for gshadow entry.
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
Reviewed-by: Dan Lavu <dlavu@redhat.com>
1. Create group
2. Delete group
:steps:
- 1. Group doesn't exist
+ 1. Check group entry
+ 2. Check gshadow entry
:expectedresults:
- 1. Group is not found
+ 1. group entry for the user doesn't exist
+ 2. gshadow entry for the user doesn't exist
:customerscenario: False
"""
shadow.groupadd("tgroup")
result = shadow.tools.getent.group("tgroup")
assert result is None, "Group should not be found"
+
+ result = shadow.tools.getent.gshadow("tgroup")
+ assert result is None, "Group should not be found"