vespa-engine / pyvespa

Python API for https://vespa.ai, the open big data serving engine
https://pyvespa.readthedocs.io/
Apache License 2.0
95 stars 30 forks source link

Prod deployment and interactive auth #809

Closed thomasht86 closed 3 months ago

thomasht86 commented 3 months ago

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

With this PR, prod deployment should work both from application package and from disk_folder. Removed functionality to track and wait for prod deployment, and implemented check_production_build_status()-method. Now, we no longer wait for a prod deployment, but return the build_no, which can be used to poll for status.

Also expanded with two integration tests:

  1. TestMsmarcoProdApplicationWithTokenAuth
  2. TestProdDeploymentFromDisk

Also started on unit-tests for deployment.py, which was missing.