mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Add a smoke test for the sql3 endpoint (#2214)
* turned on sql endpoint in smoke test; added a test to execute a simple sql statement * add config to both configs * fixed not enough arraying
This commit is contained in:
parent
56e46cad5e
commit
c4edbcedb5
1 changed files with 9 additions and 1 deletions
|
|
@ -37,7 +37,15 @@ def test_api_is_responding():
|
|||
resp_body = response.json()
|
||||
assert resp_body['state'] == "NORMAL"
|
||||
|
||||
|
||||
|
||||
def test_sql3_is_responding():
|
||||
response = requests.post("http://" + config.datanode0 + ":10101/sql", data = "select 1")
|
||||
assert response.status_code == 200
|
||||
assert response.headers["Content-Type"] == "application/json"
|
||||
resp_body = response.json()
|
||||
assert resp_body['schema']['fields'][0]['type'] == "INT"
|
||||
assert resp_body['data'][0][0] == 1
|
||||
|
||||
def test_get_index_api():
|
||||
response = requests.get("http://" + config.datanode0 + ":10101/index/user")
|
||||
assert response.status_code == 200
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue