File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
src/test/scala/algolia/integration Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,13 @@ package algolia.integration
2828import algolia .AlgoliaDsl ._
2929import algolia .AlgoliaTest
3030import algolia .objects .Query
31+ import algolia .responses .ObjectID
3132
3233class DeleteByIntegrationTest extends AlgoliaTest {
3334
34- val list : Seq [Value ] = 1 to 100 map (i => Value (i, i.toString))
35+ val list : Seq [ValueTag ] = 1 to 100 map (
36+ i => ValueTag (i, i.toString, Seq (" algolia" ))
37+ )
3538 val testDeleteBy : String = getTestIndexName(" testDeleteBy" )
3639
3740 before {
@@ -60,4 +63,20 @@ class DeleteByIntegrationTest extends AlgoliaTest {
6063
6164 }
6265
66+ describe(" delete by query tag" ) {
67+
68+ val query = Query (tagFilters = Some (Seq (" algolia" )))
69+
70+ it(" should delete with a query " ) {
71+ val d = AlgoliaTest .client.execute {
72+ delete from testDeleteBy by query
73+ }
74+
75+ taskShouldBeCreatedAndWaitForIt(d, testDeleteBy)
76+ }
77+
78+ }
6379}
80+
81+ case class ValueTag (int : Int , objectID : String , _tags : Seq [String ])
82+ extends ObjectID
You can’t perform that action at this time.
0 commit comments