specify cluster in e2e taint test (#823)

This commit is contained in:
Felix Kunde 2020-02-10 16:41:51 +01:00 committed by GitHub
parent ba60e15d07
commit be6c8cd573
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -68,8 +68,8 @@ class EndToEndTestCase(unittest.TestCase):
_, failover_targets = k8s.get_pg_nodes(cluster_label) _, failover_targets = k8s.get_pg_nodes(cluster_label)
# configure minimum boundaries for CPU and memory limits # configure minimum boundaries for CPU and memory limits
minCPULimit = '250m' minCPULimit = '500m'
minMemoryLimit = '250Mi' minMemoryLimit = '500Mi'
patch_min_resource_limits = { patch_min_resource_limits = {
"data": { "data": {
"min_cpu_limit": minCPULimit, "min_cpu_limit": minCPULimit,
@ -176,7 +176,7 @@ class EndToEndTestCase(unittest.TestCase):
# patch node and test if master is failing over to one of the expected nodes # patch node and test if master is failing over to one of the expected nodes
k8s.api.core_v1.patch_node(current_master_node, body) k8s.api.core_v1.patch_node(current_master_node, body)
k8s.wait_for_master_failover(failover_targets) k8s.wait_for_master_failover(failover_targets)
k8s.wait_for_pod_start('spilo-role=replica') k8s.wait_for_pod_start('spilo-role=replica,' + cluster_label)
new_master_node, new_replica_nodes = k8s.get_pg_nodes(cluster_label) new_master_node, new_replica_nodes = k8s.get_pg_nodes(cluster_label)
self.assertNotEqual(current_master_node, new_master_node, self.assertNotEqual(current_master_node, new_master_node,