Added example to load a custom dashboard in the system
Change-Id: I13aa1c2e1761f37da42f37288dc1ba5202b00fe6
diff --git a/frontend/Makefile b/frontend/Makefile
index 7640cb0..d92f7ff 100644
--- a/frontend/Makefile
+++ b/frontend/Makefile
@@ -130,3 +130,8 @@
$(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/exampleservice/xos/exampleservice-onboard.yaml
bash ../common/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/exampleservice
bash ../common/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos
+ bash ../common/wait_for_xos_port.sh $(XOS_UI_PORT)
+
+dashboard:
+ $(RUN_TOSCA) ./dashboard.yaml
+
diff --git a/frontend/dashboard.yaml b/frontend/dashboard.yaml
new file mode 100644
index 0000000..c9ef497
--- /dev/null
+++ b/frontend/dashboard.yaml
@@ -0,0 +1,27 @@
+tosca_definitions_version: tosca_simple_yaml_1_0
+
+description: >
+ * Some sample data to populate the demo frontend
+
+imports:
+ - custom_types/xos.yaml
+
+topology_template:
+ node_templates:
+
+ # Register the Custom view in the system
+ Subscribers:
+ type: tosca.nodes.DashboardView
+ properties:
+ url: template:xosSubscribers
+
+ # Activate the Custom view for the user padmin@vicci.org
+ padmin@vicci.org:
+ type: tosca.nodes.User
+ properties:
+ no-create: True
+ no-delete: True
+ requirements:
+ - subscribers_dashboard:
+ node: Subscribers
+ relationship: tosca.relationships.UsesDashboard
\ No newline at end of file