File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ The following properties are stored on the service managed object.
83
83
"serviceName" : " tedge" ,
84
84
"state" : " running" ,
85
85
},
86
- "name" : " tedge-device:: tedge" ,
86
+ "name" : " tedge-device@ tedge" ,
87
87
"serviceType" : " container-group" ,
88
88
"status" : " up" ,
89
89
"type" : " c8y_Service" ,
Original file line number Diff line number Diff line change @@ -202,8 +202,8 @@ case "$COMMAND" in
202
202
# TODO: service monitoring does not support deleting a service
203
203
# so at least mark it as uninstalled
204
204
if command -V tedge > /dev/null 2>&1 ; then
205
- for item in $( docker ps -a --filter " label=com.docker.compose.project=$MODULE_NAME " --format " {{.Label \" com.docker.compose.project\" }}:: {{.Label \" com.docker.compose.service\" }}" ) ; do
206
- if [ " $item " != " :: " ]; then
205
+ for item in $( docker ps -a --filter " label=com.docker.compose.project=$MODULE_NAME " --format " {{.Label \" com.docker.compose.project\" }}@ {{.Label \" com.docker.compose.service\" }}" ) ; do
206
+ if [ " $item " != " @ " ]; then
207
207
log " Updating health endpoint status to uninstalled. service=$item "
208
208
MESSAGE=" $( printf ' {"status":"uninstalled","type":"%s"}' " ${GROUP_SERVICE_TYPE:- " container-group" } " ) "
209
209
publish_health " $item " " $MESSAGE " || :
Original file line number Diff line number Diff line change @@ -23,11 +23,13 @@ Install container-group package
23
23
${operation } = Cumulocity.Execute Shell Command wget -O- nginx:80
24
24
Operation Should Be SUCCESSFUL ${operation }
25
25
Should Contain ${operation.to_json()["c8y_Command"]["result"] } Welcome to nginx
26
+ Cumulocity.Should Have Services name=nginx@nginx service_type=container-group status=up
26
27
27
28
Uninstall container-group
28
29
${operation } = Cumulocity.Uninstall Software {"name": "nginx", "version": "1.0.0", "softwareType": "container-group"}
29
30
Operation Should Be SUCCESSFUL ${operation }
30
31
Device Should Not Have Installed Software nginx
32
+ Cumulocity.Should Have Services name=nginx@nginx service_type=container-group status=uninstalled
31
33
32
34
Install container package
33
35
${operation } = Cumulocity.Install Software {"name": "webserver", "version": "httpd:2.4", "softwareType": "container"}
You can’t perform that action at this time.
0 commit comments