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 (b)
dwarfg_datadump (b)
dwarfg_deplist
dwarfg_depstatus
dwarfg_grafset
dwarfg_help (b)
dwarfg_home (b)
dwarfg_inst_pyext
dwarfg_logexport
dwarfg_loggrep (b)
dwarfg_logtail
dwarfg_logview
dwarfg_perfmode (b)
dwarfg_pyenv
dwarfg_reload (b)
dwarfg_restart (b)
dwarfg_restore
dwarfg_servdata (b)
dwarfg_start (b)
dwarfg_stats_app (b)
dwarfg_stats_proc (b)
dwarfg_status (b)
dwarfg_stop (b)
dwarfg_trafcnt
dwarfg_user
- Links for all of the above are created in
/usr/bin/
- Test basic commands functionality - all commands marked (b) in the above list
- 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
- Test that the -m option is supported on
dwarfg_home and dwarfg_servdata