diff --git a/mmv1/products/apigee/Environment.yaml b/mmv1/products/apigee/Environment.yaml index c9b343dc4a7b..aa265b3e4a37 100644 --- a/mmv1/products/apigee/Environment.yaml +++ b/mmv1/products/apigee/Environment.yaml @@ -87,7 +87,7 @@ examples: # Resource creation race skip_vcr: true - !ruby/object:Provider::Terraform::Examples - name: 'apigee_environment_type_test' + name: 'apigee_environment_patch_update_test' primary_resource_id: 'apigee_environment' primary_resource_name: "fmt.Sprintf(\"organizations/tf-test%s\", context[\"random_suffix\"\ @@ -197,3 +197,8 @@ properties: - 'BASE' - 'INTERMEDIATE' - 'COMPREHENSIVE' + - !ruby/object:Api::Type::String + name: 'forwardProxyUri' + description: | + Optional. URI of the forward proxy to be applied to the runtime instances in this environment. Must be in the format of {scheme}://{hostname}:{port}. Note that the scheme must be one of "http" or "https", and the port must be supplied. + required: false diff --git a/mmv1/templates/terraform/examples/apigee_environment_type_test.tf.erb b/mmv1/templates/terraform/examples/apigee_environment_patch_update_test.tf.erb similarity index 98% rename from mmv1/templates/terraform/examples/apigee_environment_type_test.tf.erb rename to mmv1/templates/terraform/examples/apigee_environment_patch_update_test.tf.erb index d0baa2ab5fe2..0bd61fe84237 100644 --- a/mmv1/templates/terraform/examples/apigee_environment_type_test.tf.erb +++ b/mmv1/templates/terraform/examples/apigee_environment_patch_update_test.tf.erb @@ -119,4 +119,5 @@ resource "google_apigee_environment" "<%= ctx[:primary_resource_id] %>" { description = "Apigee Environment" display_name = "tf-test%{random_suffix}" type = "COMPREHENSIVE" + forward_proxy_uri = "http://test:123" } diff --git a/mmv1/third_party/terraform/services/apigee/resource_apigee_environment_type_test.go.erb b/mmv1/third_party/terraform/services/apigee/resource_apigee_environment_type_test.go.erb index c3ad1de092d4..676d1465df77 100644 --- a/mmv1/third_party/terraform/services/apigee/resource_apigee_environment_type_test.go.erb +++ b/mmv1/third_party/terraform/services/apigee/resource_apigee_environment_type_test.go.erb @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/terraform-provider-google/google/envvar" ) -func TestAccApigeeEnvironment_apigeeEnvironmentTypeTestExampleUpdate(t *testing.T) { +func TestAccApigeeEnvironment_apigeeEnvironmentPatchUpdateTestExampleUpdate(t *testing.T) { acctest.SkipIfVcr(t) t.Parallel() @@ -26,7 +26,7 @@ func TestAccApigeeEnvironment_apigeeEnvironmentTypeTestExampleUpdate(t *testing. CheckDestroy: testAccCheckApigeeEnvironmentDestroyProducer(t), Steps: []resource.TestStep{ { - Config: testAccApigeeEnvironment_apigeeEnvironmentTypeTestExample(context), + Config: testAccApigeeEnvironment_apigeeEnvironmentPatchUpdateTestExample(context), }, { ResourceName: "google_apigee_environment.apigee_environment", @@ -35,7 +35,7 @@ func TestAccApigeeEnvironment_apigeeEnvironmentTypeTestExampleUpdate(t *testing. ImportStateVerifyIgnore: []string{"org_id"}, }, { - Config: testAccApigeeEnvironment_apigeeEnvironmentTypeTestExampleUpdate(context), + Config: testAccApigeeEnvironment_apigeeEnvironmentPatchUpdateTestExampleUpdate(context), }, { ResourceName: "google_apigee_environment.apigee_environment", @@ -47,7 +47,7 @@ func TestAccApigeeEnvironment_apigeeEnvironmentTypeTestExampleUpdate(t *testing. }) } -func testAccApigeeEnvironment_apigeeEnvironmentTypeTestExampleUpdate(context map[string]interface{}) string { +func testAccApigeeEnvironment_apigeeEnvironmentPatchUpdateTestExampleUpdate(context map[string]interface{}) string { return acctest.Nprintf(` resource "google_project" "project" { provider = google-beta @@ -170,6 +170,7 @@ resource "google_apigee_environment" "apigee_environment" { description = "Apigee Environment" display_name = "tf-test%{random_suffix}" type = "INTERMEDIATE" + forward_proxy_uri = "http://test:456" } `, context) }