Skip to content

Commit 367904e

Browse files
author
Christopher Boden
committed
Moved skip from context to it
1 parent 5972b5e commit 367904e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

PSDevOps.tests.ps1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -552,13 +552,13 @@ describe 'Calling REST APIs' {
552552
}
553553
}
554554

555-
context 'Service Hooks' -Skip:$IsFork {
556-
it 'Can Get Publishers of Service Hooks' {
555+
context 'Service Hooks' {
556+
it 'Can Get Publishers of Service Hooks' -Skip:$IsFork {
557557
Get-ADOServiceHook -Organization StartAutomating -PersonalAccessToken $testPat -Publisher |
558558
Select-Object -First 1 -ExpandProperty ID |
559559
Should -be Audit
560560
}
561-
it 'Can Get Consumers of Service Hooks' {
561+
it 'Can Get Consumers of Service Hooks' -Skip:$IsFork {
562562
Get-ADOServiceHook -Organization StartAutomating -PersonalAccessToken $testPat -Consumer |
563563
Select-Object -First 1 -ExpandProperty ID |
564564
Should -be appVeyor
@@ -608,23 +608,23 @@ describe 'Calling REST APIs' {
608608
}
609609
}
610610

611-
context WorkProcesses -Skip:$IsFork {
612-
it 'Can get work procceses related to a project' {
611+
context WorkProcesses {
612+
it 'Can get work procceses related to a project' -Skip:$IsFork {
613613
Get-ADOProject -Organization StartAutomating -Project PSDevOps -PersonalAccessToken $testPat |
614614
Get-ADOWorkProcess |
615615
Select-Object -ExpandProperty Name |
616616
should -Be 'StartAutomating Basic'
617617
}
618618

619-
it 'Can get work item types related to a process' {
619+
it 'Can get work item types related to a process' -Skip:$IsFork {
620620
Get-ADOProject -Organization StartAutomating -Project PSDevOps -PersonalAccessToken $testPat |
621621
Get-ADOWorkProcess |
622622
Get-ADOWorkItemType |
623623
Select-Object -First 1 -ExpandProperty Name |
624624
should -Be issue
625625
}
626626

627-
it 'Can create new work item types' {
627+
it 'Can create new work item types' -Skip:$IsFork {
628628
$whatIfResult =
629629
Get-ADOProject -Organization StartAutomating -Project PSDevOps -PersonalAccessToken $testPat |
630630
Get-ADOWorkProcess |
@@ -634,7 +634,7 @@ describe 'Calling REST APIs' {
634634
should -Be icon_flame
635635
}
636636

637-
it 'Can remove custom work item types' {
637+
it 'Can remove custom work item types' -Skip:$IsFork {
638638
$whatIfResult =
639639
Get-ADOProject -Organization StartAutomating -Project PSDevOps -PersonalAccessToken $testPat |
640640
Get-ADOWorkProcess |

0 commit comments

Comments
 (0)