Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Signed-off-by: Rick Brouwer <[email protected]>
  • Loading branch information
rickbrouwer committed Oct 19, 2024
1 parent ec0e894 commit af86411
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tests/scalers/elasticsearch/elasticsearch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,21 @@ spec:
query: |
{
"query": {
"match_all": {}
"bool": {
"must": [
{
"range": {
"@timestamp": {
"gte": "now-1m",
"lte": "now"
}
}
},
{
"match_all": {}
}
]
}
}
}
valueLocation: "hits.total.value"
Expand Down Expand Up @@ -401,6 +415,7 @@ func addElements(t *testing.T, count int) {
_, err = ExecuteCommand(fmt.Sprintf("%s -XPOST http://localhost:9200/%s/_doc -d '%s'", kubectlElasticExecCmd, indexName, result))
assert.NoErrorf(t, err, "cannot execute command - %s", err)
}
time.Sleep(10 * time.Second)
}

func getElasticsearchDoc() (interface{}, error) {
Expand Down

0 comments on commit af86411

Please sign in to comment.