Skip to content

Commit

Permalink
adding set configuration system test
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Jan 31, 2025
1 parent 7226432 commit 6281f66
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/main/files/tedge-configuration-plugin.v2.toml
Original file line number Diff line number Diff line change
@@ -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 },
]
5 changes: 5 additions & 0 deletions tests/main/operations.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 6281f66

Please sign in to comment.