api: payload: Fill out file_path in response
We've deprecated 'local_path' in favor of a Path-typed 'file_path'
field.
BUG=b:289101910
TEST=./run_tests
TEST=`cros try release`
Change-Id: I822072c6e46d3881c28819f0eb7275e7ddae3eb4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4811831
Reviewed-by: Madeleine Hardt <hardtmad@google.com>
Tested-by: Brian Norris <briannorris@chromium.org>
Commit-Queue: Brian Norris <briannorris@chromium.org>
diff --git a/api/controller/payload_unittest.py b/api/controller/payload_unittest.py
index ae50852..4332f00 100644
--- a/api/controller/payload_unittest.py
+++ b/api/controller/payload_unittest.py
@@ -50,6 +50,12 @@
verify=True,
keyset="update_signer",
dryrun=False,
+ result_path=common_pb2.ResultPath(
+ path=common_pb2.Path(
+ path=str(self.tempdir / "results"),
+ location=common_pb2.Path.OUTSIDE,
+ )
+ ),
)
self.minios_req = payload_pb2.GenerationRequest(
@@ -60,13 +66,22 @@
verify=True,
keyset="update_signer",
dryrun=False,
+ result_path=common_pb2.ResultPath(
+ path=common_pb2.Path(
+ path=str(self.tempdir / "results"),
+ location=common_pb2.Path.OUTSIDE,
+ )
+ ),
)
self.result = payload_pb2.GenerationResponse(
versioned_artifacts=[
payload_pb2.GenerationResponse.VersionedArtifact(
version=1,
- local_path="/tmp/aohiwdadoi/delta.bin",
+ file_path=common_pb2.Path(
+ path="/tmp/aohiwdadoi/delta.bin",
+ location=common_pb2.Path.INSIDE,
+ ),
remote_uri="gs://something",
)
]