Skip to content

Commit a357968

Browse files
Fix up some tests
1 parent 379cdab commit a357968

16 files changed

+27
-180
lines changed

schemas/2018-05-01/subscriptionDeploymentTemplate.json

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -105,21 +105,6 @@
105105
{
106106
"$ref": "https://schema.management.azure.com/schemas/2017-06-01-preview/Microsoft.Authorization.json#/unknown_resourceDefinitions/policyAssignments"
107107
},
108-
{
109-
"$ref": "https://schema.management.azure.com/schemas/2017-09-01/Microsoft.Authorization.json#/resourceDefinitions/roleAssignments"
110-
},
111-
{
112-
"$ref": "https://schema.management.azure.com/schemas/2017-09-01/Microsoft.Authorization.json#/resourceDefinitions/roleDefinitions"
113-
},
114-
{
115-
"$ref": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#/resourceDefinitions/policyAssignments"
116-
},
117-
{
118-
"$ref": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#/resourceDefinitions/policyDefinitions"
119-
},
120-
{
121-
"$ref": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#/resourceDefinitions/policySetDefinitions"
122-
},
123108
{
124109
"$ref": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#/subscription_resourceDefinitions/policyDefinitions"
125110
},
@@ -129,15 +114,6 @@
129114
{
130115
"$ref": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#/unknown_resourceDefinitions/policyAssignments"
131116
},
132-
{
133-
"$ref": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#/resourceDefinitions/policyAssignments"
134-
},
135-
{
136-
"$ref": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#/resourceDefinitions/policyDefinitions"
137-
},
138-
{
139-
"$ref": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#/resourceDefinitions/policySetDefinitions"
140-
},
141117
{
142118
"$ref": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#/subscription_resourceDefinitions/policyDefinitions"
143119
},
@@ -147,15 +123,6 @@
147123
{
148124
"$ref": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#/unknown_resourceDefinitions/policyAssignments"
149125
},
150-
{
151-
"$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#/resourceDefinitions/policyAssignments"
152-
},
153-
{
154-
"$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#/resourceDefinitions/policyDefinitions"
155-
},
156-
{
157-
"$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#/resourceDefinitions/policySetDefinitions"
158-
},
159126
{
160127
"$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#/subscription_resourceDefinitions/policyDefinitions"
161128
},
@@ -165,15 +132,6 @@
165132
{
166133
"$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#/unknown_resourceDefinitions/policyAssignments"
167134
},
168-
{
169-
"$ref": "https://schema.management.azure.com/schemas/2019-06-01/Microsoft.Authorization.json#/resourceDefinitions/policyAssignments"
170-
},
171-
{
172-
"$ref": "https://schema.management.azure.com/schemas/2019-06-01/Microsoft.Authorization.json#/resourceDefinitions/policyDefinitions"
173-
},
174-
{
175-
"$ref": "https://schema.management.azure.com/schemas/2019-06-01/Microsoft.Authorization.json#/resourceDefinitions/policySetDefinitions"
176-
},
177135
{
178136
"$ref": "https://schema.management.azure.com/schemas/2019-06-01/Microsoft.Authorization.json#/subscription_resourceDefinitions/policyDefinitions"
179137
},
@@ -183,15 +141,6 @@
183141
{
184142
"$ref": "https://schema.management.azure.com/schemas/2019-06-01/Microsoft.Authorization.json#/unknown_resourceDefinitions/policyAssignments"
185143
},
186-
{
187-
"$ref": "https://schema.management.azure.com/schemas/2019-09-01/Microsoft.Authorization.json#/resourceDefinitions/policyAssignments"
188-
},
189-
{
190-
"$ref": "https://schema.management.azure.com/schemas/2019-09-01/Microsoft.Authorization.json#/resourceDefinitions/policyDefinitions"
191-
},
192-
{
193-
"$ref": "https://schema.management.azure.com/schemas/2019-09-01/Microsoft.Authorization.json#/resourceDefinitions/policySetDefinitions"
194-
},
195144
{
196145
"$ref": "https://schema.management.azure.com/schemas/2019-09-01/Microsoft.Authorization.json#/subscription_resourceDefinitions/policyDefinitions"
197146
},

schemas/2019-08-01/managementGroupDeploymentTemplate.json

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -78,27 +78,12 @@
7878
{
7979
"$ref": "https://schema.management.azure.com/schemas/2017-06-01-preview/Microsoft.Authorization.json#/unknown_resourceDefinitions/policyAssignments"
8080
},
81-
{
82-
"$ref": "https://schema.management.azure.com/schemas/2017-09-01/Microsoft.Authorization.json#/resourceDefinitions/roleAssignments"
83-
},
84-
{
85-
"$ref": "https://schema.management.azure.com/schemas/2017-09-01/Microsoft.Authorization.json#/resourceDefinitions/roleDefinitions"
86-
},
8781
{
8882
"$ref": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#/managementGroup_resourceDefinitions/policyDefinitions"
8983
},
9084
{
9185
"$ref": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#/managementGroup_resourceDefinitions/policySetDefinitions"
9286
},
93-
{
94-
"$ref": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#/resourceDefinitions/policyAssignments"
95-
},
96-
{
97-
"$ref": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#/resourceDefinitions/policyDefinitions"
98-
},
99-
{
100-
"$ref": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#/resourceDefinitions/policySetDefinitions"
101-
},
10287
{
10388
"$ref": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#/unknown_resourceDefinitions/policyAssignments"
10489
},
@@ -108,15 +93,6 @@
10893
{
10994
"$ref": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#/managementGroup_resourceDefinitions/policySetDefinitions"
11095
},
111-
{
112-
"$ref": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#/resourceDefinitions/policyAssignments"
113-
},
114-
{
115-
"$ref": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#/resourceDefinitions/policyDefinitions"
116-
},
117-
{
118-
"$ref": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#/resourceDefinitions/policySetDefinitions"
119-
},
12096
{
12197
"$ref": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#/unknown_resourceDefinitions/policyAssignments"
12298
},
@@ -126,15 +102,6 @@
126102
{
127103
"$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#/managementGroup_resourceDefinitions/policySetDefinitions"
128104
},
129-
{
130-
"$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#/resourceDefinitions/policyAssignments"
131-
},
132-
{
133-
"$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#/resourceDefinitions/policyDefinitions"
134-
},
135-
{
136-
"$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#/resourceDefinitions/policySetDefinitions"
137-
},
138105
{
139106
"$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#/unknown_resourceDefinitions/policyAssignments"
140107
},
@@ -144,15 +111,6 @@
144111
{
145112
"$ref": "https://schema.management.azure.com/schemas/2019-06-01/Microsoft.Authorization.json#/managementGroup_resourceDefinitions/policySetDefinitions"
146113
},
147-
{
148-
"$ref": "https://schema.management.azure.com/schemas/2019-06-01/Microsoft.Authorization.json#/resourceDefinitions/policyAssignments"
149-
},
150-
{
151-
"$ref": "https://schema.management.azure.com/schemas/2019-06-01/Microsoft.Authorization.json#/resourceDefinitions/policyDefinitions"
152-
},
153-
{
154-
"$ref": "https://schema.management.azure.com/schemas/2019-06-01/Microsoft.Authorization.json#/resourceDefinitions/policySetDefinitions"
155-
},
156114
{
157115
"$ref": "https://schema.management.azure.com/schemas/2019-06-01/Microsoft.Authorization.json#/unknown_resourceDefinitions/policyAssignments"
158116
},
@@ -162,15 +120,6 @@
162120
{
163121
"$ref": "https://schema.management.azure.com/schemas/2019-09-01/Microsoft.Authorization.json#/managementGroup_resourceDefinitions/policySetDefinitions"
164122
},
165-
{
166-
"$ref": "https://schema.management.azure.com/schemas/2019-09-01/Microsoft.Authorization.json#/resourceDefinitions/policyAssignments"
167-
},
168-
{
169-
"$ref": "https://schema.management.azure.com/schemas/2019-09-01/Microsoft.Authorization.json#/resourceDefinitions/policyDefinitions"
170-
},
171-
{
172-
"$ref": "https://schema.management.azure.com/schemas/2019-09-01/Microsoft.Authorization.json#/resourceDefinitions/policySetDefinitions"
173-
},
174123
{
175124
"$ref": "https://schema.management.azure.com/schemas/2019-09-01/Microsoft.Authorization.json#/unknown_resourceDefinitions/policyAssignments"
176125
},

schemas/2019-08-01/tenantDeploymentTemplate.json

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -62,57 +62,6 @@
6262
{
6363
"$ref": "https://schema.management.azure.com/schemas/2017-04-01/Microsoft.Aadiam.json#/tenant_resourceDefinitions/diagnosticSettings"
6464
},
65-
{
66-
"$ref": "https://schema.management.azure.com/schemas/2017-09-01/Microsoft.Authorization.json#/resourceDefinitions/roleAssignments"
67-
},
68-
{
69-
"$ref": "https://schema.management.azure.com/schemas/2017-09-01/Microsoft.Authorization.json#/resourceDefinitions/roleDefinitions"
70-
},
71-
{
72-
"$ref": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#/resourceDefinitions/policyAssignments"
73-
},
74-
{
75-
"$ref": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#/resourceDefinitions/policyDefinitions"
76-
},
77-
{
78-
"$ref": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#/resourceDefinitions/policySetDefinitions"
79-
},
80-
{
81-
"$ref": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#/resourceDefinitions/policyAssignments"
82-
},
83-
{
84-
"$ref": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#/resourceDefinitions/policyDefinitions"
85-
},
86-
{
87-
"$ref": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#/resourceDefinitions/policySetDefinitions"
88-
},
89-
{
90-
"$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#/resourceDefinitions/policyAssignments"
91-
},
92-
{
93-
"$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#/resourceDefinitions/policyDefinitions"
94-
},
95-
{
96-
"$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#/resourceDefinitions/policySetDefinitions"
97-
},
98-
{
99-
"$ref": "https://schema.management.azure.com/schemas/2019-06-01/Microsoft.Authorization.json#/resourceDefinitions/policyAssignments"
100-
},
101-
{
102-
"$ref": "https://schema.management.azure.com/schemas/2019-06-01/Microsoft.Authorization.json#/resourceDefinitions/policyDefinitions"
103-
},
104-
{
105-
"$ref": "https://schema.management.azure.com/schemas/2019-06-01/Microsoft.Authorization.json#/resourceDefinitions/policySetDefinitions"
106-
},
107-
{
108-
"$ref": "https://schema.management.azure.com/schemas/2019-09-01/Microsoft.Authorization.json#/resourceDefinitions/policyAssignments"
109-
},
110-
{
111-
"$ref": "https://schema.management.azure.com/schemas/2019-09-01/Microsoft.Authorization.json#/resourceDefinitions/policyDefinitions"
112-
},
113-
{
114-
"$ref": "https://schema.management.azure.com/schemas/2019-09-01/Microsoft.Authorization.json#/resourceDefinitions/policySetDefinitions"
115-
},
11665
{
11766
"$ref": "https://schema.management.azure.com/schemas/2018-11-01-preview/Microsoft.Billing.json#/tenant_resourceDefinitions/billingAccounts_billingProfiles"
11867
},

tests/2018-03-01/policyAssignment.tests.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"tests": [
33
{
44
"name": "PolicyAssignment valid test",
5-
"definition": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#resourceDefinitions/policyAssignments",
5+
"definition": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#unknown_resourceDefinitions/policyAssignments",
66
"json": {
77
"apiVersion": "2018-03-01",
88
"sku": {
@@ -36,7 +36,7 @@
3636
},
3737
{
3838
"name": "PolicyAssignment invalid test",
39-
"definition": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#resourceDefinitions/policyAssignments",
39+
"definition": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#unknown_resourceDefinitions/policyAssignments",
4040
"json": {
4141
"apiVersion": "2018-03-01",
4242
"sku": {

tests/2018-03-01/policySetDefinition.tests.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"tests": [
33
{
44
"name": "PolicySetDefinition valid test",
5-
"definition": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#resourceDefinitions/policySetDefinitions",
5+
"definition": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#subscription_resourceDefinitions/policySetDefinitions",
66
"json": {
77
"apiVersion": "2018-03-01",
88
"properties": {
@@ -52,7 +52,7 @@
5252
},
5353
{
5454
"name": "PolicySetDefinition invalid test",
55-
"definition": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#resourceDefinitions/policySetDefinitions",
55+
"definition": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.Authorization.json#subscription_resourceDefinitions/policySetDefinitions",
5656
"json": {
5757
"apiVersion": "2018-03-01",
5858
"properties": {

tests/2018-05-01/policyAssignment.tests.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"tests": [
33
{
44
"name": "PolicyAssignment valid test",
5-
"definition": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#resourceDefinitions/policyAssignments",
5+
"definition": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#unknown_resourceDefinitions/policyAssignments",
66
"json": {
77
"apiVersion": "2018-05-01",
88
"sku": {
@@ -41,7 +41,7 @@
4141
},
4242
{
4343
"name": "PolicyAssignment invalid test",
44-
"definition": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#resourceDefinitions/policyAssignments",
44+
"definition": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#unknown_resourceDefinitions/policyAssignments",
4545
"json": {
4646
"apiVersion": "2018-05-01",
4747
"sku": {

tests/2018-05-01/policySetDefinition.tests.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"tests": [
33
{
44
"name": "PolicySetDefinition valid test",
5-
"definition": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#resourceDefinitions/policySetDefinitions",
5+
"definition": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#subscription_resourceDefinitions/policySetDefinitions",
66
"json": {
77
"apiVersion": "2018-05-01",
88
"properties": {
@@ -52,7 +52,7 @@
5252
},
5353
{
5454
"name": "PolicySetDefinition invalid test",
55-
"definition": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#resourceDefinitions/policySetDefinitions",
55+
"definition": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.Authorization.json#subscription_resourceDefinitions/policySetDefinitions",
5656
"json": {
5757
"apiVersion": "2018-05-01",
5858
"properties": {

tests/2019-01-01/Microsoft.Authorization.PolicyAssignments.tests.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"tests": [
33
{
44
"name": "PolicyAssignment valid test",
5-
"definition": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#resourceDefinitions/policyAssignments",
5+
"definition": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#unknown_resourceDefinitions/policyAssignments",
66
"json": {
77
"apiVersion": "2019-01-01",
88
"sku": {
@@ -41,7 +41,7 @@
4141
},
4242
{
4343
"name": "PolicyAssignment invalid test",
44-
"definition": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#resourceDefinitions/policyAssignments",
44+
"definition": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#unknown_resourceDefinitions/policyAssignments",
4545
"json": {
4646
"apiVersion": "2019-01-01",
4747
"sku": {

tests/2019-01-01/Microsoft.Authorization.PolicyDefinitions.tests.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"tests": [
33
{
44
"name": "PolicyDefinition valid test",
5-
"definition": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#resourceDefinitions/policyDefinitions",
5+
"definition": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#subscription_resourceDefinitions/policyDefinitions",
66
"json": {
77
"apiVersion": "2019-01-01",
88
"properties": {
@@ -79,7 +79,7 @@
7979
},
8080
{
8181
"name": "PolicyDefinition invalid test",
82-
"definition": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#resourceDefinitions/policyDefinitions",
82+
"definition": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Authorization.json#subscription_resourceDefinitions/policyDefinitions",
8383
"json": {
8484
"apiVersion": "2019-01-01",
8585
"properties": {

0 commit comments

Comments
 (0)