Skip to content

Commit 353e0fc

Browse files
committed
to fix criteria specifications
1 parent 0f9b9d0 commit 353e0fc

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

sql/bridge/src/test/scala/app/softnetwork/elastic/sql/SQLCriteriaSpec.scala

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
3030
|"query":{
3131
| "bool":{"filter":[{"term" : {
3232
| "identifier" : {
33-
| "value" : "1.0"
33+
| "value" : 1.0
3434
| }
3535
| }
3636
| }
@@ -46,7 +46,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
4646
| {
4747
| "term":{
4848
| "identifier":{
49-
| "value":"1"
49+
| "value":1
5050
| }
5151
| }
5252
| }
@@ -62,7 +62,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
6262
|"query":{
6363
| "bool":{"filter":[{"range" : {
6464
| "identifier" : {
65-
| "lt" : "1"
65+
| "lt" : 1
6666
| }
6767
| }
6868
| }
@@ -75,7 +75,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
7575
|"query":{
7676
| "bool":{"filter":[{"range" : {
7777
| "identifier" : {
78-
| "lte" : "1"
78+
| "lte" : 1
7979
| }
8080
| }
8181
| }
@@ -88,7 +88,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
8888
|"query":{
8989
| "bool":{"filter":[{"range" : {
9090
| "identifier" : {
91-
| "gt" : "1"
91+
| "gt" : 1
9292
| }
9393
| }
9494
| }
@@ -101,7 +101,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
101101
|"query":{
102102
| "bool":{"filter":[{"range" : {
103103
| "identifier" : {
104-
| "gte" : "1"
104+
| "gte" : 1
105105
| }
106106
| }
107107
| }
@@ -192,14 +192,14 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
192192
| {
193193
| "term" : {
194194
| "identifier1" : {
195-
| "value" : "1"
195+
| "value" : 1
196196
| }
197197
| }
198198
| },
199199
| {
200200
| "range" : {
201201
| "identifier2" : {
202-
| "gt" : "2"
202+
| "gt" : 2
203203
| }
204204
| }
205205
| }
@@ -218,14 +218,14 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
218218
| {
219219
| "term" : {
220220
| "identifier1" : {
221-
| "value" : "1"
221+
| "value" : 1
222222
| }
223223
| }
224224
| },
225225
| {
226226
| "range" : {
227227
| "identifier2" : {
228-
| "gt" : "2"
228+
| "gt" : 2
229229
| }
230230
| }
231231
| }
@@ -247,14 +247,14 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
247247
| {
248248
| "term" : {
249249
| "identifier1" : {
250-
| "value" : "1"
250+
| "value" : 1
251251
| }
252252
| }
253253
| },
254254
| {
255255
| "range" : {
256256
| "identifier2" : {
257-
| "gt" : "2"
257+
| "gt" : 2
258258
| }
259259
| }
260260
| }
@@ -264,7 +264,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
264264
| {
265265
| "term" : {
266266
| "identifier3" : {
267-
| "value" : "3"
267+
| "value" : 3
268268
| }
269269
| }
270270
| }
@@ -283,7 +283,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
283283
| {
284284
| "term" : {
285285
| "identifier1" : {
286-
| "value" : "1"
286+
| "value" : 1
287287
| }
288288
| }
289289
| },
@@ -293,14 +293,14 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
293293
| {
294294
| "range" : {
295295
| "identifier2" : {
296-
| "gt" : "2"
296+
| "gt" : 2
297297
| }
298298
| }
299299
| },
300300
| {
301301
| "term" : {
302302
| "identifier3" : {
303-
| "value" : "3"
303+
| "value" : 3
304304
| }
305305
| }
306306
| }
@@ -325,14 +325,14 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
325325
| {
326326
| "term" : {
327327
| "identifier1" : {
328-
| "value" : "1"
328+
| "value" : 1
329329
| }
330330
| }
331331
| },
332332
| {
333333
| "range" : {
334334
| "identifier2" : {
335-
| "gt" : "2"
335+
| "gt" : 2
336336
| }
337337
| }
338338
| }
@@ -345,14 +345,14 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
345345
| {
346346
| "term" : {
347347
| "identifier3" : {
348-
| "value" : "3"
348+
| "value" : 3
349349
| }
350350
| }
351351
| },
352352
| {
353353
| "term" : {
354354
| "identifier4" : {
355-
| "value" : "4"
355+
| "value" : 4
356356
| }
357357
| }
358358
| }
@@ -419,7 +419,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
419419
| {
420420
| "term" : {
421421
| "identifier1" : {
422-
| "value" : "1"
422+
| "value" : 1
423423
| }
424424
| }
425425
| },
@@ -432,14 +432,14 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
432432
| {
433433
| "range" : {
434434
| "nested.identifier2" : {
435-
| "gt" : "2"
435+
| "gt" : 2
436436
| }
437437
| }
438438
| },
439439
| {
440440
| "term" : {
441441
| "nested.identifier3" : {
442-
| "value" : "3"
442+
| "value" : 3
443443
| }
444444
| }
445445
| }
@@ -464,7 +464,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
464464
| {
465465
| "term" : {
466466
| "identifier1" : {
467-
| "value" : "1"
467+
| "value" : 1
468468
| }
469469
| }
470470
| },
@@ -474,7 +474,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
474474
| "query" : {
475475
| "term" : {
476476
| "nested.identifier3" : {
477-
| "value" : "3"
477+
| "value" : 3
478478
| }
479479
| }
480480
| },
@@ -497,7 +497,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
497497
| {
498498
| "term": {
499499
| "identifier1": {
500-
| "value": "1"
500+
| "value": 1
501501
| }
502502
| }
503503
| },
@@ -514,14 +514,14 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
514514
| {
515515
| "range": {
516516
| "child.identifier2": {
517-
| "gt": "2"
517+
| "gt": 2
518518
| }
519519
| }
520520
| },
521521
| {
522522
| "term": {
523523
| "child.identifier3": {
524-
| "value": "3"
524+
| "value": 3
525525
| }
526526
| }
527527
| }
@@ -549,7 +549,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
549549
| {
550550
| "term": {
551551
| "identifier1": {
552-
| "value": "1"
552+
| "value": 1
553553
| }
554554
| }
555555
| },
@@ -563,7 +563,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
563563
| {
564564
| "term": {
565565
| "child.identifier3": {
566-
| "value": "3"
566+
| "value": 3
567567
| }
568568
| }
569569
| }
@@ -588,7 +588,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
588588
| {
589589
| "term": {
590590
| "identifier1": {
591-
| "value": "1"
591+
| "value": 1
592592
| }
593593
| }
594594
| },
@@ -604,14 +604,14 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
604604
| {
605605
| "range": {
606606
| "parent.identifier2": {
607-
| "gt": "2"
607+
| "gt": 2
608608
| }
609609
| }
610610
| },
611611
| {
612612
| "term": {
613613
| "parent.identifier3": {
614-
| "value": "3"
614+
| "value": 3
615615
| }
616616
| }
617617
| }
@@ -639,7 +639,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
639639
| {
640640
| "term": {
641641
| "identifier1": {
642-
| "value": "1"
642+
| "value": 1
643643
| }
644644
| }
645645
| },
@@ -652,7 +652,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
652652
| {
653653
| "term": {
654654
| "parent.identifier3": {
655-
| "value": "3"
655+
| "value": 3
656656
| }
657657
| }
658658
| }
@@ -687,7 +687,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
687687
| {
688688
| "term" : {
689689
| "ciblage.statutComportement" : {
690-
| "value" : "1"
690+
| "value" : 1
691691
| }
692692
| }
693693
| }
@@ -834,7 +834,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
834834
| {
835835
| "term": {
836836
| "identifier": {
837-
| "value": "1"
837+
| "value": 1
838838
| }
839839
| }
840840
| }
@@ -861,7 +861,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
861861
| {
862862
| "range": {
863863
| "identifier2": {
864-
| "gt": "2"
864+
| "gt": 2
865865
| }
866866
| }
867867
| }
@@ -871,7 +871,7 @@ class SQLCriteriaSpec extends AnyFlatSpec with Matchers {
871871
| {
872872
| "term": {
873873
| "identifier3": {
874-
| "value": "3"
874+
| "value": 3
875875
| }
876876
| }
877877
| }

0 commit comments

Comments
 (0)