Skip to content

Commit

Permalink
tests - adjust for new build process
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmelton committed Jul 16, 2021
1 parent 5fffdd0 commit bea6605
Show file tree
Hide file tree
Showing 142 changed files with 150 additions and 7 deletions.
1 change: 1 addition & 0 deletions tests/authentication/Initialize-SdkClient.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/authentication/New-Session.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/authentication/Test-SdkClient.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/configurations/Disable-UnlimitedAdmin.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/configurations/Enable-UnlimitedAdmin.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/configurations/Get-Configuration.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
3 changes: 2 additions & 1 deletion tests/discovery/Start-Discovery.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1', '')) -Leaf
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/folder-permissions/Get-FolderPermission.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/folder-permissions/New-FolderPermission.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/folder-permissions/Remove-FolderPermission.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/folder-permissions/Search-FolderPermission.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/folder-permissions/Update-FolderPermission.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/folders/Add-FolderPermission.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/folders/Find-Folder.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/folders/Get-Folder.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/folders/Get-FolderAudit.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/folders/Get-FolderState.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/folders/New-Folder.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/folders/Remove-Folder.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/folders/Remove-FolderTemplate.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/folders/Search-Folder.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/folders/Set-Folder.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/folders/Test-FolderAction.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/folders/Update-Folder.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/general/Get-Site.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/general/Get-Version.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/general/Invoke-RestApi.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName Unit Tests" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/general/Test-Version.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/groups/Add-GroupMember.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/groups/Find-Group.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/groups/Get-Group.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
3 changes: 2 additions & 1 deletion tests/groups/Get-GroupMember.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1', '')) -Leaf
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/groups/Get-GroupRole.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/groups/Get-GroupUser.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
3 changes: 2 additions & 1 deletion tests/groups/New-Group.Tests.ps1
@@ -1,9 +1,10 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
[object[]]$knownParameters = 'TssSession', 'Name', 'Enabled', 'DomainId', 'AdGuid', 'Synchronized', 'SynchronizeNow'
[object[]]$knownParameters = 'TssSession', 'GroupName', 'Enabled', 'DomainId', 'AdGuid', 'Synchronized', 'SynchronizeNow'
[object[]]$currentParams = ([Management.Automation.CommandMetaData]$ExecutionContext.SessionState.InvokeCommand.GetCommand($commandName,'Function')).Parameters.Keys
[object[]]$commandDetails = [System.Management.Automation.CommandInfo]$ExecutionContext.SessionState.InvokeCommand.GetCommand($commandName,'Function')
$unknownParameters = Compare-Object -ReferenceObject $knownParameters -DifferenceObject $currentParams -PassThru
Expand Down
1 change: 1 addition & 0 deletions tests/groups/Remove-GroupMember.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/groups/Search-Group.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/groups/Update-GroupMember.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/metadata/Search-Metadata.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
3 changes: 2 additions & 1 deletion tests/reports/Export-Report.Tests.ps1
@@ -1,9 +1,10 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
[object[]]$knownParameters = 'TssSession', 'ReportName', 'ReportId', 'Delimeter', 'Format'
[object[]]$knownParameters = 'TssSession', 'ReportName', 'ReportId', 'Parameters', 'Delimiter', 'Format'
[object[]]$currentParams = ([Management.Automation.CommandMetaData]$ExecutionContext.SessionState.InvokeCommand.GetCommand($commandName,'Function')).Parameters.Keys
[object[]]$commandDetails = [System.Management.Automation.CommandInfo]$ExecutionContext.SessionState.InvokeCommand.GetCommand($commandName,'Function')
$unknownParameters = Compare-Object -ReferenceObject $knownParameters -DifferenceObject $currentParams -PassThru
Expand Down
3 changes: 2 additions & 1 deletion tests/reports/Find-Report.Tests.ps1
@@ -1,9 +1,10 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
[object[]]$knownParameters = 'TssSession', 'CategoryId', 'IncludeInactive', 'Name', 'SearchText', 'SortBy'
[object[]]$knownParameters = 'TssSession', 'CategoryId', 'IncludeInactive', 'Name', 'SearchText'
[object[]]$currentParams = ([Management.Automation.CommandMetaData]$ExecutionContext.SessionState.InvokeCommand.GetCommand($commandName,'Function')).Parameters.Keys
[object[]]$commandDetails = [System.Management.Automation.CommandInfo]$ExecutionContext.SessionState.InvokeCommand.GetCommand($commandName,'Function')
$unknownParameters = Compare-Object -ReferenceObject $knownParameters -DifferenceObject $currentParams -PassThru
Expand Down
1 change: 1 addition & 0 deletions tests/reports/Get-Report.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/reports/Get-ReportCategory.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/reports/Get-ReportParameter.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/reports/Invoke-Report.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
4 changes: 3 additions & 1 deletion tests/reports/New-Report.Tests.ps1
@@ -1,5 +1,7 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf}
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
[object[]]$knownParameters = 'TssSession', 'ReportName', 'CategoryId', 'ReportSql', 'Description', 'ChartType', 'Is3DReport', 'PageSize', 'Paging'
Expand Down
1 change: 1 addition & 0 deletions tests/reports/Remove-Report.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/reports/Remove-ReportCategory.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/reports/Search-Report.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/reports/Search-ReportSchedule.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/roles/Search-Role.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down
1 change: 1 addition & 0 deletions tests/rpc/Get-RpcPasswordType.Tests.ps1
@@ -1,5 +1,6 @@
BeforeDiscovery {
$commandName = Split-Path ($PSCommandPath.Replace('.Tests.ps1','')) -Leaf
$commandName = $commandName.Replace('-','-Tss')
}
Describe "$commandName verify parameters" {
BeforeDiscovery {
Expand Down

0 comments on commit bea6605

Please sign in to comment.