"Fossies" - the Fresh Open Source Software Archive

Member "swift-2.21.0/test/unit/proxy/test_mem_server.py" (25 Mar 2019, 1940 Bytes) of package /linux/misc/openstack/swift-2.21.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "test_mem_server.py": 2.19.1_vs_2.21.0.

    1 # Copyright (c) 2010-2013 OpenStack, LLC.
    2 #
    3 # Licensed under the Apache License, Version 2.0 (the "License");
    4 # you may not use this file except in compliance with the License.
    5 # You may obtain a copy of the License at
    6 #
    7 #    http://www.apache.org/licenses/LICENSE-2.0
    8 #
    9 # Unless required by applicable law or agreed to in writing, software
   10 # distributed under the License is distributed on an "AS IS" BASIS,
   11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
   12 # implied.
   13 # See the License for the specific language governing permissions and
   14 # limitations under the License.
   15 
   16 import unittest
   17 
   18 from test.unit.proxy import test_server
   19 
   20 from swift.obj import mem_server
   21 
   22 
   23 def setUpModule():
   24     test_server.do_setup(mem_server)
   25 
   26 
   27 def tearDownModule():
   28     test_server.tearDownModule()
   29 
   30 
   31 class TestController(test_server.TestController):
   32     pass
   33 
   34 
   35 class TestProxyServer(test_server.TestProxyServer):
   36     pass
   37 
   38 
   39 class TestReplicatedObjectController(
   40         test_server.TestReplicatedObjectController):
   41     def test_PUT_no_etag_fallocate(self):
   42         # mem server doesn't call fallocate(), believe it or not
   43         pass
   44 
   45     # these tests all go looking in the filesystem
   46     def test_policy_IO(self):
   47         pass
   48 
   49     def test_GET_short_read(self):
   50         pass
   51 
   52     def test_GET_short_read_resuming(self):
   53         pass
   54 
   55 
   56 class TestECObjectController(test_server.TestECObjectController):
   57     def test_PUT_ec(self):
   58         pass
   59 
   60     def test_PUT_ec_multiple_segments(self):
   61         pass
   62 
   63     def test_PUT_ec_fragment_archive_etag_mismatch(self):
   64         pass
   65 
   66     def test_reload_ring_ec(self):
   67         pass
   68 
   69 
   70 class TestContainerController(test_server.TestContainerController):
   71     pass
   72 
   73 
   74 class TestAccountController(test_server.TestAccountController):
   75     pass
   76 
   77 
   78 class TestAccountControllerFakeGetResponse(
   79         test_server.TestAccountControllerFakeGetResponse):
   80     pass
   81 
   82 
   83 if __name__ == '__main__':
   84     unittest.main()