HUE-8511 [core] Fix unit test

Review Request #13279 - Created Aug. 21, 2018 and submitted

Ying Chen
hue
master
HUE-8511
hue
enricoberti, jgauthier, johan, ranade, romain, test, weixia
commit b8f48e5ac7faa2c89dd18e73d86bbd3bf797a7fa (HEAD -> master)
Author: Ying Chen <yingchen@cloudera.com>
Date:   Tue Aug 21 11:00:07 2018 -0700

    HUE-8511 [core] Fix unit test

:100644 100644 3e2203c362... d3104c6fea... M    desktop/core/src/desktop/auth/views_test.py
Hue Build C6.0.0 #4
  • 0
  • 0
  • 2
  • 0
  • 2
Description From Last Updated
  1. 
      
  2. For the record, do you know why we would require superuser here?

    Typically, '/user' or '/user/job' are readable by anybody by default? (e.g. nightly, cotts etc.)

    Maybe we don't create '/user' with the correct read all permission when we create the first user?

  3. 
      
  1. 
      
  2. And do as user?

    self.cluster.fs.do_as_user(test_username, self.cluster.fs.exists, "/user/%s" % self.test_username)

  3. 
      
  1. Nice!

  2. 
      
Review request changed

Status: Closed (submitted)

Loading...