forked from Narcissus/pylibmeshctrl
Fixed test for remove device
This commit is contained in:
@@ -337,8 +337,13 @@ async def test_mesh_device(env):
|
||||
print("\ninfo remove_users_from_device_group: {}\n".format(r))
|
||||
assert (r[(await privileged_session.user_info())["_id"]]["success"]), "Failed to remove user from device group"
|
||||
|
||||
# Dunno how to test if this actually works, so just check for errors, I guess.
|
||||
admin_session.remove_devices(agent.nodeid, timeout=10)
|
||||
await admin_session.remove_devices(agent2.nodeid, timeout=10)
|
||||
try:
|
||||
await admin_session.device_info(agent2.nodeid, timeout=10)
|
||||
except ValueError:
|
||||
pass
|
||||
else:
|
||||
raise Exception("Device not deleted")
|
||||
|
||||
assert (await admin_session.remove_users_from_device(agent.nodeid, (await unprivileged_session.user_info())["_id"], timeout=10)), "Failed to remove user from device"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user