Skip to content

Commit

Permalink
Deprecate proxy_deployment org field
Browse files Browse the repository at this point in the history
This field is not used so we should remove it
  • Loading branch information
daniel-ds committed Jan 14, 2020
1 parent f5c6185 commit 68654b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 3 additions & 3 deletions apigee/resource_api_proxy_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ func resourceApiProxyDeployment() *schema.Resource {
ForceNew: true,
},
"org": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Type: schema.TypeString,
Optional: true,
Deprecated: "org is not required, the value from the provider is used.",
},
"env": {
Type: schema.TypeString,
Expand Down
5 changes: 0 additions & 5 deletions apigee/resource_api_proxy_deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ func TestAccProxyDeployment_Updated(t *testing.T) {
testAccCheckProxyDeploymentExists("apigee_api_proxy_deployment.foo_api_proxy_deployment", "foo_proxy_terraformed"),
resource.TestCheckResourceAttr(
"apigee_api_proxy_deployment.foo_api_proxy_deployment", "proxy_name", "foo_proxy_terraformed"),
resource.TestCheckResourceAttr(
"apigee_api_proxy_deployment.foo_api_proxy_deployment", "org", "zambien-trial"),
resource.TestCheckResourceAttr(
"apigee_api_proxy_deployment.foo_api_proxy_deployment", "revision", "1"),
),
Expand All @@ -35,8 +33,6 @@ func TestAccProxyDeployment_Updated(t *testing.T) {
testAccCheckProxyDeploymentExists("apigee_api_proxy_deployment.foo_api_proxy_deployment", "foo_proxy_terraformed"),
resource.TestCheckResourceAttr(
"apigee_api_proxy_deployment.foo_api_proxy_deployment", "proxy_name", "foo_proxy_terraformed"),
resource.TestCheckResourceAttr(
"apigee_api_proxy_deployment.foo_api_proxy_deployment", "org", "zambien-trial"),
resource.TestCheckResourceAttr(
"apigee_api_proxy_deployment.foo_api_proxy_deployment", "revision", "2"),
resource.TestCheckResourceAttr(
Expand Down Expand Up @@ -95,7 +91,6 @@ resource "apigee_api_proxy" "foo_api_proxy" {
resource "apigee_api_proxy_deployment" "foo_api_proxy_deployment" {
proxy_name = "${apigee_api_proxy.foo_api_proxy.name}"
org = "zambien-trial"
env = "test"
revision = "2"
delay = "2"
Expand Down

0 comments on commit 68654b1

Please sign in to comment.