icon_url wasn't being passed through
diff --git a/xos/tosca/resources/service.py b/xos/tosca/resources/service.py
index 02a27e3..db3c86a 100644
--- a/xos/tosca/resources/service.py
+++ b/xos/tosca/resources/service.py
@@ -13,7 +13,7 @@
class XOSService(XOSResource):
provides = "tosca.nodes.Service"
xos_model = Service
- copyin_props = ["view_url", "kind", "enabled", "published", "public_key", "versionNumber"]
+ copyin_props = ["view_url", "icon_url", "kind", "enabled", "published", "public_key", "versionNumber"]
def postprocess(self, obj):
for provider_service_name in self.get_requirements("tosca.relationships.TenantOfService"):
diff --git a/xos/tosca/resources/xosresource.py b/xos/tosca/resources/xosresource.py
index eddd8cb..ef59485 100644
--- a/xos/tosca/resources/xosresource.py
+++ b/xos/tosca/resources/xosresource.py
@@ -150,6 +150,7 @@
xos_args = self.get_xos_args()
for (k,v) in xos_args.items():
setattr(obj, k, v)
+ self.postprocess(obj)
obj.save()
def delete(self, obj):
diff --git a/xos/tosca/tests/servicetest.py b/xos/tosca/tests/servicetest.py
index 585e143..59c71c1 100644
--- a/xos/tosca/tests/servicetest.py
+++ b/xos/tosca/tests/servicetest.py
@@ -7,7 +7,8 @@
"create_service_notpublished",
"create_service_notenabled",
"create_service_public_key",
- "update_service_notpublished"]
+ "update_service_notpublished",
+ "create_service_maximal"]
def cleanup(self):
self.try_to_delete(Service, name="test_svc")