Skip to content

Commit 7de63ab

Browse files
authored
Fix GitHubRepositorySecurityFix tests (#271)
This PR fixes the `Describe 'GitHubRepositories\Enable-GitHubRepositorySecurityFix'` and `Describe 'GitHubRepositories\Disable-GitHubRepositorySecurityFix'` GitHubRepositories tests following on from the change to the GitHub Automated Security Fixes API. Reference: [Enable Automated Security Fixes](https://docs.github.com/en/rest/reference/repos#enable-automated-security-fixes) Fixes #269
1 parent 2f16de1 commit 7de63ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/GitHubRepositories.tests.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,6 +1289,7 @@ try
12891289
Describe 'GitHubRepositories\Enable-GitHubRepositorySecurityFix' {
12901290
BeforeAll {
12911291
$repo = New-GitHubRepository -RepositoryName ([Guid]::NewGuid().Guid)
1292+
Enable-GitHubRepositoryVulnerabilityAlert -Uri $repo.svn_url
12921293
}
12931294

12941295
Context 'When Enabling GitHub Repository Security Fixes' {
@@ -1306,6 +1307,7 @@ try
13061307
Describe 'GitHubRepositories\Disable-GitHubRepositorySecurityFix' {
13071308
BeforeAll {
13081309
$repo = New-GitHubRepository -RepositoryName ([Guid]::NewGuid().Guid)
1310+
Enable-GitHubRepositoryVulnerabilityAlert -Uri $repo.svn_url
13091311
Enable-GitHubRepositorySecurityFix -Uri $repo.svn_url
13101312
}
13111313

0 commit comments

Comments
 (0)