diff --git a/tests/main/files/tedge-configuration-plugin.v2.toml b/tests/main/files/tedge-configuration-plugin.v2.toml new file mode 100644 index 0000000..87ddb19 --- /dev/null +++ b/tests/main/files/tedge-configuration-plugin.v2.toml @@ -0,0 +1,5 @@ +files = [ + { path = '/etc/tedge/tedge.toml', type = 'tedge.toml', user = 'tedge', group = 'tedge', mode = 0o444 }, + { path = '/etc/tedge/system.toml', type = 'system.toml', user = 'tedge', group = 'tedge', mode = 0o444 }, + { path = '/etc/tedge/plugins/tedge-log-plugin.toml', type = 'tedge-log-plugin', user = 'tedge', group = 'tedge', mode = 0o644 }, +] \ No newline at end of file diff --git a/tests/main/operations.robot b/tests/main/operations.robot index a53b7b3..107bd67 100644 --- a/tests/main/operations.robot +++ b/tests/main/operations.robot @@ -29,6 +29,11 @@ Get Configuration File tedge.toml system.toml +Set Configuration File + ${binary_url}= Create Inventory Binary tedge-configuration-plugin.toml toml file=${CURDIR}/files/tedge-configuration-plugin.v2.toml + ${operation}= Set Configuration tedge-configuration-plugin url=${binary_url} + Operation Should Be SUCCESSFUL ${operation} + Execute Shell Command ${operation}= Cumulocity.Execute Shell Command ls -l /etc/tedge Cumulocity.Operation Should Be SUCCESSFUL ${operation}