From 93d3490783947cb71df0bd120859afc964e48955 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 22 Jan 2020 12:47:56 +0100 Subject: [PATCH] update testdata DDO with compute service --- test/testdata/ddo.json | 56 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/test/testdata/ddo.json b/test/testdata/ddo.json index 8cffe79..32404c8 100644 --- a/test/testdata/ddo.json +++ b/test/testdata/ddo.json @@ -146,8 +146,60 @@ { "type": "compute", "index": 1, - "serviceEndpoint": "http://mybrizo.org/api/v1/brizo/services/compute?pubKey=${pubKey}&serviceId={serviceId}&algo={algo}&container={container}", - "templateId": "044852b2a670ade5407e78fb2863c51000000000000000000000000000000002" + "serviceEndpoint": "http://mybrizo.org/api/v1/brizo/services/compute", + "templateId": "804932804923850985093485039850349850439583409583404534231321131a", + "attributes": { + "main": { + "creator": "0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e", + "datePublished": "2019-04-09T19:02:11Z", + "price": "10", + "timeout": 86400, + "provider": { + "type": "Azure", + "description": "", + "environment": { + "cluster": { + "type": "Kubernetes", + "url": "http://10.0.0.17/xxx" + }, + "supportedContainers": [ + { + "image": "tensorflow/tensorflow", + "tag": "latest", + "checksum": "sha256:cb57ecfa6ebbefd8ffc7f75c0f00e57a7fa739578a429b6f72a0df19315deadc" + }, + { + "image": "tensorflow/tensorflow", + "tag": "latest", + "checksum": "sha256:cb57ecfa6ebbefd8ffc7f75c0f00e57a7fa739578a429b6f72a0df19315deadc" + } + ], + "supportedServers": [ + { + "serverId": "1", + "serverType": "xlsize", + "price": "50", + "cpu": "16", + "gpu": "0", + "memory": "128gb", + "disk": "160gb", + "maxExecutionTime": 86400 + }, + { + "serverId": "2", + "serverType": "medium", + "price": "10", + "cpu": "2", + "gpu": "0", + "memory": "8gb", + "disk": "80gb", + "maxExecutionTime": 86400 + } + ] + } + } + } + } }, { "type": "metadata",