Skip to content

Commit

Permalink
Allow toggling of Jira failure simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
MKodde committed Jun 18, 2024
1 parent 9d22f85 commit 4589488
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ public function shouldFailCreateIssue(): void
$this->failIssueCreation = true;
$this->storeData();
}
public function shouldNotFailCreateIssue(): void
{
$this->loadData();
$this->failIssueCreation = false;
$this->storeData();
}

public function findByManageIds(array $manageIds): IssueCollection
{
Expand Down
1 change: 1 addition & 0 deletions tests/webtests/EntityDetailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function test_render_details_of_removal_requested_manage_entity()
);

$issueType = 'spd-delete-production-entity';
$this->jiraIssueRepository->shouldNotFailCreateIssue();
$this->createjiraTicket($entityId, $issueType);

$this->switchToService('SURFnet');
Expand Down

0 comments on commit 4589488

Please sign in to comment.