Skip to content

Commit

Permalink
HUE-8624 [beeswax] Fix tests on create database to redirect on a v4 page
Browse files Browse the repository at this point in the history
  • Loading branch information
romainr committed Oct 16, 2018
1 parent 60fd4fe commit 094274e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/beeswax/src/beeswax/tests.py
Expand Up @@ -1690,7 +1690,7 @@ def test_create_database(self):
}, 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'
Expand All @@ -1702,7 +1702,7 @@ def test_create_database(self):
}, 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)
Expand Down

0 comments on commit 094274e

Please sign in to comment.