@@ -216,13 +216,13 @@ describe 'Creating Pipelines' {
216216}
217217
218218describe ' Calling REST APIs' {
219- it ' Can invoke an Azure DevOps REST api' - Skip: $IsFork {
219+ it ' Can invoke an Azure DevOps REST api' {
220220 $org = ' StartAutomating'
221221 $project = ' PSDevOps'
222222 Invoke-ADORestAPI " https://dev.azure.com/$org /$project /_apis/build/builds/?api-version=5.1" - PSTypeName AzureDevOps.Build
223223 }
224224
225- it ' Can Connect to Azure DevOps (Connect-ADO)' {
225+ it ' Can Connect to Azure DevOps (Connect-ADO)' - Skip: $IsFork {
226226 $connection = Connect-ADO - Organization StartAutomating - PersonalAccessToken $testPat
227227 $connection.Organization | Should - Be StartAutomating
228228 }
@@ -437,8 +437,8 @@ describe 'Calling REST APIs' {
437437 }
438438 }
439439
440- context ' Extensions' - Skip: $IsFork {
441- it ' Can Get-ADOExtension' {
440+ context ' Extensions' {
441+ it ' Can Get-ADOExtension' - Skip: $IsFork {
442442 Get-ADOExtension - Organization StartAutomating - PersonalAccessToken $testPat - PublisherID ms - ExtensionID feed |
443443 Select-Object - First 1 - ExpandProperty PublisherName |
444444 should - Be Microsoft
@@ -452,35 +452,35 @@ describe 'Calling REST APIs' {
452452 #>
453453
454454
455- it ' Can Get-ADOExtension with filters' {
455+ it ' Can Get-ADOExtension with filters' - Skip: $IsFork {
456456 Get-ADOExtension - Organization StartAutomating - PersonalAccessToken $testPat - PublisherNameLike Micro* - ExtensionNameLike * feed* - PublisherNameMatch ms - ExtensionNameMatch feed |
457457 Select-Object - First 1 - ExpandProperty PublisherName |
458458 Should - Be Microsoft
459459 }
460460
461- it ' Can Install-ADOExtension' {
461+ it ' Can Install-ADOExtension' - Skip: $IsFork {
462462 $whatIf =
463463 Install-ADOExtension - Organization StartAutomating - PublisherID YodLabs - ExtensionID yodlabs- githubstats - WhatIf - PersonalAccessToken $testPat
464464 $whatIf.Method | Should - Be POST
465465 $whatIf.Uri | Should - BeLike ' */YodLabs/yodlabs-githubstats*'
466466 }
467467
468- it ' Can Uninstall-ADOExtension' {
468+ it ' Can Uninstall-ADOExtension' - Skip: $IsFork {
469469 $whatIf =
470470 Uninstall-ADOExtension - Organization StartAutomating - PublisherID YodLabs - ExtensionID yodlabs- githubstats - WhatIf - PersonalAccessToken $testPat
471471 $whatIf.Method | Should - Be DELETE
472472 $whatIf.Uri | Should - BeLike ' */YodLabs/yodlabs-githubstats*'
473473 }
474474
475- it ' Can Enable-ADOExtension' {
475+ it ' Can Enable-ADOExtension' - Skip: $IsFork {
476476 $whatIf =
477477 Enable-ADOExtension - Organization StartAutomating - PublisherID YodLabs - ExtensionID yodlabs- githubstats - WhatIf - PersonalAccessToken $testPat
478478 $whatIf.Method | Should - Be PATCH
479479 $whatIf.Uri | Should - BeLike ' */extensionmanagement/installedextensions*'
480480 $whatIf.body.installState.flags | Should - Be none
481481 }
482482
483- it ' Can Disable-ADOExtension' {
483+ it ' Can Disable-ADOExtension' - Skip: $IsFork {
484484 $whatIf =
485485 Disable-ADOExtension - Organization StartAutomating - PublisherID YodLabs - ExtensionID yodlabs- githubstats - WhatIf - PersonalAccessToken $testPat
486486 $whatIf.Method | Should - Be PATCH
@@ -490,7 +490,7 @@ describe 'Calling REST APIs' {
490490
491491
492492
493- it ' Get Get-ADOTask' {
493+ it ' Get Get-ADOTask' - Skip: $IsFork {
494494 Get-ADOTask - Organization StartAutomating - PersonalAccessToken $testPat |
495495 Select-Object - First 1 - ExpandProperty PSTypenames |
496496 Select-Object - Last 1 |
0 commit comments