Hi All,
I found a few small bugs in test/suite_decryption.py and test/suite_dissectors/group_zabbix.py, causing some of them to be inconsistent in their outcome. The problem is that they did not use the test_env like most tests do, causing them to use the current user's configuration profile. In my case this configuration had some protocols disabled causing the tests to fail.
In tests/suite_decryption.py the test_env was used in the tests, but the check_partial function did not pass it on to the check_tree function. The tests using that are:
test/suite_decryption.py::TestDecryptSmb2::test_smb311_aes128gcm_partial
test/suite_decryption.py::TestDecryptSmb2::test_smb311_aes128gcm_partial_keyswap
test/suite_decryption.py::TestDecryptSmb2::test_smb311_aes256gcm_partial
test/suite_decryption.py::TestDecryptSmb2::test_smb311_aes256gcm_partial_keyswap
In tests/suite_dissectors/group_zabbix.py the test_env fixture was not used at all, so i added it to the tests and modified the _tshark_outputs function to accept it as an argument and pass it on to subprocess.run.
The attached file is a patch that fixes this, I don't have a gitlab account so i hope you are ok with me sending the patch here. It should apply cleanly to the current master.
Best regards,
Wesley
________________________________
Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten.
Ministerie van Justitie en Veiligheid
This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The State accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages.
Ministry of Justice and Security
_______________________________________________
Wireshark-dev mailing list -- wireshark-dev@xxxxxxxxxxxxx
To unsubscribe send an email to wireshark-dev-leave@xxxxxxxxxxxxx