From d9371905744342356f4e4a0696500ca2a8f626b1 Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Tue, 13 Jan 2015 23:24:21 -0500 Subject: tests/crypto_test.py: uses get_nodedirs function to fetch list of node directories. --- tests/crypto_test.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/crypto_test.py b/tests/crypto_test.py index 042b88b..543f4b0 100644 --- a/tests/crypto_test.py +++ b/tests/crypto_test.py @@ -22,8 +22,10 @@ from glob import glob from nose.tools import * from os import path, remove -from combox.file import * +from combox.config import get_nodedirs from combox.crypto import * +from combox.file import * + CONFIG_DIR = path.join('tests', 'test-config') @@ -71,8 +73,8 @@ def test_split_encryption(): ciphered_shards = encrypt_shards(f_shards, config['topsecret']) # write ciphered shards to disk - f_basename = "%s.ciphered" % path.basename(f) - nodes = [path.abspath(node['path']) for node in config['nodes_info'].itervalues()] + f_basename = path.basename(f) + nodes = get_nodedirs(config) write_shards(ciphered_shards, nodes, f_basename) # read ciphered shards from disk -- cgit v1.2.3