Skip to content

Commit

Permalink
fix unit tests for query and schema
Browse files Browse the repository at this point in the history
Refactor of unit tests, and addition of query tests with variables and aggregations
  • Loading branch information
m-Bilal authored Dec 24, 2024
2 parents 70ad46b + 57b5369 commit a646d31
Show file tree
Hide file tree
Showing 38 changed files with 3,154 additions and 2,481 deletions.
741 changes: 372 additions & 369 deletions connector/connector_test.go

Large diffs are not rendered by default.

1,655 changes: 43 additions & 1,612 deletions connector/fields_test.go

Large diffs are not rendered by default.

609 changes: 109 additions & 500 deletions connector/query_test.go

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions testdata/unit_tests/fields_tests/books/configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"indices": {
"my_book_index": {
"mappings": {
"properties": {
"author": {
"type": "keyword"
},
"description": {
"type": "text"
},
"genre": {
"type": "keyword"
},
"pages": {
"type": "integer"
},
"published_date": {
"format": "yyyy-MM-dd",
"type": "date"
},
"rating": {
"type": "float"
},
"title": {
"fields": {
"keyword": {
"type": "keyword"
}
},
"type": "text"
}
}
}
}
},
"queries": {}
}
Loading

0 comments on commit a646d31

Please sign in to comment.