Skip to content
Permalink
Browse files
add test for starting with relative dirs
Patch by brandonwilliams, reviewed by bereng for CASSANDRA-17084
  • Loading branch information
driftx committed Jan 14, 2022
1 parent 27c6d02 commit 6e756b31f1c3dbeb34a12ff8d999ff992f8d29b1
Showing 1 changed file with 14 additions and 0 deletions.
@@ -2,6 +2,7 @@
import logging
import parse
import pytest
import tempfile

from cassandra.concurrent import execute_concurrent_with_args

@@ -104,6 +105,19 @@ def new_commitlog_cluster_node():
write_to_trigger_fsync(session, 'ks', 'tab')
assert commitlog_size(node) > init_size, "ALTER KEYSPACE was not respected"

def test_relative_paths(self):
"""
@jira_ticket CASSANDRA-17084
"""
self.cluster.populate(1)
node1 = self.cluster.nodelist()[0]
cassdir = tempfile.mkdtemp()
os.mkdir(os.path.join(cassdir, 'bin'))
os.chdir(cassdir)
node1.set_configuration_options({'commitlog_directory': 'bin/../data/commitlog', 'data_file_directories': ['bin/../data/data']})
self.cluster.start()
self.cluster.stop()

def overlapping_data_folders(self):
"""
@jira_ticket CASSANDRA-10902

0 comments on commit 6e756b3

Please sign in to comment.