@@ -159,6 +159,16 @@ Remove Orphaned Cloud Services
159159 Start Service tedge-container-plugin
160160 Cumulocity.Should Have Services name=manualapp4 min_count=0 max_count=0 timeout=10
161161
162+ Install container group that uses host volume mount
163+ # Install container-group
164+ Install container-group application app5 1.0.0 app5 ${CURDIR } /data/apps/app5.tar.gz
165+ Device Should Have Installed Software {"name": "app5", "version": "1.0.0", "softwareType": "container-group"}
166+ Cumulocity.Should Have Services name=app5@httpd service_type=container-group status=up
167+
168+ ${operation } = Cumulocity.Execute Shell Command text=curl -sf http://127.0.0.1:9082
169+ ${operation } = Operation Should Be SUCCESSFUL ${operation }
170+ Should Contain ${operation["c8y_Command"]["result"] } It works
171+
162172*** Keywords ***
163173
164174Suite Setup
@@ -186,3 +196,10 @@ Install container-group file
186196 Operation Should Be SUCCESSFUL ${operation }
187197 Should Contain ${operation.to_json()["c8y_Command"]["result"] } My Custom Web Application
188198 Cumulocity.Should Have Services name=${package_name } @${service_name } service_type=container-group status=up
199+
200+ Install container-group application
201+ [Documentation] Install a container-group and let the user do follow up tests
202+ [Arguments] ${package_name } ${package_version } ${service_name } ${file }
203+ ${binary_url } = Cumulocity.Create Inventory Binary ${package_name } container-group file=${file }
204+ ${operation } = Cumulocity.Install Software {"name": "${package_name } ", "version": "${package_version } ", "softwareType": "container-group", "url": "${binary_url } "}
205+ Operation Should Be SUCCESSFUL ${operation } timeout=300
0 commit comments