Closed Ashark closed 3 years ago
can you add the command outputs to unit tests please?
I am not at the pc right now. Do I need to run tests successfully? Or it is sufficient to just add the output to tests?
@Ashark what an odd question!
you need to add them to tests and tests need to pass! what would be the point of adding to tests and let tests fail?
I needed to install perl-aliased from AUR. I have Added the data. All tests are running ok.
But I am not sure which status the plugin should mark it. Currently it is warning. Probably, it should be ok, because user may just install hpacucli utility without having controllers.
I think a warning is okay.
Is this ready for merge from your side now?
Yes, you can merge it.
Currently (check_raid version 4.0.10) in hpacucli plugin, checking of missing controllers is done incorrectly.
In my server if I install hpacucli at any server without a controller (non-hp server is also ok), I get that plugin erroring in output:
After my change it will be:
The text for no controllers was already there, but it did not applied, because scan_targets function returned something (instead of returning null) and scan_luns was next invoked, which will not happen in correct case.
Sorry, I could not run tests successfully, because perl complained it misses aliased.pm even when I used PERL_USE_UNSAFE_INC=1.
I will write the output of hpacucli here for the commands runned by plugin:
The first command
The second command
Version of hpacucli
Debug output (after fixing):
Debug output (before fixing):