Skip to content

Commit

Permalink
Merge pull request #4027 from NikCharlebois/Integration-Test-Improvem…
Browse files Browse the repository at this point in the history
…ents

Fixes Examples
  • Loading branch information
NikCharlebois authored Dec 12, 2023
2 parents db57a10 + 779ce98 commit 060a537
Show file tree
Hide file tree
Showing 426 changed files with 958 additions and 965 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/Global - Integration - INTUNE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,12 @@ jobs:
git push
$SHA = git rev-parse HEAD
echo "commitid=$SHA" >> $env:GITHUB_OUTPUT
- name: Commit Integration Tests
shell: pwsh
env:
PUBLIC_USERNAME: ${{ secrets.PUBLIC_USERNAME }}
PUBLIC_PASSWORD: ${{ secrets.PUBLIC_PASSWORD }}
run: |
$CredPassword = ConvertTo-SecureString $env:PUBLIC_PASSWORD -AsPlainText -Force
$Credential = New-Object System.Management.Automation.PSCredential ($env:PUBLIC_USERNAME, $CredPassword)
.\Tests\Integration\Microsoft365DSC\M365DSCIntegration.INTUNE.Tests.ps1 -Credential $Credential
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Configuration Example
(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)

Import-DscResource -ModuleName Microsoft365DSC
Expand All @@ -24,7 +24,7 @@ Configuration Example
MembershipRuleProcessingState = 'On'
MembershipType = 'Dynamic'
Ensure = 'Present'
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Configuration Example
(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)

Import-DscResource -ModuleName Microsoft365DSC
Expand All @@ -25,7 +25,7 @@ Configuration Example
MailEnabled = $false
IsAssignableToRole = $true
Ensure = "Present"
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
AADAdministrativeUnit 'TestUnit'
{
Expand All @@ -43,7 +43,7 @@ Configuration Example
}
)
Ensure = 'Present'
Credential = $credsGlobalAdmin
Credential = $Credscredential
DependsOn = "[AADGroup]TestGroup"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Configuration Example
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)
Import-DscResource -ModuleName Microsoft365DSC

Expand Down Expand Up @@ -49,7 +49,7 @@ Configuration Example
}
)
Ensure = "Present"
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Configuration Example
(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)

Import-DscResource -ModuleName Microsoft365DSC
Expand All @@ -32,7 +32,7 @@ Configuration Example
GuestUserRole = 'Guest'
PermissionGrantPolicyIdsAssignedToDefaultUserRole = @()
Ensure = 'Present'
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Configuration Example
(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)
Import-DscResource -ModuleName Microsoft365DSC

Expand Down Expand Up @@ -52,7 +52,7 @@ Configuration Example
State = 'disabled'
UserRiskLevels = @('High', 'Medium')
Ensure = 'Present'
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Configuration Example
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -33,7 +33,7 @@ Configuration Example
AccessPackagesIncompatibleWith = @()
IncompatibleGroups = @()
Ensure = 'Present'
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Configuration Example
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)
Import-DscResource -ModuleName Microsoft365DSC

Expand Down Expand Up @@ -51,7 +51,7 @@ Configuration Example
ScopeType = 'SpecificConnectedOrganizationSubjects'
};
Ensure = "Present"
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Configuration Example
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -18,7 +18,7 @@ Configuration Example
{
AccessPackageId = "5d05114c-b4d9-4ae7-bda6-4bade48e60f2";
CanExtend = $False;
Credential = $credsGlobalAdmin
Credential = $Credscredential
Description = "Initial Policy";
DisplayName = "Initial Policy";
DurationInDays = 365;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Configuration Example
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -24,7 +24,7 @@ Configuration Example
IsExternallyVisible = $True
Managedidentity = $False
Ensure = 'Present'
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Configuration Example
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -28,7 +28,7 @@ Configuration Example
ResourceType = 'SharePoint Online Site'
Url = 'https://contoso.sharepoint.com/'
Ensure = 'Present'
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Configuration Example
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -30,7 +30,7 @@ Configuration Example
InternalSponsors = @("12345678-1234-1234-1234-123456789012");
State = "configured";
Ensure = "Present"
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Configuration Example
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -24,7 +24,7 @@ Configuration Example
MailNickname = "M365DSC"
Visibility = "Private"
Ensure = "Present"
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Configuration Example
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -25,7 +25,7 @@ Configuration Example
Ensure = "Present"
IsAssignableToRole = $True
AssignedToRole = "Identity Governance Administrator"
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Configuration Example
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -23,7 +23,7 @@ Configuration Example
GroupTypes = @()
MailNickname = "M365DSCG"
Ensure = "Present"
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
AADGroup 'MyGroups2'
{
Expand All @@ -35,7 +35,7 @@ Configuration Example
MailNickname = "M365DSCMG"
Ensure = "Present"
MemberOf = @("DSCGroup")
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Configuration Example
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -21,7 +21,7 @@ Configuration Example
GroupLifetimeInDays = 99
ManagedGroupTypes = "Selected"
Ensure = "Present"
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Configuration Example
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -20,7 +20,7 @@ Configuration Example
CustomBlockedWordsList = @("CEO", "President")
PrefixSuffixNamingRequirement = "[Title]Test[Company][GroupName][Office]Redmond"
Ensure = "Present"
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Configuration Example
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -25,7 +25,7 @@ Configuration Example
GuestUsageGuidelinesUrl = "https://contoso.com/guestusage"
UsageGuidelinesUrl = "https://contoso.com/usage"
Ensure = "Present"
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Configuration Example
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -21,7 +21,7 @@ Configuration Example
IsTrusted = $True
OdataType = "#microsoft.graph.ipNamedLocation"
Ensure = "Present"
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
AADNamedLocationPolicy 'AllowedCountries'
{
Expand All @@ -30,7 +30,7 @@ Configuration Example
IncludeUnknownCountriesAndRegions = $False
OdataType = "#microsoft.graph.countryNamedLocation"
Ensure = "Present"
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Configuration Example
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -23,7 +23,7 @@ Configuration Example
RolePermissions = "microsoft.directory/applicationPolicies/allProperties/read","microsoft.directory/applicationPolicies/allProperties/update","microsoft.directory/applicationPolicies/basic/update"
Version = "1.0"
Ensure = "Present"
Credential = $credsGlobalAdmin
Credential = $Credscredential
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Configuration Example
(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
$Credscredential
)

Import-DscResource -ModuleName Microsoft365DSC
Expand All @@ -19,7 +19,7 @@ Configuration Example
AADRoleEligibilityScheduleRequest "MyRequest"
{
Action = "AdminAssign";
Credential = $credsGlobalAdmin;
Credential = $Credscredential;
DirectoryScopeId = "/";
Ensure = "Present";
IsValidationOnly = $False;
Expand Down
Loading

0 comments on commit 060a537

Please sign in to comment.