forked from scylladb/scylla-cluster-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gemini_test.py
41 lines (32 loc) · 1.18 KB
/
gemini_test.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
#!/usr/bin/env python
# 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) 2018 ScyllaDB
from avocado import main
from sdcm.tester import ClusterTester
class GeminiTest(ClusterTester):
"""
Test Scylla with gemini - tool for testing data integrity
https://github.com/scylladb/gemini
:avocado: enable
"""
def test_random_load(self):
"""
Run gemini tool
"""
cmd = self.params.get('gemini_cmd')
self.log.debug('Start gemini benchmark')
test_queue = self.run_gemini(cmd=cmd)
results = self.get_gemini_results(queue=test_queue)
self.log.debug(results)
assert results, "Gemini results are not found."
assert results[0]['read errors'] == 0, "Gemini read errors."