ACCUMULO-3333 Pass in username and password to `accumulo shell`

Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/e74986ae
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/e74986ae
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/e74986ae

Branch: refs/heads/master
Commit: e74986aee8da7021cb083bc56fc971b4dc9bc2ab
Parents: 7356a88
Author: Josh Elser <els...@apache.org>
Authored: Thu Nov 13 16:51:39 2014 -0800
Committer: Josh Elser <els...@apache.org>
Committed: Thu Nov 13 16:51:39 2014 -0800

----------------------------------------------------------------------
 test/system/bench/cloudstone1/cloudstone1.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/e74986ae/test/system/bench/cloudstone1/cloudstone1.py
----------------------------------------------------------------------
diff --git a/test/system/bench/cloudstone1/cloudstone1.py 
b/test/system/bench/cloudstone1/cloudstone1.py
index cfd8f61..a615b59 100755
--- a/test/system/bench/cloudstone1/cloudstone1.py
+++ b/test/system/bench/cloudstone1/cloudstone1.py
@@ -31,8 +31,8 @@ class CloudStone1(Benchmark):
     def runTest(self):
         code, out, err = cloudshell.run(self.username, self.password, 'table 
!METADATA\nscan\n')
         self.assertEqual(code, 0, "Could not scan the !METADATA table. %s %s" 
% (out, err))
-        results = runAll('echo help | %s shell' %
-                         accumulo('bin', 'accumulo'))
+        results = runAll('echo help | %s shell -u %s -p %s' %
+                         (accumulo('bin', 'accumulo'), self.username, 
self.password))
                          
     def setSpeed(self, speed):
         "We want to override this method but no speed can be set"

Reply via email to