Skip to content

Commit

Permalink
Disable kubernetes integration tests (#8209) (#8213)
Browse files Browse the repository at this point in the history
Disable kubernetes integration tests

They are not deterministic as of today, the kubernetes docker-compose
is failing sometimes

(cherry picked from commit 23e013a)
  • Loading branch information
exekias committed Sep 4, 2018
1 parent 1084012 commit a1d865d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 25 deletions.
36 changes: 18 additions & 18 deletions metricbeat/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
- ./module/jolokia/_meta/env
- ./module/kafka/_meta/env
- ./module/kibana/_meta/env
- ./module/kubernetes/_meta/env
#- ./module/kubernetes/_meta/env
- ./module/logstash/_meta/env
- ./module/memcached/_meta/env
- ./module/mongodb/_meta/env
Expand Down Expand Up @@ -108,23 +108,23 @@ services:
kibana:
build: ./module/kibana/_meta

kubernetes:
build: ./module/kubernetes/_meta
network_mode: host
pid: host
privileged: true
volumes:
- /:/rootfs:ro
- /sys:/sys
- /var/lib/docker:/var/lib/docker
- /var/run:/var/run

kubestate:
build:
context: ./module/kubernetes/_meta/
dockerfile: Dockerfile.kube-state
depends_on:
- kubernetes
#kubernetes:
# build: ./module/kubernetes/_meta
# network_mode: host
# pid: host
# privileged: true
# volumes:
# - /:/rootfs:ro
# - /sys:/sys
# - /var/lib/docker:/var/lib/docker
# - /var/run:/var/run

#kubestate:
# build:
# context: ./module/kubernetes/_meta/
# dockerfile: Dockerfile.kube-state
# depends_on:
# - kubernetes

logstash:
build: ./module/logstash/_meta
Expand Down
15 changes: 8 additions & 7 deletions metricbeat/tests/system/test_kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,25 @@

class Test(metricbeat.BaseTest):

COMPOSE_SERVICES = ['kubernetes'] # 'kubestate']
# Tests are disabled as current docker-compose settings fail to start in many cases:
# COMPOSE_SERVICES = ['kubernetes'] # 'kubestate']

@unittest.skipUnless(metricbeat.INTEGRATION_TESTS, "integration test")
@unittest.skipUnless(False and metricbeat.INTEGRATION_TESTS, "integration test")
def test_kubelet_node(self):
""" Kubernetes kubelet node metricset tests """
self._test_metricset('node', 1, self.get_kubelet_hosts())

@unittest.skipUnless(metricbeat.INTEGRATION_TESTS, "integration test")
@unittest.skipUnless(False and metricbeat.INTEGRATION_TESTS, "integration test")
def test_kubelet_system(self):
""" Kubernetes kubelet system metricset tests """
self._test_metricset('system', 2, self.get_kubelet_hosts())

@unittest.skipUnless(metricbeat.INTEGRATION_TESTS, "integration test")
@unittest.skipUnless(False and metricbeat.INTEGRATION_TESTS, "integration test")
def test_kubelet_pod(self):
""" Kubernetes kubelet pod metricset tests """
self._test_metricset('pod', 1, self.get_kubelet_hosts())

@unittest.skipUnless(metricbeat.INTEGRATION_TESTS, "integration test")
@unittest.skipUnless(False and metricbeat.INTEGRATION_TESTS, "integration test")
def test_kubelet_container(self):
""" Kubernetes kubelet container metricset tests """
self._test_metricset('container', 1, self.get_kubelet_hosts())
Expand All @@ -35,13 +36,13 @@ def test_state_node(self):
""" Kubernetes state node metricset tests """
self._test_metricset('state_node', 1, self.get_kube_state_hosts())

@unittest.skipUnless(metricbeat.INTEGRATION_TESTS, "integration test")
@unittest.skipUnless(False and metricbeat.INTEGRATION_TESTS, "integration test")
@unittest.skip("flacky kube-state-metrics container healthcheck")
def test_state_pod(self):
""" Kubernetes state pod metricset tests """
self._test_metricset('state_pod', 1, self.get_kube_state_hosts())

@unittest.skipUnless(metricbeat.INTEGRATION_TESTS, "integration test")
@unittest.skipUnless(False and metricbeat.INTEGRATION_TESTS, "integration test")
@unittest.skip("flacky kube-state-metrics container healthcheck")
def test_state_container(self):
""" Kubernetes state container metricset tests """
Expand Down

0 comments on commit a1d865d

Please sign in to comment.