Skip to content

Commit

Permalink
add validation overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasht86 committed Oct 8, 2024
1 parent 4bb2c3d commit ecf7709
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration/test_integration_vespa_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ecf7709

Please sign in to comment.