E2E TS: Server command-line tests
Prerequisities
- Non-deployed server with install package v.0.8
- Fake package with higher-version cmdline
- root-shell access
Steps
- If the
/opt/cache_dwarfg/cmdline/
directory exists, wipe it out
- If the
/usr/bin/dt_rmm_cmd
and /usr/bin/dwarfg_*
exists, remove them
- Install Dwarfguard on the server (e.g.
--domain my.domain
), checking that
- The
/opt/cache_dwarfg/cmdline/
directory contains
dt_rmm_cmd
script in proper version
- The command wrappers:
dwarfg_backup
dwarfg_deplist
dwarfg_depstatus
dwarfg_help
dwarfg_logexport
dwarfg_loggrep
dwarfg_logview
dwarfg_restart
dwarfg_restore
dwarfg_start
dwarfg_stats_app
dwarfg_stats_proc
dwarfg_status
dwarfg_stop
- Links for all of the above are created in
/usr/bin/
- Test all commands functionality
- To test the correct number of registered devices is displayed by
dwarfg_stats_app
you would need to register some devices first.
- Confirm that the
dwarfg_<command>
offers same functionality as dt_rmm_cmd <command>
- Perform second Dwarfguard deployment from the fake package with higher cmdline version
- Confirm the
/opt/cache_dwarfguard/cmdline/dt_rmm_cmd
is updated
- Test any command but
deplist
, depstatus
, help
asks for deployment interactively if not selected
- Test that selecting the deployment by number (e.g.
--dn 1
after command) works as expected
- Test that selecting the deployment by name (e.g.
--dd my.domain
after command) works as expected
- Test
dwarfg_depstatus
under multiple deployment