From ecf7709a85309719eed344158586426333f28ab6 Mon Sep 17 00:00:00 2001 From: thomasht86 Date: Tue, 8 Oct 2024 09:23:28 +0200 Subject: [PATCH] add validation overrides --- tests/integration/test_integration_vespa_cloud.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/integration/test_integration_vespa_cloud.py b/tests/integration/test_integration_vespa_cloud.py index f6e06b0e..d2ae3994 100644 --- a/tests/integration/test_integration_vespa_cloud.py +++ b/tests/integration/test_integration_vespa_cloud.py @@ -294,6 +294,16 @@ def setUp(self) -> None: / "testapps" / "production-deployment-with-tests" ) + # Vespa won't deploy without validation override for certificate-removal + tomorrow = datetime.now() + timedelta(days=1) + formatted_date = tomorrow.strftime("%Y-%m-%d") + app_package = ApplicationPackage(name="empty") + app_package.validations = [ + Validation(ValidationID("certificate-removal"), until=formatted_date) + ] + # Write validations_to_text to "validation-overrides.xml" + with open(self.application_root / "validation-overrides.xml", "w") as f: + f.write(app_package.validations_to_text) self.vespa_cloud = VespaCloud( tenant="vespa-team", application="pyvespa-integration",