During `test all`, FAIL: desktop.auth.views_test.TestLoginWithHadoop.test_login
See original GitHub issueDescribe the bug:
desktop.auth.views_test.TestLoginWithHadoop.test_login
fails.
./build/env/bin/hue test all
======================================================================
FAIL: desktop.auth.views_test.TestLoginWithHadoop.test_login
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/deploy/hadoopeng/hue/build/env/lib/python2.7/site-packages/nose-1.3.7-py2.7.egg/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/deploy/hadoopeng/hue/desktop/core/src/desktop/auth/views_test.py", line 86, in test_login
assert_true(self.cluster.fs.do_as_user(self.test_username, self.fs.exists, "/user/%s" % self.test_username))
AssertionError: False is not true
-------------------- >> begin captured logging << --------------------
desktop.middleware: INFO: Unloading AuditLoggingMiddleware
desktop.middleware: INFO: Unloading ProxyMiddleware
desktop.middleware: INFO: Unloading SpnegoMiddleware
desktop.middleware: INFO: Unloading HueRemoteUserMiddleware
desktop.middleware: INFO: Unloading MimeTypeJSFileFixStreamingMiddleware
access: DEBUG: 127.0.0.1 -anon- - "GET /hue/accounts/login/ HTTP/1.1" - (mem: 4077mb)
axes.watch_login: INFO: AXES: Calling decorated function: dt_login
access: INFO: 127.0.0.1 -anon- - "GET /hue/accounts/login/ HTTP/1.1" returned in 23ms 200 114894 (mem: 4077mb)
access: DEBUG: 127.0.0.1 -anon- - "POST /hue/accounts/login/ HTTP/1.1" - (mem: 4077mb)
axes.watch_login: INFO: AXES: Calling decorated function: dt_login
hadoop.fs.upload: DEBUG: Chunk size = 67108864
desktop.auth.backend: INFO: User test_login_with_hadoop was created.
useradmin.views: WARNING: Not creating home directory of test_login_with_hadoop as no file system connector is configured
access: WARNING: 127.0.0.1 test_login_with_hadoop - "POST /hue/accounts/login/ HTTP/1.1" - (mem: 4077mb)-- Successful login for user: test_login_with_hadoop
access: INFO: 127.0.0.1 test_login_with_hadoop - "POST /hue/accounts/login/ HTTP/1.1" returned in 159ms 302 0 (mem: 4077mb)
desktop.lib.rest.resource: ERROR: Error logging return call GET http://infra-hadoop-build1.dakao.io:33161/webhdfs/v1
Traceback (most recent call last):
File "/home/deploy/hadoopeng/hue/desktop/core/src/desktop/lib/rest/resource.py", line 122, in _invoke
resp_content = smart_unicode(resp.content, errors='replace')
AttributeError: 'NoneType' object has no attribute 'content'
root: DEBUG: GET http://infra-hadoop-build1.dakao.io:33161/webhdfs/v1 returned in 0ms
--------------------- >> end captured logging << ---------------------
Steps to reproduce it?
./build/env/bin/hue test specific desktop.auth.views_test:TestLoginWithHadoop.test_login
Hue version or source? (e.g. open source 4.5, CDH 5.16, CDP 1.0…). System info (e.g. OS, Browser…).
open source 4.7.0 CentOS Linux release 7.7.1908 OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_242-b08)
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Django's self.client.login(...) does not work in unit tests
The code that doesn't work: from django.contrib.auth.models import User from django.test import Client user = User.objects.create(username='testuser', ...
Read more >Unable to sign into Windows Virtual Desktop session - Error
Unable to sign into Windows Virtual Desktop session - Error: Sign in failed. Please check your username and password and try again. Hi...
Read more >Error Messages During Test Execution - LambdaTest
Below is a list of various error messages that may happen during test execution. Authentication Error At The Time of Test Execution. This ......
Read more >windows - Tool to test a user account and password (test login)
The utility will prompt for the password, if the right password has been provided, notepad will launch, if not it will produce error...
Read more >Testing tools - Django documentation
This black magic (essentially a patching of Django's template system in memory) only happens during test running. By default, the test client will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, it is called with
request.fs
, which should be set via the middeware: https://github.com/cloudera/hue/blob/master/desktop/core/src/desktop/middleware.py#L133Maybe adding more debug info there?
How about adding more debug info to understand why this fails?
Note that https://github.com/cloudera/hue/commit/8beacf19af14937205bb7283baabd17e1432c9e8 should fix it (present in 4.7.1)