[tests-only][full-ci] api test to get personal drive information of other users (#6018)
* api test to get personal drive information of other users * fix the broken personal drive listing * removed scenario from expected failure after issue fixed --------- Co-authored-by: Michael Barz <mbarz@owncloud.com>
This commit is contained in:
co-authored by
Michael Barz
parent
21b2973e11
commit
e0b6ca0e29
@@ -345,6 +345,32 @@ class GraphHelper {
|
||||
);
|
||||
}
|
||||
|
||||
/***
|
||||
* @param string $baseUrl
|
||||
* @param string $xRequestId
|
||||
* @param string $byUser
|
||||
* @param string $userPassword
|
||||
* @param string $userId
|
||||
*
|
||||
* @return ResponseInterface
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public static function getPersonalDriveInformationByUserId(
|
||||
string $baseUrl,
|
||||
string $xRequestId,
|
||||
string $byUser,
|
||||
string $userPassword,
|
||||
string $userId
|
||||
): ResponseInterface {
|
||||
$url = self::getFullUrl($baseUrl, 'users/' . $userId . '/drive');
|
||||
return HttpRequestHelper::get(
|
||||
$url,
|
||||
$xRequestId,
|
||||
$byUser,
|
||||
$userPassword
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $baseUrl
|
||||
* @param string $xRequestId
|
||||
|
||||
Reference in New Issue
Block a user