Skip to content

Commit 94b09fa

Browse files
Add test outside of pester
1 parent ad389cf commit 94b09fa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.ci/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,17 @@ jobs:
111111
inline: |
112112
$modulePath = Join-Path -Path $env:AGENT_TEMPDIRECTORY -ChildPath 'TempModules'
113113
$env:PSModulePath = $modulePath + [System.IO.Path]::PathSeparator + $env:PSModulePath
114+
115+
$ACRRepoName = "ACRRepo"
116+
$ACRRepoUri = "https://psresourcegettest.azurecr.io"
117+
Register-PSResourceRepository -Name $ACRRepoName -ApiVersion 'ContainerRegistry' -Uri $ACRRepoUri -Verbose
118+
Write-Verbose -Verbose "Registering ACR repository with Az authentication completed"
119+
Get-PSResourceRepository -Name $ACRRepoName -Verbose
120+
Write-Verbose -Verbose "Get-PSResourceRepository completed"
121+
122+
Write-Verbose -Verbose "Finding resource with Name: $testModuleName"
123+
Find-PSResource -Name $testModuleName -Repository $ACRRepoName -Verbose -Debug -ErrorAction Stop
124+
114125
Write-Verbose -Verbose "Importing build utilities (buildtools.psd1)"
115126
Import-Module -Name (Join-Path -Path '${{ parameters.buildDirectory }}' -ChildPath 'buildtools.psd1') -Force
116127
Invoke-ModuleTestsACR -Type Functional

0 commit comments

Comments
 (0)