File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -177,12 +177,11 @@ Describe 'Organizations' {
177177 Update-GitHubOrganization - Name $orgName - Location ' New Location' - Context $orgContext
178178 }
179179
180- # This test verifies that the enterprise IAT cannot delete an org — org-level operations
181- # require an org installation (shown by the tests above). It is intentionally placed AFTER
182- # Install-GitHubApp and the org-IAT tests so that if the enterprise app unexpectedly gains
183- # organization_administration permission and this call succeeds instead of throwing, the
184- # critical install/connect/update tests have already passed and the org deletion is
185- # a no-op for those assertions. See issue #596.
180+ # GitHub's DELETE /orgs/{org} endpoint requires the app to have the org-level
181+ # `administration: write` permission. The enterprise IAT is enterprise-scoped and does not
182+ # carry org-level permissions, so this call is expected to fail regardless of which
183+ # enterprise permissions the app holds. An org-level IAT (obtained after Install-GitHubApp)
184+ # is required. See issue #596.
186185 It ' Remove-GitHubOrganization - Removes an organization using enterprise installation' - Skip:($OwnerType -ne ' enterprise' ) {
187186 { Remove-GitHubOrganization - Name $orgName - Confirm:$false } | Should - Throw
188187 }
You can’t perform that action at this time.
0 commit comments