Skip to content

Commit 1e062e5

Browse files
authored
Merge pull request #266 from GaddamSaketha/master
changing config name to tenant name in as3 test and do files
2 parents 310652b + b1682da commit 1e062e5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bigip/resource_bigip_as3_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ var dir, err = os.Getwd()
2626
var TEST_AS3_RESOURCE = `
2727
resource "bigip_as3" "as3-example" {
2828
as3_json = "${file("` + dir + `/../examples/as3/example1.json")}"
29-
config_name = "as3"
29+
tenant_name = "Sample_new"
3030
}
3131
`
3232

3333
var TEST_AS3_RESOURCE_INVALID_JSON = `
3434
resource "bigip_as3" "as3-example" {
3535
as3_json = "${file("` + dir + `/../examples/as3/invalid.json")}"
36-
config_name = "as3"
36+
tenant_name = "Sample_new"
3737
}
3838
`
3939

@@ -49,7 +49,7 @@ func TestAccBigipAs3_create(t *testing.T) {
4949
Config: TEST_AS3_RESOURCE,
5050
Check: resource.ComposeTestCheckFunc(
5151
testCheckAs3Exists("as3", true),
52-
resource.TestCheckResourceAttr("bigip_as3.as3-example", "config_name", "as3"),
52+
resource.TestCheckResourceAttr("bigip_as3.as3-example", "tenant_name", "Sample_new"),
5353
),
5454
},
5555
},

bigip/resource_bigip_do.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func resourceBigipDo() *schema.Resource {
3535
Required: true,
3636
Description: "DO json",
3737
},
38-
"config_name": {
38+
"tenant_name": {
3939
Type: schema.TypeString,
4040
Required: true,
4141
Description: "unique identifier for DO resource",
@@ -48,7 +48,7 @@ func resourceBigipDoCreate(d *schema.ResourceData, meta interface{}) error {
4848
client_bigip := meta.(*bigip.BigIP)
4949

5050
do_json := d.Get("do_json").(string)
51-
name := d.Get("config_name").(string)
51+
name := d.Get("tenant_name").(string)
5252
log.Printf("[INFO] Creating do config in bigip:%s", do_json)
5353
tr := &http.Transport{
5454
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}}

0 commit comments

Comments
 (0)