Skip to content

Commit

Permalink
skip email tests + random application name
Browse files Browse the repository at this point in the history
  • Loading branch information
jworkmanjc committed Nov 8, 2023
1 parent 7634a65 commit 9a89c60
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ while(-not $mockingPath) {


}
Describe 'Remove-JcSdkCustomEmailConfiguration' -Tag:(""){
Describe 'Remove-JcSdkCustomEmailConfiguration' -Tag:("") -skip{
It 'Delete' {
{ Remove-JcSdkCustomEmailConfiguration -CustomEmailType:($global:PesterTestCustomEmailConfiguration.Type) } | Should -Not -Throw
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ while(-not $mockingPath) {


}
Describe 'Set-JcSdkCustomEmailConfiguration' -Tag:(""){
Describe 'Set-JcSdkCustomEmailConfiguration' -Tag:("") -Skip{
It 'SetExpanded' {
{ Set-JcSdkCustomEmailConfiguration -CustomEmailType:($global:PesterTestCustomEmailConfiguration.Type) -Subject:($global:PesterTestCustomEmailConfiguration.Subject) -Type:($global:PesterTestCustomEmailConfiguration.Type) } | Should -Not -Throw
}
Expand Down
5 changes: 3 additions & 2 deletions Tools/RunPesterTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@ If ($moduleName -eq 'JumpCloud.SDK.V1' -or $moduleName -eq 'JumpCloud.SDK.V2' -a
$global:PesterTestSystem = Get-JcSdkSystem | Select-Object -First 1
# # Create a Application
$global:PesterDefApplicationConfig = [JumpCloud.SDK.V1.Models.IApplicationConfig]@{}
$randomBookmarkName = "Bookmark$(Get-Random -Maximum 999 -Minimum 100)"
$global:PesterDefApplication = @{
Name = 'bookmark'
ssoUrl = 'https://JumpCloud.com'
config = $global:PesterDefApplicationConfig
DisplayName = 'Bookmark'
DisplayLabel = 'Bookmark'
DisplayName = $randomBookmarkName
DisplayLabel = $randomBookmarkName
}
# Post a command file (README.md from SDK directory)
$headers = @{}
Expand Down

0 comments on commit 9a89c60

Please sign in to comment.