示例#1
0
 def test_deauthorize(self, connection, device):
     response = connection.devices.deauthorize(device["computerId"])
     assert_successful_response(response)
示例#2
0
 def test_get_all_user_restore_history(self, connection, device):
     for response in connection.archive.get_all_user_restore_history(
             1, device["userId"]):
         assert_successful_response(response)
         break
示例#3
0
 def test_get_by_archive_guid(self, connection, archive_guid):
     response = connection.archive.get_by_archive_guid(archive_guid)
     assert_successful_response(response)
示例#4
0
文件: test_users.py 项目: code42/py42
 def test_get_page(self, connection):
     response = connection.users.get_page(1)
     assert_successful_response(response)
示例#5
0
 def test_get_all_by_device_guid(self, connection, device):
     for response in connection.archive.get_all_by_device_guid(
             device["computerId"]):
         assert_successful_response(response)
         break
示例#6
0
文件: test_users.py 项目: code42/py42
 def test_get_available_roles(self, connection):
     response = connection.users.get_available_roles()
     assert_successful_response(response)
示例#7
0
文件: test_users.py 项目: code42/py42
 def test_reactivate(self, connection, new_user):
     response = connection.users.get_roles(new_user["userId"])
     assert_successful_response(response)
示例#8
0
 def test_get_agent_state(self, connection, org):
     response = connection.orgs.get_agent_state(org["orgId"],
                                                "fullDiskAccess")
     assert_successful_response(response)
示例#9
0
 def test_get_by_uid(self, connection, org):
     response = connection.orgs.get_by_uid(org["orgUid"])
     assert_successful_response(response)
示例#10
0
 def test_unblock(self, connection, device):
     response = connection.devices.unblock(device["computerId"])
     assert_successful_response(response)
示例#11
0
 def test_get_agent_full_disk_access_state(self, connection, device):
     response = connection.devices.get_agent_full_disk_access_state(
         device["guid"])
     assert_successful_response(response)
示例#12
0
 def test_get_page(self, connection, device):
     response = connection.devices.get_page(1)
     assert_successful_response(response)
示例#13
0
 def test_get_all(self, connection, device):
     response_gen = connection.devices.get_all()
     for response in response_gen:
         assert_successful_response(response)
         break
示例#14
0
 def test_reactivate(self, connection, device):
     response = connection.devices.reactivate(device["computerId"])
     assert_successful_response(response)
示例#15
0
文件: test_users.py 项目: code42/py42
 def test_get_scim_data_by_uid(self, connection, new_user):
     response = connection.users.get_scim_data_by_uid(new_user["userUid"])
     assert_successful_response(response)
示例#16
0
 def test_reactivate(self, connection, org):
     response = connection.orgs.reactivate(org["orgId"])
     assert_successful_response(response)
示例#17
0
文件: test_users.py 项目: code42/py42
 def test_change_org_assignment(self, connection, new_user, org):
     response = connection.users.change_org_assignment(
         new_user["userId"], org["parentOrgId"])
     assert_successful_response(response)
示例#18
0
 def test_unblock(self, connection, org):
     response = connection.orgs.unblock(org["orgId"])
     assert_successful_response(response)
示例#19
0
文件: test_users.py 项目: code42/py42
 def test_get_current(self, connection):
     response = connection.users.get_current()
     assert_successful_response(response)
示例#20
0
 def test_get_agent_full_disk_access_states(self, connection, org):
     response = connection.orgs.get_agent_full_disk_access_states(
         org["orgId"])
     assert_successful_response(response)
示例#21
0
文件: test_users.py 项目: code42/py42
 def test_get_by_id(self, connection, new_user):
     response = connection.users.get_by_id(new_user["userId"])
     assert_successful_response(response)
示例#22
0
 def test_update_trusted_activity(self, connection, trusted_activity):
     response = connection.trustedactivities.update(
         trusted_activity["resourceId"],
         description="integration test case")
     assert_successful_response(response)
示例#23
0
文件: test_users.py 项目: code42/py42
 def test_add_role(self, connection, new_user):
     response = connection.users.add_role(new_user["userId"], role)
     assert_successful_response(response)
示例#24
0
 def test_delete_trusted_activity(self, connection, trusted_activity):
     response = connection.trustedactivities.delete(
         trusted_activity["resourceId"])
     assert_successful_response(response)
示例#25
0
 def test_get_all_org_cold_storage_archives(self, connection, device):
     for response in connection.archive.get_all_org_cold_storage_archives(
             device["orgId"]):
         assert_successful_response(response)
         break
示例#26
0
文件: test_users.py 项目: code42/py42
 def test_block(self, connection, new_user):
     response = connection.users.block(new_user["userId"])
     assert_successful_response(response)
示例#27
0
 def test_get_backup_sets(self, connection, device_guid,
                          destination_device_guid):
     response = connection.archive.get_backup_sets(device_guid,
                                                   destination_device_guid)
     assert_successful_response(response)
示例#28
0
文件: test_users.py 项目: code42/py42
 def test_get_all(self, connection):
     response_gen = connection.users.get_all()
     for response in response_gen:
         assert_successful_response(response)
示例#29
0
 def test_stream_from_backup(self, connection, device_guid, path):
     response = connection.archive.stream_from_backup(path, device_guid)
     assert_successful_response(response)
示例#30
0
 def test_get_by_id(self, connection, device):
     response = connection.devices.get_by_id(device["computerId"])
     assert_successful_response(response)