From 33bbcbcb824b939bd93ef3bb803052dfbaa7753d Mon Sep 17 00:00:00 2001 From: Brendan Lundy Date: Thu, 7 Nov 2019 22:20:21 -0800 Subject: [PATCH] fix(vision): update a couple expected messages to fix broken vision vpc sc tests --- vision/tests/system.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vision/tests/system.py b/vision/tests/system.py index 28c8a8251442..2f8f1c9878b4 100644 --- a/vision/tests/system.py +++ b/vision/tests/system.py @@ -641,7 +641,7 @@ def _verify_vpc_sc_error(self, call): except google.api_core.exceptions.PermissionDenied as e: # Verify the PermissionDenied exception was due to VPC SC. self.assertEqual( - e.message, "Request is prohibited by organization's policy" + e.message, "Request is prohibited by organization's policy." ) return except Exception as e: @@ -821,7 +821,7 @@ def setUp(self): ) self._verify_vpc_sc_blocks_gcs_bucket() self.gcs_read_error_message = "Error opening file: gs://" - self.gcs_write_error_message = "Error writing final output to: gs://" + self.gcs_write_error_message = "Error writing final output to" def _verify_vpc_sc_blocks_gcs_bucket(self): # Verifies that a VPC SC 403 error is raised when trying to access a bucket in gcs that is outside the perimeter.