New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
functional_tests: test HTTP digest authentication #9245
base: master
Are you sure you want to change the base?
functional_tests: test HTTP digest authentication #9245
Conversation
Test: 1. Can't login to RPC server with --rpc-login enabled, but no auth provided 2. Can access RPC server with correct login 3. Can use internal HTTP client to access RPC server with correct login With commit 0ae5c91 not reverted, we fail test 3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without reverting the 0ae5c91
, it fails:
Attempting to connect to daemon loginless with RPC digest authentication required...
Attempting to connect to wallet server loginless with RPC digest authentication required...
Connecting to daemon with RPC digest authentication required...
Traceback (most recent call last):
File "/home/xfffc/dev/monero-master/tests/functional_tests/http_digest_auth.py", line 110, in <module>
HttpDigestAuthTest().run_test()
File "/home/xfffc/dev/monero-master/tests/functional_tests/http_digest_auth.py", line 51, in run_test
self.make_daemon_conn()
File "/home/xfffc/dev/monero-master/tests/functional_tests/http_digest_auth.py", line 76, in make_daemon_conn
self.daemon = Daemon(idx = DAEMON_IDX, username = DAEMON_USER, password = DAEMON_PASS)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Daemon.__init__() got an unexpected keyword argument 'username'
[TEST FAILED] http_digest_auth
Bue even after I reverted 0ae5c91
, I still fail:
[TEST STARTED] http_digest_auth
Attempting to connect to daemon loginless with RPC digest authentication required...
Attempting to connect to wallet server loginless with RPC digest authentication required...
Connecting to daemon with RPC digest authentication required...
Traceback (most recent call last):
File "/home/xfffc/dev/monero-master/tests/functional_tests/http_digest_auth.py", line 110, in <module>
HttpDigestAuthTest().run_test()
File "/home/xfffc/dev/monero-master/tests/functional_tests/http_digest_auth.py", line 51, in run_test
self.make_daemon_conn()
File "/home/xfffc/dev/monero-master/tests/functional_tests/http_digest_auth.py", line 76, in make_daemon_conn
self.daemon = Daemon(idx = DAEMON_IDX, username = DAEMON_USER, password = DAEMON_PASS)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Daemon.__init__() got an unexpected keyword argument 'username'
[TEST FAILED] http_digest_aut
Tried this test separately, and still fails:
/usr/bin/python3 "/home/xfffc/dev/monero/tests/functional_tests/functional_tests_rpc.py" "/usr/bin/python3" "/home/xfffc/dev/monero/tests/functional_tests" "/home/xfffc/dev/monero/build" "http_digest_auth"
Are you sure you included all the changes of this commit in that second run? That error would pop up if you only applied the changes to tests/functional_tests and not utils |
Apologies for my late reply. After debugging the python script it turns out you should not have Without reverting the
I confirm with this PR, that we do not have
|
Test:
With commit 0ae5c91 not reverted, we fail test 3.