[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:
Sagar Gurung
2023-04-27 16:04:17 +05:45
committed by GitHub
parent b7990875c1
commit 579dcd082a
4 changed files with 306 additions and 0 deletions
@@ -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();
}
}