]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
storage: change service name from 'storageserver' to 'storage'
authorBrian Warner <warner@allmydata.com>
Wed, 6 Feb 2008 03:28:59 +0000 (20:28 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 6 Feb 2008 03:28:59 +0000 (20:28 -0700)
src/allmydata/storage.py
src/allmydata/test/test_client.py
src/allmydata/test/test_system.py

index c50aa58a2125589e631f530f51d1f4e4164265a5..d720ef9b0b4016180bd4abb7cdbd2b437d7a6280 100644 (file)
@@ -668,7 +668,7 @@ def create_mutable_sharefile(filename, my_nodeid, write_enabler, parent):
 
 class StorageServer(service.MultiService, Referenceable):
     implements(RIStorageServer, IStatsProducer)
-    name = 'storageserver'
+    name = 'storage'
 
     # we're pretty narrow-minded right now
     OLDEST_SUPPORTED_VERSION = allmydata.__version__
index 2cab1d4963c87803352c504aaf9a1907fb628c6e..6f2e2f5bf5883e759b24426f5224f16a882b8eb6 100644 (file)
@@ -53,8 +53,7 @@ class Basic(unittest.TestCase):
         open(os.path.join(basedir, "vdrive.furl"), "w").write("")
         open(os.path.join(basedir, "sizelimit"), "w").write("1000")
         c = client.Client(basedir)
-        self.failUnlessEqual(c.getServiceNamed("storageserver").sizelimit,
-                             1000)
+        self.failUnlessEqual(c.getServiceNamed("storage").sizelimit, 1000)
 
     def test_sizelimit_2(self):
         basedir = "client.Basic.test_sizelimit_2"
@@ -63,8 +62,7 @@ class Basic(unittest.TestCase):
         open(os.path.join(basedir, "vdrive.furl"), "w").write("")
         open(os.path.join(basedir, "sizelimit"), "w").write("10K")
         c = client.Client(basedir)
-        self.failUnlessEqual(c.getServiceNamed("storageserver").sizelimit,
-                             10*1000)
+        self.failUnlessEqual(c.getServiceNamed("storage").sizelimit, 10*1000)
 
     def test_sizelimit_3(self):
         basedir = "client.Basic.test_sizelimit_3"
@@ -73,7 +71,7 @@ class Basic(unittest.TestCase):
         open(os.path.join(basedir, "vdrive.furl"), "w").write("")
         open(os.path.join(basedir, "sizelimit"), "w").write("5mB")
         c = client.Client(basedir)
-        self.failUnlessEqual(c.getServiceNamed("storageserver").sizelimit,
+        self.failUnlessEqual(c.getServiceNamed("storage").sizelimit,
                              5*1000*1000)
 
     def test_sizelimit_4(self):
@@ -83,7 +81,7 @@ class Basic(unittest.TestCase):
         open(os.path.join(basedir, "vdrive.furl"), "w").write("")
         open(os.path.join(basedir, "sizelimit"), "w").write("78Gb")
         c = client.Client(basedir)
-        self.failUnlessEqual(c.getServiceNamed("storageserver").sizelimit,
+        self.failUnlessEqual(c.getServiceNamed("storage").sizelimit,
                              78*1000*1000*1000)
 
     def test_sizelimit_bad(self):
@@ -93,8 +91,7 @@ class Basic(unittest.TestCase):
         open(os.path.join(basedir, "vdrive.furl"), "w").write("")
         open(os.path.join(basedir, "sizelimit"), "w").write("bogus")
         c = client.Client(basedir)
-        self.failUnlessEqual(c.getServiceNamed("storageserver").sizelimit,
-                             None)
+        self.failUnlessEqual(c.getServiceNamed("storage").sizelimit, None)
 
     def _permute(self, c, key):
         return [ peerid
@@ -127,7 +124,7 @@ class Basic(unittest.TestCase):
         open(os.path.join(basedir, "introducer.furl"), "w").write("")
         open(os.path.join(basedir, "vdrive.furl"), "w").write("")
         c = client.Client(basedir)
-        ss = c.getServiceNamed("storageserver")
+        ss = c.getServiceNamed("storage")
         mine, oldest = ss.remote_get_versions()
         self.failUnlessEqual(mine, str(allmydata.__version__))
         self.failIfEqual(str(allmydata.__version__), "unknown")
index 15a7c62c10bf4340e415451d14fdaf24e5a13996..3834696bec75d97c482a5a33f06107da538af3c3 100644 (file)
@@ -288,7 +288,7 @@ class SystemTest(testutil.SignalMixin, testutil.PollMixin, unittest.TestCase):
                                                       add_to_sparent=True))
         def _added(extra_node):
             self.extra_node = extra_node
-            extra_node.getServiceNamed("storageserver").sizelimit = 0
+            extra_node.getServiceNamed("storage").sizelimit = 0
         d.addCallback(_added)
 
         HELPER_DATA = "Data that needs help to upload" * 1000