Skip to content

Commit

Permalink
reproduce proxy order issue in product - failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Nov 14, 2019
1 parent e632872 commit 0d4108d
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions apigee/resource_product_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package apigee

import (
"fmt"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform"
"github.com/zambien/go-apigee-edge"
"log"
"strings"
"testing"

"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform"
"github.com/zambien/go-apigee-edge"
)

func TestAccProduct_Updated(t *testing.T) {
Expand Down Expand Up @@ -108,14 +109,26 @@ resource "apigee_api_proxy" "tf_helloworld" {
bundle_sha = "${filebase64sha256("test-fixtures/helloworld_proxy.zip")}"
}
resource "apigee_api_proxy" "tf_helloworld_2" {
name = "tf_helloworld_2"
bundle = "test-fixtures/helloworld_proxy.zip"
bundle_sha = "${filebase64sha256("test-fixtures/helloworld_proxy.zip")}"
}
resource "apigee_api_proxy" "tf_helloworld_3" {
name = "tf_helloworld_3"
bundle = "test-fixtures/helloworld_proxy.zip"
bundle_sha = "${filebase64sha256("test-fixtures/helloworld_proxy.zip")}"
}
resource "apigee_product" "foo_product" {
name = "foo_product_updated"
display_name = "foo_product_updated_different"
description = "no one ever fills this out"
approval_type = "auto"
api_resources = ["/**"]
proxies = ["${apigee_api_proxy.tf_helloworld.name}"]
proxies = ["${apigee_api_proxy.tf_helloworld.name}", "${apigee_api_proxy.tf_helloworld_2.name}", "${apigee_api_proxy.tf_helloworld_3.name}"]
quota = "1000"
quota_interval = "2"
Expand Down

0 comments on commit 0d4108d

Please sign in to comment.