[tests-only]Added GDPR export. check events when user is created (#6106)
* Added GDPR export for event upload file * Add for user created events for GDPR export * Add for user information assertion * Review Address
This commit is contained in:
@@ -24,6 +24,7 @@ use Behat\Gherkin\Node\TableNode;
|
||||
use GuzzleHttp\Exception\BadResponseException;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
use GuzzleHttp\Ring\Exception\ConnectException;
|
||||
use Helmich\JsonAssert\JsonAssertions;
|
||||
use PHPUnit\Framework\Assert;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use GuzzleHttp\Stream\StreamInterface;
|
||||
@@ -5384,4 +5385,19 @@ trait WebDav {
|
||||
"Expected display name of version with index $index in response to user '$this->responseUser' was '$expectedUserDisplayName', but got '$actualUserDisplayName'"
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @When user :user downloads the content of GDPR report :pathToFile
|
||||
*
|
||||
* @param string $user
|
||||
* @param string $pathToFile
|
||||
*
|
||||
* @return void
|
||||
* @throws Exception
|
||||
*/
|
||||
public function userGetsTheContentOfGeneratedJsonReport(string $user, string $pathToFile): void {
|
||||
$password = $this->getPasswordForUser($user);
|
||||
$this->downloadFileAsUserUsingPassword($user, $pathToFile, $password);
|
||||
$this->pushToLastStatusCodesArrays();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user