Skip to content

Commit

Permalink
update apiversion test to validate non-preview version
Browse files Browse the repository at this point in the history
  • Loading branch information
daltondhcp committed Jan 5, 2024
1 parent 3a23824 commit e0e221d
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Describe "Scenario - policyAssignments" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource properties should exist" {
$script:fileContents.resources[0].properties | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Describe "Scenario - roleAssignments" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource properties should exist" {
$script:fileContents.resources[0].properties | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Describe "Scenario - roleEligibilityScheduleRequests" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource properties should exist" {
$script:fileContents.resources[0].properties | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Describe "Scenario - virtualMachines" {
$script:fileContents.resources[0].location | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource zones should exist" {
$script:fileContents.resources[0].zones | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - activityLogAlerts" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource action group Id should exist" {
$script:fileContents.resources[0].properties.actions.actionGroups.actionGroupId | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - vaults" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource properties should exist" {
$script:fileContents.resources[0].properties | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - workflows" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource type should match" {
$script:fileContents.resources[0].type | Should -Be "$script:resourceProvider/$script:resourceType"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - userAssignedIdentities" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource location should exist" {
$script:fileContents.resources[0].location | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - managementGroups" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource properties should exist" {
$script:fileContents.resources[0].properties | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - azureFirewalls" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource zones should exist" {
$script:fileContents.resources[0].zones | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - bastionHosts" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource properties should exist" {
$script:fileContents.resources[0].properties | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - connections" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource properties should exist" {
$script:fileContents.resources[0].properties | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - localNetworkGateways" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource properties should exist" {
$script:fileContents.resources[0].properties | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - networkInterfaces" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource properties should exist" {
$script:fileContents.resources[0].properties | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - networkSecurityGroups" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource properties should exist" {
$script:fileContents.resources[0].properties | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - privateDnsZones" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource type should match" {
$script:fileContents.resources[0].type | Should -Be "$script:resourceProvider/$script:resourceType"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - privateEndpoints" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource type should match" {
$script:fileContents.resources[0].type | Should -Be "$script:resourceProvider/$script:resourceType"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - publicIPAddresses" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource properties should exist" {
$script:fileContents.resources[0].properties | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - routeTables" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource properties should exist" {
$script:fileContents.resources[0].properties | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - virtualNetworks" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource properties should exist" {
$script:fileContents.resources[0].properties | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - resourceGroups" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource properties should exist" {
$script:fileContents.resources[0].properties | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - storageAccounts" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource properties should exist" {
$script:fileContents.resources[0].properties | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - serverfarms" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource properties should exist" {
$script:fileContents.resources[0].properties | Should -BeTrue
Expand Down
2 changes: 1 addition & 1 deletion src/tests/functional/Microsoft.Web/sites/scenario.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "Scenario - sites" {
$script:fileContents.resources[0].name | Should -BeTrue
}
It "Resource apiVersion should exist" {
$script:fileContents.resources[0].apiVersion | Should -BeTrue
$script:fileContents.resources[0].apiVersion | Should -Match '^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$'
}
It "Resource properties should exist" {
$script:fileContents.resources[0].properties | Should -BeTrue
Expand Down

0 comments on commit e0e221d

Please sign in to comment.