Mock SysLogHandler for proxy/test_server.py
Mock SysLogHandler for proxy/test_server.py

Our tests get rather grabby with file descriptors, mostly due to the
SysLogHandler. In recent work I'm doing, my additional tests put
things just over the 1024 limit and tests would start to fail
somewhat randomly. This alleviates the problem by mocking out one of
the bigger users of SysLogHandler, proxy/test_server.py. If you want
to verify this has an impact, you can put the following in your
proxy/test_server.py's overall teardown method and try it with and
without the mocking:

    import subprocess
    print >>sys.stderr, '%s OPEN FILES' % len(subprocess.Popen(
        ['lsof'], stdout=subprocess.PIPE).communicate()[0].split('\n'))

Change-Id: I1bd3efe46ee69d09a32c5a964f04e36e46506446

hurricanerix/swift,zaitcev/swift-lfs,dencaval/swift,Akanoa/swift,JioCloud/swift,smerritt/swift,matthewoliver/swift,thiagodasilva/swift,bradleypj823/swift,tipabu/swift,matthewoliver/swift,smerritt/swift,hbhdytf/mac,swiftstack/swift,psachin/swift,IPVL/swift-kilo,bkolli/swift,xiaoguoai/ec-dev-swift,levythu/swift,hurricanerix/swift,bradleypj823/swift,psachin/swift,hbhdytf/mac2,tipabu/swift,NeCTAR-RC/swift,zaitcev/swift-lfs,zackmdavis/swift,mjzmjz/swift,IPVL/swift-kilo,notmyname/swift,orion/swift-config,smerritt/swift,levythu/swift,Khushbu27/Tutorial,psachin/swift,maginatics/swift,hbhdytf/mac,AfonsoFGarcia/swift,redhat-openstack/swift,Akanoa/swift,eatbyte/Swift,hurricanerix/swift,redbo/swift,anishnarang/gswift,clayg/swift,larsbutler/swift,thiagodasilva/swift,Em-Pan/swift,bouncestorage/swift,sarvesh-ranjan/swift,iostackproject/IO-Bandwidth-Differentiation,psachin/swift,redbo/swift,anishnarang/gswift,NeCTAR-RC/swift,Em-Pan/swift,notmyname/swift,mjwtom/swift,bouncestorage/swift,matthewoliver/swift,dpgoetz/swift,revoer/keystone-8.0.0,iostackproject/IO-Bandwidth-Differentiation,mjwtom/swift,takeshineshiro/swift,citrix-openstack-build/swift,scality/ScalitySproxydSwift,wenhuizhang/swift,notmyname/swift,daasbank/swift,tipabu/swift,swiftstack/swift,Seagate/swift,aerwin3/swift,sarvesh-ranjan/swift,Khushbu27/Tutorial,matthewoliver/swift,dpgoetz/swift,mjzmjz/swift,williamthegrey/swift,aerwin3/swift,nadeemsyed/swift,notmyname/swift,hbhdytf/mac2,hbhdytf/mac2,shibaniahegde/OpenStak_swift,gold3bear/swift,nadeemsyed/swift,williamthegrey/swift,prashanthpai/swift,redhat-openstack/swift,wenhuizhang/swift,citrix-openstack/build-swift,nadeemsyed/swift,scality/ScalitySproxydSwift,daasbank/swift,zackmdavis/swift,openstack/swift,eatbyte/Swift,takeshineshiro/swift,openstack/swift,smerritt/swift,maginatics/swift,openstack/swift,shibaniahegde/OpenStak_swift,Seagate/swift,openstack/swift,hbhdytf/mac2,hurricanerix/swift,citrix-openstack/build-swift,clayg/swift,xiaoguoai/ec-dev-swift,clayg/swift,citrix-openstack-build/swift,rackerlabs/swift,rackerlabs/swift,tsli/test,AfonsoFGarcia/swift,prashanthpai/swift,clayg/swift,orion/swift-config,JioCloud/swift,swiftstack/swift,tsli/test,tipabu/swift,bkolli/swift,revoer/keystone-8.0.0,gold3bear/swift,larsbutler/swift,dencaval/swift,nadeemsyed/swift