Closed sungpeo closed 4 years ago
I'm debugging it. The test user need to have permission to access the Metastore application.
I can fix this test using is_admin=True
. But I'm not sure if it is right.
Is there a common way to add hue permissions to the test users?
Content-Length: 159
x-xss-protection: 1; mode=block
Content-Security-Policy: script-src 'self' 'unsafe-inline' 'unsafe-eval' *.google-analytics.com *.doubleclick.net data:;img-src 'self' *.google-analytics.com *.doubleclick.net http://*.tile.osm.org *.tile.osm.org *.gstatic.com data:;style-src 'self' 'unsafe-inline' fonts.googleapis.com;connect-src 'self';frame-src *;child-src 'self' data: *.vimeo.com;object-src 'none'
x-content-type-options: nosniff
Content-Language: en-us
Vary: Accept-Language, Cookie
X-Frame-Options: SAMEORIGIN
Content-Type: text/javascript
{
"message": "You do not have permission to access the Metastore application.",
"traceback": [],
"detail": null,
"is_embeddable": false,
"title": "Error"
}
Describe the bug:
During
./build/env/bin/hue test all
,metastore.tests.TestApi.test_show_tables
fails like below.Steps to reproduce it?
These tests fails only during integration test. Those succeed when it triggered by test specific
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)