Skip to content

Commit

Permalink
Try to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sayden committed Jun 26, 2020
1 parent cc8d12f commit 4d66925
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion metricbeat/module/couchbase/_meta/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG COUCHBASE_VERSION
FROM couchbase:${COUCHBASE_VERSION}
HEALTHCHECK --interval=1s --retries=90 CMD [ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8091/pools/default/buckets/beer-sample)" -eq "200" ]
HEALTHCHECK --interval=1s --retries=90 CMD [ "$(curl -s -o /dev/null -w ''%{http_code}'' -u Administrator:password http://localhost:8091/pools/default/buckets/beer-sample)" -eq "200" ]
COPY configure-node.sh /opt/couchbase

CMD ["/opt/couchbase/configure-node.sh"]
3 changes: 3 additions & 0 deletions metricbeat/module/couchbase/test_couchbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ def test_couchbase(self, metricset):
couchbase metricsets tests
"""
self.check_metricset("couchbase", metricset, self.get_hosts(), self.FIELDS)

def get_hosts(self):
return ["http://Administrator:password@" + self.compose_host()]

0 comments on commit 4d66925

Please sign in to comment.