Skip to content

Commit

Permalink
Merge branch 'main' into Get-EntraPartnerInformation-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveMutungi254 authored Sep 27, 2024
2 parents 2502de8 + 478d816 commit 4870f9d
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
33 changes: 32 additions & 1 deletion .azure-pipelines/generation-templates/generate_adapter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ parameters:
- name: Sign
type: boolean
default: false
- name: Integration
type: boolean
default: false

steps:
- task: powershell@2
Expand Down Expand Up @@ -205,7 +208,35 @@ steps:
inputs:
testResultsFormat: NUnit
testResultsFiles: "./test/results/pester-test-results-preview.xml"
failTaskOnFailedTests: true
failTaskOnFailedTests: true
- ${{ if eq(parameters.Integration, true) }}:
- task: powershell@2
displayName: 'Run Entra integration tests'
inputs:
targetType: inline
pwsh: true
script: |
cd test/module/Entra/Integration
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
- ${{ if eq(parameters.Integration, true) }}:
- task: powershell@2
displayName: 'Run EntraBeta integration tests'
inputs:
targetType: inline
pwsh: true
script: |
cd test/module/EntraBeta/Integration
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: 'Remove Local Gallery'
inputs:
Expand Down
29 changes: 29 additions & 0 deletions .azure-pipelines/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# https://aka.ms/yaml

name: $(SourceBranchName)-PR-$(Date:yyyy-MM-dd)$(Rev:.r)

schedules:
- cron: '0 0 * * *'
displayName: Daily midnight build
branches:
include:
- main

trigger: none
pr: none

pool:
vmImage: windows-latest
stages:
- stage: Build
displayName: 'Integration tests build'
jobs:
- job: Build
displayName: Microsoft Graph Compatibility Adapter Build and Artifact Generations
steps:
- template: ./generation-templates/generate_adapter.yml
parameters:
Integration: true
Sign: false

0 comments on commit 4870f9d

Please sign in to comment.