Networking examples: Fix tests "private cloud function from onprem"

This commit is contained in:
Andrea Gandolfi 2021-07-20 10:28:00 +02:00
parent 898fd7379f
commit c96abf7270
4 changed files with 2 additions and 10 deletions

View File

@ -235,7 +235,7 @@ module "function-hello" {
bucket_name = var.cloud_function_gcs_bucket
ingress_settings = "ALLOW_INTERNAL_ONLY"
bundle_config = {
source_dir = "assets"
source_dir = "${path.module}/assets"
output_path = "bundle.zip"
}
bucket_config = {

View File

@ -14,10 +14,6 @@
* limitations under the License.
*/
###############################################################################
# OUTPUTS #
###############################################################################
output "function_url" {
description = "URL of the Cloud Function."
value = module.function-hello.function.https_trigger_url

View File

@ -14,10 +14,6 @@
* limitations under the License.
*/
###############################################################################
# variables #
###############################################################################
variable "region" {
description = "Region where the resources will be created."
type = string

View File

@ -24,4 +24,4 @@ def test_resources(e2e_plan_runner):
"Test that plan works and the numbers of resources is as expected."
modules, resources = e2e_plan_runner(FIXTURES_DIR)
assert len(modules) == 10
assert len(resources) == 41
assert len(resources) == 40