From b12aee559fd1acaa4a748b8448294e4f4045be40 Mon Sep 17 00:00:00 2001 From: micafer Date: Wed, 21 Nov 2018 11:36:11 +0100 Subject: [PATCH 1/2] Fix dockerfile --- docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index a095c33ac..4f265f75b 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,12 +12,12 @@ RUN pip install setuptools pip --upgrade -I RUN pip install pyOpenSSL --upgrade -I # Install IM -RUN apt-get update && apt-get install --no-install-recommends -y gcc libmysqld-dev libssl-dev libffi-dev libsqlite3-dev libmysqlclient20 && \ +RUN apt-get update && apt-get install --no-install-recommends -y gcc git libmysqld-dev libssl-dev libffi-dev libsqlite3-dev libmysqlclient20 && \ pip install pycrypto && \ pip install MySQL-python && \ cd /tmp && git clone https://github.com/indigo-dc/tosca-parser && pip install /tmp/tosca-parser && \ pip install IM==1.7.6 && \ - apt-get purge -y gcc libmysqld-dev libssl-dev libffi-dev libsqlite3-dev python-dev python-pip && \ + apt-get purge -y gcc git libmysqld-dev libssl-dev libffi-dev libsqlite3-dev python-dev python-pip && \ apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -rf ~/.cache/ # Install pip optional libraries From 0ba5ff146d90f117fab34b1a5b1bfc918c1fbfd2 Mon Sep 17 00:00:00 2001 From: micafer Date: Wed, 21 Nov 2018 13:22:45 +0100 Subject: [PATCH 2/2] Add test --- test/unit/REST.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/unit/REST.py b/test/unit/REST.py index 6efe0ecaf..10a987836 100755 --- a/test/unit/REST.py +++ b/test/unit/REST.py @@ -178,6 +178,9 @@ def test_GetInfrastructureProperty(self, bottle_request, get_infrastructure, Get res = RESTGetInfrastructureProperty("1", "radl") self.assertEqual(res, "radl") + res = RESTGetInfrastructureProperty("1", "outputs") + self.assertEqual(res, '{"outputs": "outputs"}') + res = RESTGetInfrastructureProperty("1", "tosca") self.assertEqual(res, "tosca")