Skip to content

Commit

Permalink
Merge branch 'master' into gg-EnterEndEditingTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jul 15, 2017
2 parents 39a9f77 + e834154 commit 80ce199
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ def testconn(self):
.get('connect_args', {}))
engine = create_engine(uri, connect_args=connect_args)
engine.connect()
return json.dumps(engine.table_names(), indent=4)
return json_success(json.dumps(engine.table_names(), indent=4))
except Exception as e:
logging.exception(e)
return json_error_response((
Expand Down
2 changes: 2 additions & 0 deletions tests/core_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def test_testconn(self):
})
response = self.client.post('/superset/testconn', data=data, content_type='application/json')
assert response.status_code == 200
assert response.headers['Content-Type'] == 'application/json'

# validate that the endpoint works with the decrypted sqlalchemy uri
data = json.dumps({
Expand All @@ -292,6 +293,7 @@ def test_testconn(self):
})
response = self.client.post('/superset/testconn', data=data, content_type='application/json')
assert response.status_code == 200
assert response.headers['Content-Type'] == 'application/json'

def test_databaseview_edit(self, username='admin'):
# validate that sending a password-masked uri does not over-write the decrypted uri
Expand Down

0 comments on commit 80ce199

Please sign in to comment.