예제 #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)