@@ -868,55 +868,13 @@ overrides: !ruby/object:Provider::ResourceOverrides
868868 constants : templates/terraform/constants/vpn_tunnel.erb
869869 Zone : !ruby/object:Provider::Terraform::ResourceOverride
870870 exclude : true
871- # This is for a list of example files.
872- examples : !ruby/object:Api::Resource::HashArray
873871
874872# This is for copying files over
875873files : !ruby/object:Provider::Config::Files
876874 # All of these files will be copied verbatim.
877875 copy :
878- ' google/transport.go ' : ' templates/terraform/transport.go'
879- ' google/transport_test.go ' : ' templates/terraform/transport_test.go'
880- ' google/import.go ' : ' templates/terraform/import.go'
881- ' google/import_test.go ' : ' templates/terraform/import_test.go'
882- # Handwritten acceptance tests for autogenerated resources.
883- # Adding them here allows updating the tests as part of a MM pull request.
884- ' google/resource_compute_address_test.go ' :
885- ' templates/terraform/tests/resource_compute_address_test.go'
886- ' google/resource_compute_autoscaler_test.go ' :
887- ' templates/terraform/tests/resource_compute_autoscaler_test.go'
888- ' google/resource_compute_firewall_test.go ' :
889- ' templates/terraform/tests/resource_compute_firewall_test.go'
890- ' google/resource_compute_global_address_test.go ' :
891- ' templates/terraform/tests/resource_compute_global_address_test.go'
892- ' google/resource_compute_health_check_test.go ' :
893- ' templates/terraform/tests/resource_compute_health_check_test.go'
894- ' google/resource_compute_region_autoscaler_test.go ' :
895- ' templates/terraform/tests/resource_compute_region_autoscaler_test.go'
896- ' google/resource_compute_region_disk_test.go ' :
897- ' templates/terraform/tests/resource_compute_region_disk_test.go'
898- ' google/resource_compute_router_test.go ' :
899- ' templates/terraform/tests/resource_compute_router_test.go'
900- ' google/resource_compute_ssl_certificate_test.go ' :
901- ' templates/terraform/tests/resource_compute_ssl_certificate_test.go'
902- ' google/resource_compute_target_https_proxy_test.go ' :
903- ' templates/terraform/tests/resource_compute_target_https_proxy_test.go'
904- ' google/resource_compute_target_ssl_proxy_test.go ' :
905- ' templates/terraform/tests/resource_compute_target_ssl_proxy_test.go'
906- ' google/resource_compute_vpn_tunnel_test.go ' :
907- ' templates/terraform/tests/resource_compute_vpn_tunnel_test.go'
876+ <%= lines(indent(compile('provider/terraform/common~copy.yaml'), 4)) - % >
908877 # These files have templating (ERB) code that will be run.
909878 # This is usually to add licensing info, autogeneration notices, etc.
910879 compile :
911- ' google/provider_{{product_name}}_gen.go ' : ' templates/terraform/provider_gen.erb'
912-
913- # This is for custom testing code. All of our tests follow a specific pattern
914- # that sometimes needs to be deviated from. We're working towards a world where
915- # these handwritten tests would be unnecessary in many cases (custom types).
916- tests : !ruby/object:Api::Resource::HashArray
917-
918- # This would be for custom network responses. Tests work by running some block
919- # of autogenerated code and then verifying the network calls.
920- # The network call verifications are automatically generated, but can be
921- # overriden.
922- test_data : !ruby/object:Provider::Config::TestData
880+ <%= lines(indent(compile('provider/terraform/common~compile.yaml'), 4)) - % >
0 commit comments