Przeglądaj źródła

[metastore] Adding write permissions to the test user

He needs to be able to see the Drop buttons and creating/dropping
tables in the UI.
Romain Rigaux 10 lat temu
rodzic
commit
83f3ef6
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      apps/metastore/src/metastore/tests.py

+ 2 - 0
apps/metastore/src/metastore/tests.py

@@ -65,6 +65,8 @@ class TestMetastoreWithHadoop(BeeswaxSampleProvider):
     user = User.objects.get(username='test')
     self.db = dbms.get(user, get_query_server_config())
 
+    add_permission("test", "test", "write", "metastore")
+
   def test_basic_flow(self):
     # Default database should exist
     response = self.client.get("/metastore/databases")