pchramesh opened a new issue, #1999: URL: https://github.com/apache/iggy/issues/1999
Hi, `# Using latest version docker run --rm -p 8080:8080 -p 3000:3000 -p 8090:8090 apache/iggy:latest` Followed instructions on https://github.com/apache/iggy/blob/master/foreign/python/README.md and tests are failing. Looks the latest container in docker hub is running old version of Iggy Server. The tests passed when running Iggy server using docker-compose. A new version needs to be pushed after recent [Rust SDK changes](https://github.com/apache/iggy/pull/1853)? ======================================================================= test session starts ======================================================================== platform darwin -- Python 3.9.21, pytest-8.4.1, pluggy-1.6.0 -- /iggy/foreign/python/iggy-python-env/bin/python configfile: pyproject.toml plugins: xdist-3.8.0, timeout-2.4.0, asyncio-0.26.0 asyncio: mode=auto, asyncio_default_fixture_loop_scope=session, asyncio_default_test_loop_scope=function collected 12 items tests/test_iggy_sdk.py::TestConnectivity::test_ping PASSED [ 8%] tests/test_iggy_sdk.py::TestConnectivity::test_client_not_none PASSED [ 16%] tests/test_iggy_sdk.py::TestStreamOperations::test_create_and_get_stream PASSED [ 25%] tests/test_iggy_sdk.py::TestStreamOperations::test_list_streams PASSED [ 33%] tests/test_iggy_sdk.py::TestTopicOperations::test_create_and_get_topic PASSED [ 41%] tests/test_iggy_sdk.py::TestTopicOperations::test_list_topics PASSED [ 50%] tests/test_iggy_sdk.py::TestMessageOperations::test_send_and_poll_messages FAILED [ 58%] tests/test_iggy_sdk.py::TestMessageOperations::test_message_properties FAILED [ 66%] tests/test_iggy_sdk.py::TestPollingStrategies::test_polling_strategies FAILED [ 75%] tests/test_iggy_sdk.py::TestErrorHandling::test_duplicate_stream_creation PASSED [ 83%] tests/test_iggy_sdk.py::TestErrorHandling::test_get_nonexistent_stream PASSED [ 91%] tests/test_iggy_sdk.py::TestErrorHandling::test_create_topic_in_nonexistent_stream PASSED [100%] ============================================================================= FAILURES ============================================================================= ________________________________________________________ TestMessageOperations.test_send_and_poll_messages _________________________________________________________ tests/test_iggy_sdk.py:173: in test_send_and_poll_messages await iggy_client.send_messages( E RuntimeError: InvalidCommand __________________________________________________________ TestMessageOperations.test_message_properties ___________________________________________________________ tests/test_iggy_sdk.py:217: in test_message_properties await iggy_client.send_messages( E RuntimeError: InvalidCommand __________________________________________________________ TestPollingStrategies.test_polling_strategies ___________________________________________________________ tests/test_iggy_sdk.py:278: in test_polling_strategies await iggy_client.send_messages( E RuntimeError: InvalidCommand ===================================================================== short test summary info ====================================================================== FAILED tests/test_iggy_sdk.py::TestMessageOperations::test_send_and_poll_messages - RuntimeError: InvalidCommand FAILED tests/test_iggy_sdk.py::TestMessageOperations::test_message_properties - RuntimeError: InvalidCommand FAILED tests/test_iggy_sdk.py::TestPollingStrategies::test_polling_strategies - RuntimeError: InvalidCommand =================================================================== 3 failed, 9 passed in 0.39s ==================================================================== ### Tests Pass with cd ../../ && cargo run --bin iggy-server ======================================================================= test session starts ======================================================================== platform darwin -- Python 3.9.21, pytest-8.4.1, pluggy-1.6.0 -- /iggy/foreign/python/iggy-python-env/bin/python configfile: pyproject.toml plugins: xdist-3.8.0, timeout-2.4.0, asyncio-0.26.0 asyncio: mode=auto, asyncio_default_fixture_loop_scope=session, asyncio_default_test_loop_scope=function collected 12 items tests/test_iggy_sdk.py::TestConnectivity::test_ping PASSED [ 8%] tests/test_iggy_sdk.py::TestConnectivity::test_client_not_none PASSED [ 16%] tests/test_iggy_sdk.py::TestStreamOperations::test_create_and_get_stream PASSED [ 25%] tests/test_iggy_sdk.py::TestStreamOperations::test_list_streams PASSED [ 33%] tests/test_iggy_sdk.py::TestTopicOperations::test_create_and_get_topic PASSED [ 41%] tests/test_iggy_sdk.py::TestTopicOperations::test_list_topics PASSED [ 50%] tests/test_iggy_sdk.py::TestMessageOperations::test_send_and_poll_messages PASSED [ 58%] tests/test_iggy_sdk.py::TestMessageOperations::test_message_properties PASSED [ 66%] tests/test_iggy_sdk.py::TestPollingStrategies::test_polling_strategies PASSED [ 75%] tests/test_iggy_sdk.py::TestErrorHandling::test_duplicate_stream_creation PASSED [ 83%] tests/test_iggy_sdk.py::TestErrorHandling::test_get_nonexistent_stream PASSED [ 91%] tests/test_iggy_sdk.py::TestErrorHandling::test_create_topic_in_nonexistent_stream PASSED [100%] ======================================================================== 12 passed in 0.22s ======================================================================== -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
