-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix typo * Deprecate function with typo, add new --------- Co-authored-by: Kristian Aune <[email protected]>
- Loading branch information
Showing
13 changed files
with
48 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -281,7 +281,7 @@ def execute_data_operations( | |
|
||
response:VespaResponse = app.get_data(schema=schema_name, data_id=fields_to_send["id"]) | ||
self.assertEqual(response.status_code, 404) | ||
self.assertFalse(response.is_successfull()) | ||
self.assertFalse(response.is_successful()) | ||
|
||
# | ||
# Feed a data point | ||
|
@@ -355,7 +355,7 @@ def execute_data_operations( | |
# | ||
# Deleted data should be gone | ||
response: VespaResponse = app.get_data(schema=schema_name, data_id=fields_to_send["id"]) | ||
self.assertFalse(response.is_successfull()) | ||
self.assertFalse(response.is_successful()) | ||
|
||
# | ||
# Update a non-existent data point | ||
|
@@ -411,7 +411,7 @@ def execute_data_operations( | |
response.json["id"], | ||
"id:{}:{}::{}".format(schema_name, schema_name, fields_to_send["id"]), | ||
) | ||
self.assertTrue(response.is_successfull()) | ||
self.assertTrue(response.is_successful()) | ||
self.assertTrue("trace" in response.json) | ||
|
||
async def execute_async_data_operations( | ||
|
@@ -484,7 +484,7 @@ async def execute_async_data_operations( | |
schema=schema_name, data_id=fields_to_send[0]["id"], timeout=180 | ||
) | ||
self.assertEqual(response.status_code, 200) | ||
self.assertEqual(response.is_successfull(), True) | ||
self.assertEqual(response.is_successful(), True) | ||
result = response.json | ||
self.assertDictEqual( | ||
result, | ||
|
@@ -583,7 +583,7 @@ async def execute_async_data_operations( | |
) | ||
for query in queries: | ||
self.assertEqual(query.result().status_code, 200) | ||
self.assertEqual(query.result().is_successfull(), True) | ||
self.assertEqual(query.result().is_successful(), True) | ||
|
||
|
||
def get_model_endpoints_when_no_model_is_available( | ||
|
@@ -870,17 +870,17 @@ def test_streaming(self): | |
self.app.wait_for_application_up(300) | ||
|
||
def callback(response:VespaResponse, id:str): | ||
if not response.is_successfull(): | ||
if not response.is_successful(): | ||
print("Id " + id + " + failed : " + response.json) | ||
|
||
self.app.feed_iterable(docs, schema="mail", namespace="test", callback=callback) | ||
from vespa.io import VespaQueryResponse | ||
response:VespaQueryResponse = self.app.query(yql="select * from sources * where title contains 'title'", groupname="[email protected]") | ||
self.assertTrue(response.is_successfull()) | ||
self.assertTrue(response.is_successful()) | ||
self.assertEqual(response.number_documents_retrieved, 1) | ||
|
||
response:VespaQueryResponse = self.app.query(yql="select * from sources * where title contains 'title'", groupname="[email protected]") | ||
self.assertTrue(response.is_successfull()) | ||
self.assertTrue(response.is_successful()) | ||
self.assertEqual(response.number_documents_retrieved, 2) | ||
|
||
with pytest.raises(Exception): | ||
|
@@ -889,12 +889,12 @@ def callback(response:VespaResponse, id:str): | |
self.app.delete_data(schema="mail", namespace="test", data_id=2, groupname="[email protected]") | ||
|
||
response:VespaQueryResponse = self.app.query(yql="select * from sources * where title contains 'title'", groupname="[email protected]") | ||
self.assertTrue(response.is_successfull()) | ||
self.assertTrue(response.is_successful()) | ||
self.assertEqual(response.number_documents_retrieved, 1) | ||
|
||
self.app.update_data(schema="mail", namespace="test", data_id=1, groupname="[email protected]", fields={"title": "this is a new foo"}) | ||
response:VespaQueryResponse = self.app.query(yql="select * from sources * where title contains 'foo'", groupname="[email protected]") | ||
self.assertTrue(response.is_successfull()) | ||
self.assertTrue(response.is_successful()) | ||
self.assertEqual(response.number_documents_retrieved, 1) | ||
|
||
response = self.app.get_data(schema="mail", namespace="test", data_id=1, groupname="[email protected]") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters