Skip to content

Commit

Permalink
[Fixes] Fixed ConvertTo-ARMTemplate test case (#3937)
Browse files Browse the repository at this point in the history
* Fixed param ref

* Removed test for a parameter that isn't supported anymore

* Update to latest

* Small fix
  • Loading branch information
AlexanderSehr authored Sep 7, 2023
1 parent 622f841 commit 648c989
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utilities/tools/tests/ConvertTo-ARMTemplate.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ Describe 'Test default behavior' -Tag 'Default' {
ConvertTo-ARMTemplate -RootPath $rootPath -Verbose -RunSynchronous
}

It 'All [<topLevelBicepDeployFilesCount>] top-level [main.bicep] files are converted to [main.json]' {
It 'All [<allBicepDeployFilesCount>] [main.bicep] files are converted to [main.json]' {
$deployJsonFilesCount = (Get-ChildItem -Recurse $modulesFolderPath | Where-Object { $_.FullName -match 'main.json' }).Count
$deployJsonFilesCount | Should -Be $topLevelBicepDeployFilesCount
$deployJsonFilesCount | Should -Be $allBicepDeployFilesCount
}

It 'All [<bicepTestFilesCount>] [main.test.bicep] files are converted to [main.test.json]' {
Expand Down Expand Up @@ -95,7 +95,7 @@ Describe 'Test flags that skip logic' -Tag 'Skip' {

It 'All [<allBicepDeployFilesCount>] main.bicep files are converted to main.json' {
$deployJsonFilesCount = (Get-ChildItem -Recurse $modulesFolderPath | Where-Object { $_.FullName -match 'main.json' }).Count
$deployJsonFilesCount | Should -Be $topLevelBicepDeployFilesCount
$deployJsonFilesCount | Should -Be $allBicepDeployFilesCount
}

It 'All [<allBicepFilesCount>] bicep files are still there' {
Expand Down

0 comments on commit 648c989

Please sign in to comment.