[ARVADOS] updated: 286c3627d978a7862b7f7eea366aa48ab930786d
git at public.curoverse.com
git at public.curoverse.com
Tue May 20 13:31:20 EDT 2014
Summary of changes:
sdk/python/run_test_server.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
via 286c3627d978a7862b7f7eea366aa48ab930786d (commit)
from 2f27ee200f6cc4c97d30084e34330efef2068ebf (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 286c3627d978a7862b7f7eea366aa48ab930786d
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Tue May 20 13:30:08 2014 -0400
2776: Fixed run_test_server.py to work with new 'keep_services' model
diff --git a/sdk/python/run_test_server.py b/sdk/python/run_test_server.py
index 3c9d55b..ba1df86 100644
--- a/sdk/python/run_test_server.py
+++ b/sdk/python/run_test_server.py
@@ -151,12 +151,15 @@ def run_keep():
authorize_with("admin")
api = arvados.api('v1', cache=False)
- a = api.keep_disks().list().execute()
+ for d in api.keep_services().list().execute()['items']:
+ api.keep_services().delete(uuid=d['uuid']).execute()
for d in api.keep_disks().list().execute()['items']:
api.keep_disks().delete(uuid=d['uuid']).execute()
- api.keep_disks().create(body={"keep_disk": {"service_host": "localhost", "service_port": 25107} }).execute()
- api.keep_disks().create(body={"keep_disk": {"service_host": "localhost", "service_port": 25108} }).execute()
+ s1 = api.keep_services().create(body={"keep_service": {"service_host": "localhost", "service_port": 25107, "service_type": "disk"} }).execute()
+ s2 = api.keep_services().create(body={"keep_service": {"service_host": "localhost", "service_port": 25108, "service_type": "disk"} }).execute()
+ api.keep_disks().create(body={"keep_disk": {"keep_service_uuid": s1["uuid"] } }).execute()
+ api.keep_disks().create(body={"keep_disk": {"keep_service_uuid": s2["uuid"] } }).execute()
os.chdir(cwd)
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list