@@ -12,13 +12,14 @@ Install node-red from github url
12
12
${operation } = Cumulocity.Install Software nodered-demo,latest::nodered,${binary_url } active-project,nodered-demo::nodered
13
13
Operation Should Be SUCCESSFUL ${operation }
14
14
Cumulocity.Device Should Have Installed Software nodered-demo
15
+ Cumulocity.Should Have Services name=nodered-temperature-flow status=up service_type=nodered
15
16
16
17
Install node-red from tarball
17
18
${binary_url } = Cumulocity.Create Inventory Binary nodered-demo nodered-project file=${CURDIR } /../testdata/nodered-demo__main@c7c6b5d.tar.gz
18
19
${operation } = Cumulocity.Install Software nodered-demo,latest::nodered,${binary_url } active-project,nodered-demo::nodered
19
20
Operation Should Be SUCCESSFUL ${operation }
20
21
Cumulocity.Device Should Have Installed Software nodered-demo,0.0.1
21
-
22
+ Cumulocity.Should Have Services name=nodered-temperature-flow status=up service_type=nodered
22
23
23
24
Uninstall node-red project via Cumulocity
24
25
# Skip Missing Uninstall software keyword
@@ -27,3 +28,31 @@ Uninstall node-red project via Cumulocity
27
28
${mo } = Cumulocity.Device Should Have Fragments c8y_SoftwareList
28
29
Log ${mo }
29
30
Should Not Contain ${mo } nodered-demo
31
+ Cumulocity.Should Have Services name=nodered-temperature-flow status=down service_type=nodered
32
+
33
+ Uninstall node-red project via Cumulocity using the active project
34
+ # install first
35
+ ${binary_url } = Cumulocity.Create Inventory Binary nodered-demo nodered-project file=${CURDIR } /../testdata/nodered-demo__main@c7c6b5d.tar.gz
36
+ ${operation } = Cumulocity.Install Software nodered-demo,latest::nodered,${binary_url } active-project,nodered-demo::nodered
37
+ Operation Should Be SUCCESSFUL ${operation }
38
+ Cumulocity.Device Should Have Installed Software nodered-demo,0.0.1
39
+ Cumulocity.Should Have Services name=nodered-temperature-flow status=up service_type=nodered
40
+
41
+ # then remove
42
+ ${operation } = Cumulocity.Create Operation fragments={"c8y_SoftwareUpdate":[{"name":"active-project","version":"nodered-demo::nodered","url":"","action":"delete"}]} description=Remove nodered-demo package
43
+ Operation Should Be SUCCESSFUL ${operation }
44
+ ${mo } = Cumulocity.Device Should Have Fragments c8y_SoftwareList
45
+ Log ${mo }
46
+ Should Not Contain ${mo } nodered-demo
47
+ Should Not Contain ${mo } active-project
48
+ Cumulocity.Should Have Services name=nodered-temperature-flow status=down service_type=nodered
49
+
50
+ Install new project when nodered is not running
51
+ ${operation } = Cumulocity.Execute Shell Command text=sudo systemctl stop nodered
52
+ Operation Should Be SUCCESSFUL ${operation }
53
+
54
+ ${binary_url } = Cumulocity.Create Inventory Binary nodered-demo nodered-project file=${CURDIR } /../testdata/nodered-demo__main@c7c6b5d.tar.gz
55
+ ${operation } = Cumulocity.Install Software nodered-demo,latest::nodered,${binary_url } active-project,nodered-demo::nodered
56
+ Operation Should Be SUCCESSFUL ${operation }
57
+ Cumulocity.Device Should Have Installed Software nodered-demo,0.0.1
58
+ Cumulocity.Should Have Services name=nodered-temperature-flow status=up service_type=nodered
0 commit comments