Kinda added a test for remove device

This commit is contained in:
Josiah Baldwin
2025-09-26 15:20:25 -07:00
parent 9c7a8c39b0
commit 3bcedf5610

View File

@@ -336,6 +336,10 @@ async def test_mesh_device(env):
r = await admin_session.remove_users_from_device_group((await privileged_session.user_info())["_id"], mesh.meshid, timeout=10)
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)
assert (await admin_session.remove_users_from_device(agent.nodeid, (await unprivileged_session.user_info())["_id"], timeout=10)), "Failed to remove user from device"