Skip to content

Fix user.login to use username for Zabbix >= 5.4, update test_login t…#234

Open
ehsan-moosavi wants to merge 1 commit intolukecyca:masterfrom
ehsan-moosavi:fix-username-for-zabbix-6.4
Open

Fix user.login to use username for Zabbix >= 5.4, update test_login t…#234
ehsan-moosavi wants to merge 1 commit intolukecyca:masterfrom
ehsan-moosavi:fix-username-for-zabbix-6.4

Conversation

@ehsan-moosavi
Copy link

This PR updates the user.login method in pyzabbix to use username for Zabbix versions >= 5.4 (including 6.4.21) and falls back to user for versions < 5.4, fixing the Invalid parameter "user" error. Updated test_login to cover both user and username cases using parametrization and fixed test_login_zabbix_6_4 to handle correct request IDs.

Tested against Zabbix 6.4.21.
Related to adubkov/py-zabbix#152.

…o cover both user and username, fix test_login_zabbix_6_4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant