Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
8823c03
RUn modular tests on the pipeline
KenitoInc Nov 4, 2024
bbb019f
Update tests
KenitoInc Nov 5, 2024
9957061
Clean up module imports
KenitoInc Nov 5, 2024
244c126
Fix common functions path
KenitoInc Nov 5, 2024
4e5cd5c
Resolve tests
KenitoInc Nov 7, 2024
46a1aad
Update pipeline
KenitoInc Nov 7, 2024
b97efc8
Fix max function
KenitoInc Nov 7, 2024
f7e7e38
Add logs for debugging
KenitoInc Nov 7, 2024
23542c2
Add logs
KenitoInc Nov 7, 2024
00b3d24
Fix path
KenitoInc Nov 7, 2024
349d5aa
Update pathe
KenitoInc Nov 7, 2024
3604c4e
More logs
KenitoInc Nov 7, 2024
e23b9d1
Update logs
KenitoInc Nov 8, 2024
6af7339
Code cleanup
KenitoInc Nov 8, 2024
b13f85a
Create-ModuleFolder logs
KenitoInc Nov 8, 2024
1655529
Support submodules
KenitoInc Nov 8, 2024
c8b1334
Cleanup Create-ModuleFolder
KenitoInc Nov 8, 2024
c40f369
Fix-PublishL-Local
KenitoInc Nov 8, 2024
2f388f4
update PublishL-Local
KenitoInc Nov 8, 2024
874dffd
fix variable
KenitoInc Nov 8, 2024
fa4a780
Remove unnecessary dependency
KenitoInc Nov 8, 2024
cfd0635
Update compararer
KenitoInc Nov 8, 2024
a4046fe
Update tests configs
KenitoInc Nov 8, 2024
e08020c
Populate array
KenitoInc Nov 11, 2024
d557315
Fix typo
KenitoInc Nov 11, 2024
5c892ca
Update build
KenitoInc Nov 11, 2024
1fa05bc
Troubleshoot pipeline
KenitoInc Nov 11, 2024
ced0f2e
Comment legacy build entra
KenitoInc Nov 11, 2024
b7e8ff2
Comment legacy build entrabeta
KenitoInc Nov 11, 2024
0333cbe
Update valid tests
KenitoInc Nov 11, 2024
2e8c24e
Test root modules
KenitoInc Nov 11, 2024
6db3322
Suppress validation error
KenitoInc Nov 11, 2024
08d7369
Fix typo
KenitoInc Nov 11, 2024
3379964
Test Publishing
KenitoInc Nov 11, 2024
6ce19d2
Ignore root modules
KenitoInc Nov 11, 2024
ae6ceb9
Add logs
KenitoInc Nov 11, 2024
b537c5e
List available
KenitoInc Nov 11, 2024
129644b
log path
KenitoInc Nov 11, 2024
fed2b3c
No install
KenitoInc Nov 11, 2024
e31c2a9
Silently ignore
KenitoInc Nov 12, 2024
5bf1d33
More logging
KenitoInc Nov 12, 2024
0ddc505
Use PowerShell Core
KenitoInc Nov 12, 2024
f5e9d41
Use Publish-PSResource
KenitoInc Nov 12, 2024
c15bb3d
Update version
KenitoInc Nov 12, 2024
82f7283
Cleanup tests
KenitoInc Nov 12, 2024
ac275b3
tests changes
KenitoInc Nov 14, 2024
e8a6bc2
Comment DirSyncFeature test
KenitoInc Nov 14, 2024
01bf0f5
Module and tests fixes beta
KenitoInc Nov 15, 2024
fc69bba
Fix EntraBeta tests
KenitoInc Nov 15, 2024
d640e71
Comment General tests
KenitoInc Nov 15, 2024
60119a7
Fix path
KenitoInc Nov 15, 2024
58fb541
Update role member info
KenitoInc Nov 18, 2024
aef9a37
Replace ObjectId with Id
KenitoInc Nov 18, 2024
90587bd
Update CI pipeline
KenitoInc Nov 18, 2024
041d22d
Update code validations
KenitoInc Nov 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .azure-pipelines/1es-entra-powershell-ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extends:
- template: .azure-pipelines/common-templates/install-tools.yml@self
- template: .azure-pipelines/common-templates/security-pre-checks.yml@self

- template: .azure-pipelines/generation-templates/generate_adapter-migrate-1es.yml@self
- template: .azure-pipelines/generation-templates/generate_adapter-1es.yml@self
parameters:
Sign: ${{ parameters.Sign }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,26 @@ steps:
inputs:
targetType: inline
script: 'echo $PSVersionTable'
pwsh: false
pwsh: true
- task: powershell@2
displayName: 'Set maximum function count'
inputs:
targetType: inline
script: '$MaximumFunctionCount=32768'
pwsh: false
pwsh: true
- task: powershell@2
displayName: 'Install Dependencies Entra'
inputs:
targetType: inline
script: |
./build/Install-Dependencies.ps1 -ModuleName Entra -Verbose
pwsh: false
pwsh: true
- task: powershell@2
displayName: 'Install PlatyPS'
inputs:
targetType: inline
script: Install-Module PlatyPS -scope currentuser -Force
pwsh: false
pwsh: true
- task: powershell@2
displayName: 'Create Module Help Files Entra'
inputs:
Expand All @@ -44,13 +44,21 @@ steps:
Import-Module PlatyPS
. ./build/common-functions.ps1
Create-ModuleHelp -Module Entra
pwsh: false
pwsh: true
# - task: powershell@2
# displayName: 'Build Entra'
# inputs:
# targetType: inline
# script: ./build/Create-CompatModule.ps1 -Module Entra -Verbose
# pwsh: true
- task: powershell@2
displayName: 'Build Entra'
displayName: '[Modularization ] Build Entra'
inputs:
targetType: inline
script: ./build/Create-CompatModule.ps1 -Module Entra -Verbose
pwsh: false
script: |
./build/Create-EntraModule.ps1 -Module Entra -Verbose
./build/Create-EntraModule.ps1 -Module Entra -Root -Verbose
pwsh: true
- ${{ if eq(parameters.Sign, true) }}:
- template: ../common-templates/esrp/codesign-migrate.yml
parameters:
Expand All @@ -61,19 +69,15 @@ steps:
inputs:
targetType: "inline"
pwsh: true
script: |
$ModulePsd1 = "bin/Microsoft.Graph.Entra.psd1"
$ModulePsm1 = "bin/Microsoft.Graph.Entra.psm1"
($ModulePsd1 | Get-AuthenticodeSignature).Status | Should -Be "Valid"
($ModulePsm1 | Get-AuthenticodeSignature).Status | Should -Be "Valid"
script: ./build/ValidateAuthenticodeSignature.ps1
- task: powershell@2
displayName: 'Create Module Files Entra'
inputs:
targetType: inline
script: |
. ./build/common-functions.ps1
Create-ModuleFolder
pwsh: false
pwsh: true
- task: 1ES.PublishBuildArtifacts@1
displayName: 'Publish Module Files EntraBeta'
inputs:
Expand All @@ -86,13 +90,13 @@ steps:
script: |
. ./build/common-functions.ps1
Register-LocalGallery -Path $(Build.ArtifactStagingDirectory)
pwsh: false
pwsh: true
- task: powershell@2
displayName: 'Publish to Local Gallery Entra'
inputs:
targetType: inline
script: ./build/Publish-LocalCompatModule.ps1 -Install
pwsh: false
pwsh: true
- task: 1ES.PublishBuildArtifacts@1
displayName: 'Publish Module Nuget File Entra'
inputs:
Expand All @@ -105,14 +109,14 @@ steps:
script: |
. ./build/common-functions.ps1
Remove-BuildDirectories
pwsh: false
pwsh: true
- task: powershell@2
displayName: 'Install Dependencies EntraBeta'
inputs:
targetType: inline
script: |
./build/Install-Dependencies.ps1 -ModuleName EntraBeta -Verbose
pwsh: false
pwsh: true
- task: powershell@2
displayName: 'Create Module Help Files EntraBeta'
inputs:
Expand All @@ -121,15 +125,23 @@ steps:
Import-Module PlatyPS
. ./build/common-functions.ps1
Create-ModuleHelp -Module EntraBeta
pwsh: false
pwsh: true
# - task: powershell@2
# displayName: 'Build EntraBeta'
# inputs:
# targetType: inline
# script: |
# $MaximumFunctionCount=32768
# ./build/Create-CompatModule.ps1 -Module EntraBeta -Verbose
# pwsh: true
- task: powershell@2
displayName: 'Build EntraBeta'
displayName: '[Modularization ] Build EntraBeta'
inputs:
targetType: inline
script: |
$MaximumFunctionCount=32768
./build/Create-CompatModule.ps1 -Module EntraBeta -Verbose
pwsh: false
./build/Create-EntraModule.ps1 -Module EntraBeta -Verbose
./build/Create-EntraModule.ps1 -Module EntraBeta -Root -Verbose
pwsh: true
- ${{ if eq(parameters.Sign, true) }}:
- template: ../common-templates/esrp/codesign-migrate.yml
parameters:
Expand All @@ -140,19 +152,15 @@ steps:
inputs:
targetType: "inline"
pwsh: true
script: |
$ModulePsd1 = "bin/Microsoft.Graph.Entra.Beta.psd1"
$ModulePsm1 = "bin/Microsoft.Graph.Entra.Beta.psm1"
($ModulePsd1 | Get-AuthenticodeSignature).Status | Should -Be "Valid"
($ModulePsm1 | Get-AuthenticodeSignature).Status | Should -Be "Valid"
script: ./build/ValidateAuthenticodeSignature.ps1
- task: powershell@2
displayName: 'Create Module Files EntraBeta'
inputs:
targetType: inline
script: |
. ./build/common-functions.ps1
Create-ModuleFolder
pwsh: false
pwsh: true
- task: 1ES.PublishBuildArtifacts@1
displayName: 'Publish Module Files EntraBeta'
inputs:
Expand All @@ -163,7 +171,7 @@ steps:
inputs:
targetType: inline
script: ./build/Publish-LocalCompatModule.ps1 -Install
pwsh: false
pwsh: true
- task: 1ES.PublishBuildArtifacts@1
displayName: 'Publish Module Nuget File EntraBeta'
inputs:
Expand All @@ -176,38 +184,64 @@ steps:
script: |
. ./build/common-functions.ps1
Remove-BuildDirectories
pwsh: false
pwsh: true
- task: powershell@2
displayName: 'Install Pester'
inputs:
targetType: inline
script: Install-Module Pester -scope currentuser -SkipPublisherCheck -Force
pwsh: false
pwsh: true
# - task: powershell@2
# displayName: 'Run tests Entra'
# inputs:
# targetType: inline
# pwsh: true
# script: |
# cd test/module/entra
# Invoke-Pester -OutputFile "./test/results/pester-test-results-ad.xml" -OutputFormat NUnitXml
# - task: PublishTestResults@2
# inputs:
# testResultsFormat: NUnit
# testResultsFiles: "./test/results/pester-test-results-ad.xml"
# failTaskOnFailedTests: true
# - task: powershell@2
# displayName: 'Run tests EntraBeta'
# inputs:
# targetType: inline
# pwsh: true
# script: |
# cd test/module/entrabeta
# Invoke-Pester -OutputFile "./test/results/pester-test-results-preview.xml" -OutputFormat NUnitXml
# - task: PublishTestResults@2
# inputs:
# testResultsFormat: NUnit
# testResultsFiles: "./test/results/pester-test-results-preview.xml"
# failTaskOnFailedTests: true
- task: powershell@2
displayName: 'Run tests Entra'
displayName: '[Modularization] Run tests Entra'
inputs:
targetType: inline
pwsh: true
script: |
cd test/module/entra
cd testVNext/Entra
Invoke-Pester -OutputFile "./test/results/pester-test-results-ad.xml" -OutputFormat NUnitXml
- task: PublishTestResults@2
inputs:
testResultsFormat: NUnit
testResultsFiles: "./test/results/pester-test-results-ad.xml"
failTaskOnFailedTests: true
- task: powershell@2
displayName: 'Run tests EntraBeta'
displayName: '[Modularization] Run tests Entra Beta'
inputs:
targetType: inline
pwsh: true
script: |
cd test/module/entrabeta
Invoke-Pester -OutputFile "./test/results/pester-test-results-preview.xml" -OutputFormat NUnitXml
cd testVNext/EntraBeta
Invoke-Pester -OutputFile "./test/results/pester-test-results-ad.xml" -OutputFormat NUnitXml
- task: PublishTestResults@2
inputs:
testResultsFormat: NUnit
testResultsFiles: "./test/results/pester-test-results-preview.xml"
testResultsFiles: "./test/results/pester-test-results-ad.xml"
failTaskOnFailedTests: true
- ${{ if eq(parameters.Integration, true) }}:
- task: powershell@2
Expand Down Expand Up @@ -243,7 +277,7 @@ steps:
script: |
. ./build/common-functions.ps1
Unregister-LocalGallery
pwsh: false
pwsh: true
- task: PSScriptAnalyzer@1
displayName: 'Run PSScriptAnalyzer'
inputs:
Expand Down
Loading