Browse Source

HUE-8624 [beeswax] Fix tests on create database to redirect on a v4 page

Romain Rigaux 7 years ago
parent
commit
094274e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      apps/beeswax/src/beeswax/tests.py

+ 2 - 2
apps/beeswax/src/beeswax/tests.py

@@ -1690,7 +1690,7 @@ for x in sys.stdin:
       }, follow=True)
       resp = self.client.get(reverse("beeswax:api_watch_query_refresh_json", kwargs={'id': resp.context[0]['query'].id}), follow=True)
       resp = wait_for_query_to_finish(self.client, resp, max=180.0)
-      resp = self.client.get("/metastore/databases/")
+      resp = self.client.get("/hue/metastore/databases/")
       assert_true(db_name in resp.context[0]["databases"], resp)
 
       # Test for accented characters in 'comment'
@@ -1702,7 +1702,7 @@ for x in sys.stdin:
       }, follow=True)
       resp = self.client.get(reverse("beeswax:api_watch_query_refresh_json", kwargs={'id': resp.context[0]['query'].id}), follow=True)
       resp = wait_for_query_to_finish(self.client, resp, max=180.0)
-      resp = self.client.get("/metastore/databases/")
+      resp = self.client.get("/hue/metastore/databases/")
       assert_true(db_name_accent in resp.context[0]['databases'], resp)
     finally:
       make_query(self.client, 'DROP DATABASE IF EXISTS %(db)s' % {'db': db_name}, wait=True)