forked from scylladb/scylla-cluster-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_cassandra_harry.py
45 lines (35 loc) · 1.58 KB
/
test_cassandra_harry.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# See LICENSE for more details.
#
# Copyright (c) 2022 ScyllaDB
import pytest
from sdcm.cassandra_harry_thread import CassandraHarryThread
from unit_tests.dummy_remote import LocalLoaderSetDummy
pytestmark = [
pytest.mark.usefixtures("events"),
pytest.mark.integration,
]
@pytest.mark.skip("test isn't yet fully working")
def test_01_cassandra_harry(docker_scylla, params):
"""
Test to help integrated new version/docker images of cassandra-harry
TODO: Test isn't really running cassandra-harry correctly, since there only one node
DEBUG LocalCmdRunner:base.py:222 com.datastax.driver.core.exceptions.NoHostAvailableException:
All host(s) tried for query failed (tried: /172.17.0.2:9042 (com.datastax.driver.core.exceptions.UnavailableException:
Not enough replicas available for query at consistency QUORUM (2 required but only 1 alive)))
"""
loader_set = LocalLoaderSetDummy()
cmd = "cassandra-harry -run-time 1 -run-time-unit MINUTES"
harry_thread = CassandraHarryThread(
loader_set, cmd, node_list=[docker_scylla], timeout=10, params=params
)
harry_thread.run()
harry_thread.verify_results()