From a27ec7bf61f40840b8ab54ae25e2e5c3bafb2938 Mon Sep 17 00:00:00 2001 From: Julio Castillo Date: Fri, 30 Oct 2020 18:07:56 +0100 Subject: [PATCH] Fix peering test cases --- networking/hub-and-spoke-peering/main.tf | 2 +- tests/networking/hub_and_spoke_peering/test_plan.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/networking/hub-and-spoke-peering/main.tf b/networking/hub-and-spoke-peering/main.tf index 6b39929a0..d5c09cc60 100644 --- a/networking/hub-and-spoke-peering/main.tf +++ b/networking/hub-and-spoke-peering/main.tf @@ -136,7 +136,7 @@ module "hub-to-spoke-2-peering" { peer_network = module.vpc-spoke-2.self_link export_local_custom_routes = true export_peer_custom_routes = false - module_depends_on = [module.hub-to-spoke-1-peering.complete] + depends_on = [module.hub-to-spoke-1-peering] } ################################################################################ diff --git a/tests/networking/hub_and_spoke_peering/test_plan.py b/tests/networking/hub_and_spoke_peering/test_plan.py index 34853ffa7..fad58fb1b 100644 --- a/tests/networking/hub_and_spoke_peering/test_plan.py +++ b/tests/networking/hub_and_spoke_peering/test_plan.py @@ -23,5 +23,7 @@ FIXTURES_DIR = os.path.join(os.path.dirname(__file__), 'fixture') 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) + import pprint + pprint.pprint(resources) assert len(modules) == 18 - assert len(resources) == 57 + assert len(resources) == 53