Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: elasticsearch uses wrong version in docker-compose #11110

Closed
powersj opened this issue May 17, 2022 · 0 comments · Fixed by #11111
Closed

tests: elasticsearch uses wrong version in docker-compose #11110

powersj opened this issue May 17, 2022 · 0 comments · Fixed by #11111
Labels
area/elasticsearch bug unexpected problem or unintended behavior

Comments

@powersj
Copy link
Contributor

powersj commented May 17, 2022

Relevant telegraf.conf

n/a

Logs from Telegraf

--- FAIL: TestElasticsearchQuery (0.01s)
    elasticsearch_query_test.go:583: 
        	Error Trace:	elasticsearch_query_test.go:583
        	            				once.go:68
        	            				once.go:59
        	            				elasticsearch_query_test.go:581
        	Error:      	Received unexpected error:
        	            	elasticsearch version 7.2.0 not supported (currently supported versions are 5.x and 6.x)
        	Test:       	TestElasticsearchQuery
--- FAIL: TestElasticsearchQuery_getMetricFields (0.02s)
    elasticsearch_query_test.go:656: 
        	Error Trace:	elasticsearch_query_test.go:656
        	Error:      	Received unexpected error:
        	            	elasticsearch version 7.2.0 not supported (currently supported versions are 5.x and 6.x)
        	Test:       	TestElasticsearchQuery_getMetricFields
FAIL
FAIL	github.com/influxdata/telegraf/plugins/inputs/elasticsearch_query	0.116s

System info

master

Docker

No response

Steps to reproduce

  1. docker-compose up
  2. go test -count=1 -race -timeout 30s ./plugins/inputs/elasticsearch_query/...

Expected behavior

tests use a supported version of elasticsearch

Actual behavior

tests fail the version check

Additional info

-    image: docker.elastic.co/elasticsearch/elasticsearch:7.2.0
+    image: docker.elastic.co/elasticsearch/elasticsearch:6.8.23
@powersj powersj added the bug unexpected problem or unintended behavior label May 17, 2022
powersj added a commit to powersj/telegraf that referenced this issue May 17, 2022
powersj added a commit to powersj/telegraf that referenced this issue May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/elasticsearch bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant