Heloo,
i am running test suit on beat version 6.4.1 and getting some error.
Steps:
- Clone beats source code from git
- Download and set GO lang and GOPATH.
- Run
make testsuite
command.
o/p:
command [go test -cover -coverprofile /tmp/gotestcover-206680631 github.com/elastic/beats/libbeat/processors/add_kubernetes_metadata]: exit status 2 # github.com/elastic/beats/libbeat/processors/add_kubernetes_metadata /usr/local/go/src/github.com/elastic/beats/libbeat/processors/add_kubernetes_metadata/kubernetes.go:106: Debug call has arguments but no formatting directives /usr/local/go/src/github.com/elastic/beats/libbeat/processors/add_kubernetes_metadata/kubernetes.go:115: Err format %t has arg &kubernetes.Pod{} of wrong type *github.com/elastic/beats/vendor/github.com/ericchiang/k8s/apis/core/v1.Pod FAIL github.com/elastic/beats/libbeat/processors/add_kubernetes_metadata [build failed] ? github.com/elastic/beats/libbeat/publisher/queue [no test files] ? github.com/elastic/beats/libbeat/publisher/queue/queuetest [no test files] ? github.com/elastic/beats/libbeat/service [no test files] ok github.com/elastic/beats/libbeat/publisher/testing 0.007s coverage: 53.3% of statements ok github.com/elastic/beats/libbeat/publisher/pipeline 0.014s coverage: 6.1% of statements ok github.com/elastic/beats/libbeat/template 0.007s coverage: 54.8% of statements ok github.com/elastic/beats/libbeat/testing 0.007s coverage: 87.3% of statements ? github.com/elastic/beats/libbeat/tests/compose [no test files] ? github.com/elastic/beats/libbeat/version [no test files] ok github.com/elastic/beats/libbeat/testing/mapvaltest 0.009s coverage: 100.0% of statements ? github.com/elastic/beats/libbeat/tests/docker [no test files] ok github.com/elastic/beats/libbeat/publisher/queue/memqueue 1.883s coverage: 76.8% of statements ok github.com/elastic/beats/libbeat/outputs/logstash 10.158s coverage: 73.0% of statements ok github.com/elastic/beats/libbeat/publisher/queue/spool 4.888s coverage: 61.9% of statements test failed make[2]: *** [unit-tests] Error 1 make[2]: Leaving directory `/root/gocode/src/github.com/elastic/beats/libbeat' make[1]: *** [testsuite] Error 2 make[1]: Leaving directory `/root/gocode/src/github.com/elastic/beats/libbeat' make: *** [testsuite] Error 1
Test suite is failed.
If i run the command as below:
make testsuite -i
its ignoring the failed test and going for docker-compose file and giving another error as below.
o/p:
ignored as previous failed:
ok github.com/elastic/beats/libbeat/outputs/logstash 10.116s coverage: 73.0% of statements ok github.com/elastic/beats/libbeat/publisher/queue/spool 6.633s coverage: 61.1% of statements test failed make[2]: [unit-tests] Error 1 (ignored) make[2]: Leaving directory `/root/gocode/src/github.com/elastic/beats/libbeat' if [ false = true ]; then \ make stress-tests; \ fi # Setups environment if TEST_ENVIRONMENT is set to true # Only runs integration tests with test environment if [ true = true ]; then \ make integration-tests-environment; \ fi
Docker-compose error:
---> ed94d92da038 Removing intermediate container c0ee3dbc03cf Step 15/31 : RUN /download.sh $DOWNLOAD_URL $ELASTIC_VERSION $CACHE_BUST && rm /download.sh ---> Running in 55efc8cb0e36 Removing intermediate container 55efc8cb0e36 ERROR: Service 'elasticsearch' failed to build: The command '/bin/sh -c /download.sh $DOWNLOAD_URL $ELASTIC_VERSION $CACHE_BUST && rm /download.sh' returned a non-zero code: 28 make[2]: [build-image] Error 1 (ignored)
anyone help??