summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2013-11-21 13:30:11 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-22 09:27:40 +0100
commit8b79f410a4d36991e01abeb5209f4186f1a62bc6 (patch)
treeaa098c67c4c0ffc1440bc30eec99c0038b8bf841 /tests
parent8eff74f40b484c61ba1dc50ccb4896cb4313606b (diff)
downloadqtenginio-8b79f410a4d36991e01abeb5209f4186f1a62bc6.tar.gz
API: Rename search to fullTextSearch
[ChangeLog][API] Renamed the search function to fullTextSearch Change-Id: I4c667ccbf89048e9ef49d26d4fb80ed52153dfde Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/enginioclient/tst_enginioclient.cpp14
-rw-r--r--tests/auto/qmltests/tst_enginioclient.qml2
-rw-r--r--tests/auto/qmltests/tst_enginioreply.qml6
3 files changed, 11 insertions, 11 deletions
diff --git a/tests/auto/enginioclient/tst_enginioclient.cpp b/tests/auto/enginioclient/tst_enginioclient.cpp
index fbfe21d..c364c31 100644
--- a/tests/auto/enginioclient/tst_enginioclient.cpp
+++ b/tests/auto/enginioclient/tst_enginioclient.cpp
@@ -96,7 +96,7 @@ private slots:
void creator_updater();
void sharingNetworkManager();
void lifeTimeOfNetworkManager();
- void search();
+ void fullTextSearch();
void assignUserToGroup();
private:
@@ -675,7 +675,7 @@ void tst_EnginioClient::query_users_filter()
QVERIFY(!data["results"].toArray().count());
}
-void tst_EnginioClient::search()
+void tst_EnginioClient::fullTextSearch()
{
EnginioClient client;
QObject::connect(&client, SIGNAL(error(EnginioReply *)), this, SLOT(error(EnginioReply *)));
@@ -692,7 +692,7 @@ void tst_EnginioClient::search()
"\"search\": {\"phrase\": \"Query\"}}").object();
QVERIFY(!searchQuery.isEmpty());
- const EnginioReply* reqId = client.search(searchQuery);
+ const EnginioReply* reqId = client.fullTextSearch(searchQuery);
QVERIFY(reqId);
@@ -720,7 +720,7 @@ void tst_EnginioClient::search()
"\"search\": {\"phrase\": \"object OR test\", \"properties\": [\"stringValue\"]}}").object();
QVERIFY(!searchQuery.isEmpty());
- const EnginioReply* reqId = client.search(searchQuery);
+ const EnginioReply* reqId = client.fullTextSearch(searchQuery);
QVERIFY(reqId);
QTRY_COMPARE(spy.count(), 1);
@@ -1183,9 +1183,9 @@ void tst_EnginioClient::backendFakeReply()
QVERIFY(client.remove(objectTypeOnly, EnginioClient::AccessControlOperation));
QVERIFY(client.remove(empty, EnginioClient::UsergroupMembersOperation));
- QVERIFY(client.search(empty));
- QVERIFY(client.search(objectTypeOnly));
- QVERIFY(client.search(objectWithObjectTypes));
+ QVERIFY(client.fullTextSearch(empty));
+ QVERIFY(client.fullTextSearch(objectTypeOnly));
+ QVERIFY(client.fullTextSearch(objectWithObjectTypes));
QVERIFY(client.downloadFile(empty));
QVERIFY(client.uploadFile(empty, QUrl()));
diff --git a/tests/auto/qmltests/tst_enginioclient.qml b/tests/auto/qmltests/tst_enginioclient.qml
index b1337ca..31d0661 100644
--- a/tests/auto/qmltests/tst_enginioclient.qml
+++ b/tests/auto/qmltests/tst_enginioclient.qml
@@ -122,7 +122,7 @@ Item {
fake.remove(objectTypeOnly, Enginio.AccessControlOperation),
fake.remove(empty, Enginio.UsergroupMembersOperation),
- fake.search(empty),
+ fake.fullTextSearch(empty),
fake.downloadFile(empty),
fake.uploadFile(empty, "")]
diff --git a/tests/auto/qmltests/tst_enginioreply.qml b/tests/auto/qmltests/tst_enginioreply.qml
index 064ad19..075c26c 100644
--- a/tests/auto/qmltests/tst_enginioreply.qml
+++ b/tests/auto/qmltests/tst_enginioreply.qml
@@ -165,7 +165,7 @@ Item {
"errorString": "{\"errors\": [{\"message\": \"has already been taken\",\"property\": \"username\",\"reason\": \"ValidationFailed\"}]}",
},
{
- "op": "search",
+ "op": "fullTextSearch",
"q": { "objectTypes": "notAnArrayAndSearchMissing" },
"area": null,
"isError": true,
@@ -175,7 +175,7 @@ Item {
"errorString": "{\"errors\": [{\"message\": \"Fulltext Search: 'objectTypes' parameter is missing or it is not an array\",\"reason\": \"BadRequest\"}]}",
},
{
- "op": "search",
+ "op": "fullTextSearch",
"q": { "objectType": "notAnArrayAndSearchMissing" },
"area": null,
"isError": true,
@@ -185,7 +185,7 @@ Item {
"errorString": "{\"errors\": [{\"message\": \"Fulltext Search: 'objectTypes' parameter is missing or it is not an array\",\"reason\": \"BadRequest\"}]}",
},
{
- "op": "search",
+ "op": "fullTextSearch",
"q": { "objectTypes": ["searchIsMissing"] },
"area": null,
"isError": true,