unioslo / mreg-cli

Command Line Interface for Mreg
GNU General Public License v3.0
2 stars 7 forks source link

Fix problems with history output #278

Closed oyvindhagberg closed 4 months ago

oyvindhagberg commented 4 months ago

Some of the history commands gave incorrect output for add/remove operations after we modified the history api. This commit seeks to fix that by trying to handle history items in a generic way and make the output more verbose.

"2024-06-26 18:03:20 [test]: Host add: host testhost2.example.org to group mygroup",
"2024-06-26 18:03:20 [test]: Group add: owner myself to group mygroup",
"2024-06-26 18:03:20 [test]: Host remove: host testhost2.example.org from group mygroup",
"2024-06-26 18:03:21 [test]: HostGroup add: group yourgroup to group mygroup",

"2024-06-26 18:03:25 [test]: HostPolicyAtom add: atom apple to role fruit"

Also, update more test results.