|
@@ -26,7 +26,7 @@ setup:
|
|
|
connector.put:
|
|
|
connector_id: connector-b
|
|
|
body:
|
|
|
- index_name: search-2-test
|
|
|
+ index_name: content-search-2-test
|
|
|
name: my-connector-2
|
|
|
language: en
|
|
|
is_native: true
|
|
@@ -40,13 +40,13 @@ setup:
|
|
|
- match: { count: 3 }
|
|
|
|
|
|
# Alphabetical order by index_name for results
|
|
|
- - match: { results.0.id: "connector-a" }
|
|
|
- - match: { results.0.index_name: "search-1-test" }
|
|
|
- - match: { results.0.language: "pl" }
|
|
|
+ - match: { results.0.id: "connector-b" }
|
|
|
+ - match: { results.0.index_name: "content-search-2-test" }
|
|
|
+ - match: { results.0.language: "en" }
|
|
|
|
|
|
- - match: { results.1.id: "connector-b" }
|
|
|
- - match: { results.1.index_name: "search-2-test" }
|
|
|
- - match: { results.1.language: "en" }
|
|
|
+ - match: { results.1.id: "connector-a" }
|
|
|
+ - match: { results.1.index_name: "search-1-test" }
|
|
|
+ - match: { results.1.language: "pl" }
|
|
|
|
|
|
- match: { results.2.id: "connector-c" }
|
|
|
- match: { results.2.index_name: "search-3-test" }
|
|
@@ -62,9 +62,9 @@ setup:
|
|
|
- match: { count: 3 }
|
|
|
|
|
|
# Alphabetical order by index_name for results
|
|
|
- - match: { results.0.id: "connector-b" }
|
|
|
- - match: { results.0.index_name: "search-2-test" }
|
|
|
- - match: { results.0.language: "en" }
|
|
|
+ - match: { results.0.id: "connector-a" }
|
|
|
+ - match: { results.0.index_name: "search-1-test" }
|
|
|
+ - match: { results.0.language: "pl" }
|
|
|
|
|
|
- match: { results.1.id: "connector-c" }
|
|
|
- match: { results.1.index_name: "search-3-test" }
|
|
@@ -79,13 +79,13 @@ setup:
|
|
|
- match: { count: 3 }
|
|
|
|
|
|
# Alphabetical order by index_name for results
|
|
|
- - match: { results.0.id: "connector-a" }
|
|
|
- - match: { results.0.index_name: "search-1-test" }
|
|
|
- - match: { results.0.language: "pl" }
|
|
|
+ - match: { results.0.id: "connector-b" }
|
|
|
+ - match: { results.0.index_name: "content-search-2-test" }
|
|
|
+ - match: { results.0.language: "en" }
|
|
|
|
|
|
- - match: { results.1.id: "connector-b" }
|
|
|
- - match: { results.1.index_name: "search-2-test" }
|
|
|
- - match: { results.1.language: "en" }
|
|
|
+ - match: { results.1.id: "connector-a" }
|
|
|
+ - match: { results.1.index_name: "search-1-test" }
|
|
|
+ - match: { results.1.language: "pl" }
|
|
|
|
|
|
---
|
|
|
"List Connector - empty":
|
|
@@ -118,11 +118,11 @@ setup:
|
|
|
|
|
|
- do:
|
|
|
connector.list:
|
|
|
- index_name: search-1-test,search-2-test
|
|
|
+ index_name: search-1-test,content-search-2-test
|
|
|
|
|
|
- match: { count: 2 }
|
|
|
- - match: { results.0.index_name: "search-1-test" }
|
|
|
- - match: { results.1.index_name: "search-2-test" }
|
|
|
+ - match: { results.0.index_name: "content-search-2-test" }
|
|
|
+ - match: { results.1.index_name: "search-1-test" }
|
|
|
|
|
|
|
|
|
---
|
|
@@ -147,8 +147,8 @@ setup:
|
|
|
connector_name: my-connector-1,my-connector-2
|
|
|
|
|
|
- match: { count: 2 }
|
|
|
- - match: { results.0.name: "my-connector-1" }
|
|
|
- - match: { results.1.name: "my-connector-2" }
|
|
|
+ - match: { results.0.name: "my-connector-2" }
|
|
|
+ - match: { results.1.name: "my-connector-1" }
|
|
|
|
|
|
|
|
|
---
|
|
@@ -156,10 +156,10 @@ setup:
|
|
|
- do:
|
|
|
connector.list:
|
|
|
connector_name: my-connector-1,my-connector-2
|
|
|
- index_name: search-2-test
|
|
|
+ index_name: content-search-2-test
|
|
|
|
|
|
- match: { count: 1 }
|
|
|
- - match: { results.0.index_name: "search-2-test" }
|
|
|
+ - match: { results.0.index_name: "content-search-2-test" }
|
|
|
- match: { results.0.name: "my-connector-2" }
|
|
|
|
|
|
|
|
@@ -230,13 +230,13 @@ setup:
|
|
|
- match: { count: 3 }
|
|
|
|
|
|
# Alphabetical order by index_name for results
|
|
|
- - match: { results.0.id: "connector-a" }
|
|
|
- - match: { results.0.index_name: "search-1-test" }
|
|
|
- - match: { results.0.language: "pl" }
|
|
|
+ - match: { results.0.id: "connector-b" }
|
|
|
+ - match: { results.0.index_name: "content-search-2-test" }
|
|
|
+ - match: { results.0.language: "en" }
|
|
|
|
|
|
- - match: { results.1.id: "connector-b" }
|
|
|
- - match: { results.1.index_name: "search-2-test" }
|
|
|
- - match: { results.1.language: "en" }
|
|
|
+ - match: { results.1.id: "connector-a" }
|
|
|
+ - match: { results.1.index_name: "search-1-test" }
|
|
|
+ - match: { results.1.language: "pl" }
|
|
|
|
|
|
- match: { results.2.id: "connector-c" }
|
|
|
- match: { results.2.index_name: "search-3-test" }
|
|
@@ -255,13 +255,13 @@ setup:
|
|
|
- match: { count: 3 }
|
|
|
|
|
|
# Alphabetical order by index_name for results
|
|
|
- - match: { results.0.id: "connector-a" }
|
|
|
- - match: { results.0.index_name: "search-1-test" }
|
|
|
- - match: { results.0.language: "pl" }
|
|
|
+ - match: { results.0.id: "connector-b" }
|
|
|
+ - match: { results.0.index_name: "content-search-2-test" }
|
|
|
+ - match: { results.0.language: "en" }
|
|
|
|
|
|
- - match: { results.1.id: "connector-b" }
|
|
|
- - match: { results.1.index_name: "search-2-test" }
|
|
|
- - match: { results.1.language: "en" }
|
|
|
+ - match: { results.1.id: "connector-a" }
|
|
|
+ - match: { results.1.index_name: "search-1-test" }
|
|
|
+ - match: { results.1.language: "pl" }
|
|
|
|
|
|
- match: { results.2.id: "connector-c" }
|
|
|
- match: { results.2.index_name: "search-3-test" }
|