"""
network = Attribute("network", "IPv4 Network Address",
- flags = Flags.ExecReadOnly)
+ flags = Flags.Design)
cipher = Attribute("cipher",
"Cipher to encript communication. "
def _register_attributes(cls):
action = Attribute("action", "Either add or del",
allowed = ["add", "del"],
- flags = Flags.ExecReadOnly)
+ flags = Flags.Design)
network = Attribute("network", "IPv4 Network Address",
- flags = Flags.ExecReadOnly)
+ flags = Flags.Design)
cls._register_attribute(action)
cls._register_attribute(network)
os.remove(f1.name)
shutil.rmtree(dirpath)
- def test_rcopy_slist(self):
+ def test_rcopy_list(self):
env = test_environment()
user = getpass.getuser()
host = "localhost"
f1.close()
f1.name
- source = "%s;%s" % (dirpath, f1.name)
+ # Copy a list of files
+ source = [dirpath, f1.name]
destdir = tempfile.mkdtemp()
dest = "%s@%s:%s" % (user, host, destdir)
- rcopy(source, dest, port = env.port, agent = True, recursive = True)
+ ((out, err), proc) = rcopy(source, dest, port = env.port, agent = True, recursive = True)
files = []
def recls(files, dirname, names):
files.extend(names)
os.path.walk(destdir, recls, files)
-
+
origfiles = map(lambda s: os.path.basename(s), [dirpath, f.name, f1.name])
self.assertEquals(sorted(origfiles), sorted(files))