diff --git a/images/common/config/sudoers.d/containers b/images/common/config/sudoers.d/containers new file mode 100644 index 0000000..f3dc24d --- /dev/null +++ b/images/common/config/sudoers.d/containers @@ -0,0 +1 @@ +tedge ALL = (ALL) NOPASSWD: /usr/bin/podman, /usr/bin/docker, /usr/bin/tedge-container diff --git a/tests/debian-systemd/main/containers.robot b/tests/debian-systemd/main/containers.robot new file mode 100644 index 0000000..858145c --- /dev/null +++ b/tests/debian-systemd/main/containers.robot @@ -0,0 +1,12 @@ +*** Settings *** +Resource ../../resources/common.robot +Library Cumulocity +Library DeviceLibrary + +Suite Setup Set Main Device + +*** Test Cases *** + +Pull docker.io images by default + ${operation}= Cumulocity.Execute Shell Command sudo podman pull nginx + ${operation}= Operation Should Be SUCCESSFUL ${operation}