Skip to content

Commit

Permalink
authorization namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
eriqua committed Nov 4, 2023
1 parent c166b5c commit 1e7566b
Show file tree
Hide file tree
Showing 31 changed files with 31 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module nestedDependencies 'dependencies.bicep' = {
// Test Execution //
// ============== //

module testDeployment '../../resource-group/main.bicep' = {
module testDeployment '../../../resource-group/main.bicep' = {
scope: resourceGroup
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = {
// Test Execution //
// ============== //

module testDeployment '../../resource-group/main.bicep' = {
module testDeployment '../../../resource-group/main.bicep' = {
scope: resourceGroup
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module nestedDependencies 'dependencies.bicep' = {
// Test Execution //
// ============== //

module testDeployment '../../subscription/main.bicep' = {
module testDeployment '../../../subscription/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param namePrefix string = '[[namePrefix]]'
// Test Execution //
// ============== //

module testDeployment '../../subscription/main.bicep' = {
module testDeployment '../../../subscription/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param namePrefix string = '[[namePrefix]]'
// Test Execution //
// ============== //

module testDeployment '../../management-group/main.bicep' = {
module testDeployment '../../../management-group/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param namePrefix string = '[[namePrefix]]'
// Test Execution //
// ============== //

module testDeployment '../../management-group/main.bicep' = {
module testDeployment '../../../management-group/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param namePrefix string = '[[namePrefix]]'
// Test Execution //
// ============== //

module testDeployment '../../subscription/main.bicep' = {
module testDeployment '../../../subscription/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param namePrefix string = '[[namePrefix]]'
// Test Execution //
// ============== //

module testDeployment '../../subscription/main.bicep' = {
module testDeployment '../../../subscription/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ resource policySetAssignment 'Microsoft.Authorization/policyAssignments@2021-06-
// Test Execution //
// ============== //

module testDeployment '../../management-group/main.bicep' = {
module testDeployment '../../../management-group/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ resource policyAssignment 'Microsoft.Authorization/policyAssignments@2021-06-01'
// Test Execution //
// ============== //

module testDeployment '../../management-group/main.bicep' = {
module testDeployment '../../../management-group/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ resource policySetAssignment 'Microsoft.Authorization/policyAssignments@2021-06-
// Test Execution //
// ============== //

module testDeployment '../../resource-group/main.bicep' = {
module testDeployment '../../../resource-group/main.bicep' = {
scope: resourceGroup
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ resource policyAssignment 'Microsoft.Authorization/policyAssignments@2021-06-01'
// Test Execution //
// ============== //

module testDeployment '../../resource-group/main.bicep' = {
module testDeployment '../../../resource-group/main.bicep' = {
scope: resourceGroup
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ resource policySetAssignment 'Microsoft.Authorization/policyAssignments@2021-06-
// Test Execution //
// ============== //

module testDeployment '../../subscription/main.bicep' = {
module testDeployment '../../../subscription/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ resource policyAssignment 'Microsoft.Authorization/policyAssignments@2021-06-01'
// Test Execution //
// ============== //

module testDeployment '../../subscription/main.bicep' = {
module testDeployment '../../../subscription/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param namePrefix string = '[[namePrefix]]'
// Test Execution //
// ============== //

module testDeployment '../../management-group/main.bicep' = {
module testDeployment '../../../management-group/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param namePrefix string = '[[namePrefix]]'
// Test Execution //
// ============== //

module testDeployment '../../management-group/main.bicep' = {
module testDeployment '../../../management-group/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param namePrefix string = '[[namePrefix]]'
// Test Execution //
// ============== //

module testDeployment '../../subscription/main.bicep' = {
module testDeployment '../../../subscription/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param namePrefix string = '[[namePrefix]]'
// Test Execution //
// ============== //

module testDeployment '../../subscription/main.bicep' = {
module testDeployment '../../../subscription/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module nestedDependencies 'interim.dependencies.bicep' = {
// Test Execution //
// ============== //

module testDeployment '../../management-group/main.bicep' = {
module testDeployment '../../../management-group/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module nestedDependencies 'interim.dependencies.bicep' = {
// Test Execution //
// ============== //

module testDeployment '../../management-group/main.bicep' = {
module testDeployment '../../../management-group/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module nestedDependencies 'dependencies.bicep' = {
// Test Execution //
// ============== //

module testDeployment '../../resource-group/main.bicep' = {
module testDeployment '../../../resource-group/main.bicep' = {
scope: resourceGroup
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module nestedDependencies 'dependencies.bicep' = {
// Test Execution //
// ============== //

module testDeployment '../../resource-group/main.bicep' = {
module testDeployment '../../../resource-group/main.bicep' = {
scope: resourceGroup
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module nestedDependencies 'dependencies.bicep' = {
// Test Execution //
// ============== //

module testDeployment '../../subscription/main.bicep' = {
module testDeployment '../../../subscription/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module nestedDependencies 'dependencies.bicep' = {
// Test Execution //
// ============== //

module testDeployment '../../subscription/main.bicep' = {
module testDeployment '../../../subscription/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param namePrefix string = '[[namePrefix]]'
// Test Execution //
// ============== //

module testDeployment '../../management-group/main.bicep' = {
module testDeployment '../../../management-group/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param namePrefix string = '[[namePrefix]]'
// Test Execution //
// ============== //

module testDeployment '../../management-group/main.bicep' = {
module testDeployment '../../../management-group/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = {
// Test Execution //
// ============== //

module testDeployment '../../resource-group/main.bicep' = {
module testDeployment '../../../resource-group/main.bicep' = {
scope: resourceGroup
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = {
// Test Execution //
// ============== //

module testDeployment '../../resource-group/main.bicep' = {
module testDeployment '../../../resource-group/main.bicep' = {
scope: resourceGroup
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param namePrefix string = '[[namePrefix]]'
// Test Execution //
// ============== //

module testDeployment '../../subscription/main.bicep' = {
module testDeployment '../../../subscription/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param namePrefix string = '[[namePrefix]]'
// Test Execution //
// ============== //

module testDeployment '../../subscription/main.bicep' = {
module testDeployment '../../../subscription/main.bicep' = {
name: '${uniqueString(deployment().name)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
Expand Down
4 changes: 1 addition & 3 deletions utilities/pipelines/sharedScripts/Get-ModuleTestFileList.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ function Get-ModuleTestFileList {

$deploymentTests = @()
if (Test-Path (Join-Path $ModulePath $SearchFolder)) {
$deploymentTests += (Get-ChildItem -Path (Join-Path $ModulePath $SearchFolder) -Recurse -Include $TestFilePattern -File).FullName | Where-Object {
$_ -ne (Join-Path (Join-Path $ModulePath $SearchFolder) 'main.test.bicep') # Excluding PBR test file
}
$deploymentTests += (Get-ChildItem -Path (Join-Path $ModulePath $SearchFolder) -Recurse -Include $TestFilePattern -File).FullName
}

if (-not $deploymentTests) {
Expand Down

0 comments on commit 1e7566b

Please sign in to comment.