Skip to content

Commit

Permalink
Rename some test resource names for consistency
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitrios Karagiannis <[email protected]>
  • Loading branch information
alkar committed Jan 13, 2020
1 parent 5c8e605 commit b7ee893
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions examples/megaport_aws_vxc_basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ data "megaport_partner_port" "aws" {
location_id = data.megaport_location.aws.id
}

data "megaport_location" "port" {
data "megaport_location" "foo" {
name_regex = "Telehouse North"
}

resource "megaport_port" "port" {
resource "megaport_port" "foo" {
name = "terraform_acctest_{{ .uid }}"
location_id = data.megaport_location.port.id
location_id = data.megaport_location.foo.id
speed = 1000
term = 1
}

resource "megaport_aws_vxc" "test" {
resource "megaport_aws_vxc" "foo" {
name = "terraform_acctest_{{ .uid }}"
rate_limit = 100
invoice_reference = "terraform_acctest_ref_{{ .uid }}"

a_end {
product_uid = megaport_port.port.id
product_uid = megaport_port.foo.id
}

b_end {
Expand Down
6 changes: 3 additions & 3 deletions examples/megaport_port_basic/main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
data "megaport_location" "port" {
data "megaport_location" "foo" {
name_regex = "{{ .location }}"
}

resource "megaport_port" "test" {
resource "megaport_port" "foo" {
name = "terraform_acctest_{{ .uid }}"
location_id = data.megaport_location.port.id
location_id = data.megaport_location.foo.id
speed = 1000
term = 1
}
Expand Down
4 changes: 2 additions & 2 deletions megaport/resource_megaport_aws_vxc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ func TestAccMegaportAwsVxc_basic(t *testing.T) {
{
Config: cfg,
Check: resource.ComposeTestCheckFunc(
testAccCheckResourceExists("megaport_port.port", &vxcBefore),
testAccCheckResourceExists("megaport_aws_vxc.test", &vxcBefore),
testAccCheckResourceExists("megaport_port.foo", &vxcBefore),
testAccCheckResourceExists("megaport_aws_vxc.foo", &vxcBefore),
),
},
},
Expand Down

0 comments on commit b7ee893

Please sign in to comment.