@@ -20,7 +20,7 @@ func TestAccServerRadiusProfile_Basic(t *testing.T) {
20
20
prefix := fmt .Sprintf ("test-acc-%s" , nameSuffix )
21
21
22
22
location := config .ObjectVariable (map [string ]config.Variable {
23
- "device_group " : config .ObjectVariable (map [string ]config.Variable {
23
+ "template " : config .ObjectVariable (map [string ]config.Variable {
24
24
"name" : config .StringVariable (prefix ),
25
25
}),
26
26
})
@@ -109,7 +109,7 @@ func TestAccServerRadiusProfile_Chap(t *testing.T) {
109
109
prefix := fmt .Sprintf ("test-acc-%s" , nameSuffix )
110
110
111
111
location := config .ObjectVariable (map [string ]config.Variable {
112
- "device_group " : config .ObjectVariable (map [string ]config.Variable {
112
+ "template " : config .ObjectVariable (map [string ]config.Variable {
113
113
"name" : config .StringVariable (prefix ),
114
114
}),
115
115
})
@@ -173,12 +173,13 @@ const panosServerRadiusProfile_EAP_TTLS_with_PAP_Tmpl = `
173
173
variable "location" { type = any }
174
174
variable "prefix" { type = string }
175
175
176
- resource "panos_device_group" "example" {
177
- name = var.prefix
176
+ resource "panos_template" "example" {
177
+ location = { panorama = {} }
178
+ name = var.prefix
178
179
}
179
180
180
181
resource "panos_certificate_profile" "cert_prof" {
181
- depends_on = [panos_device_group .example]
182
+ depends_on = [panos_template .example]
182
183
location = var.location
183
184
name = "test-cert-profile"
184
185
}
@@ -214,7 +215,7 @@ func TestAccServerRadiusProfile_EAP_TTLS_with_PAP(t *testing.T) {
214
215
prefix := fmt .Sprintf ("test-acc-%s" , nameSuffix )
215
216
216
217
location := config .ObjectVariable (map [string ]config.Variable {
217
- "device_group " : config .ObjectVariable (map [string ]config.Variable {
218
+ "template " : config .ObjectVariable (map [string ]config.Variable {
218
219
"name" : config .StringVariable (prefix ),
219
220
}),
220
221
})
@@ -335,12 +336,13 @@ const panosServerRadiusProfile_PEAP_MSCHAPv2_Tmpl = `
335
336
variable "location" { type = any }
336
337
variable "prefix" { type = string }
337
338
338
- resource "panos_device_group" "example" {
339
- name = var.prefix
339
+ resource "panos_template" "example" {
340
+ location = { panorama = {} }
341
+ name = var.prefix
340
342
}
341
343
342
344
resource "panos_certificate_profile" "cert_prof" {
343
- depends_on = [panos_device_group .example]
345
+ depends_on = [panos_template .example]
344
346
location = var.location
345
347
name = "test-cert-profile"
346
348
}
@@ -407,12 +409,13 @@ const panosServerRadiusProfile_PEAP_with_GTC_Tmpl = `
407
409
variable "location" { type = any }
408
410
variable "prefix" { type = string }
409
411
410
- resource "panos_device_group" "example" {
411
- name = var.prefix
412
+ resource "panos_template" "example" {
413
+ location = { panorama = {} }
414
+ name = var.prefix
412
415
}
413
416
414
417
resource "panos_certificate_profile" "cert_prof" {
415
- depends_on = [panos_device_group .example]
418
+ depends_on = [panos_template .example]
416
419
location = var.location
417
420
name = "test-cert-profile"
418
421
}
0 commit comments