Unit test for DriveHandler and CleanerSession
I started working on a unit test which would catch a regression related to https://gitlab.cern.ch/cta/operations/-/issues/708
According to my plan, the test should:
- Create a process manager
- Add a drive handler to the process manager
- Create a tape session reporter
- Report session statuses via reporter like in normal workflow
- At some point send the
Fatal
status - Run process manager: it starts a loop for receiving messages and lets the drive handler process them
- Drive handler reacts to
Fatal
and terminates the session - Drive handler starts a cleaner session
- Cleaner session finds VID and runs as it should
- Send shutdown signal, kill gracefully the handler subprocesses and stop running the process manager