Skip to content

Commit

Permalink
Merge pull request #949 from vespa-engine/thomasht86/fix-pyvespa-inte…
Browse files Browse the repository at this point in the history
…gration-prod

fix(ci) add validation overrides to fix prod integration test
  • Loading branch information
thomasht86 authored Oct 8, 2024
2 parents f48eb91 + ecf7709 commit 0abea9c
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 0abea9c

Please sign in to comment.