Esempio n. 1
0
 def mkmaster(self, **opts):
     s = state.State()
     o = options.Options(**opts)
     m = mastertest.RecordingMaster(o, None, s)
     sh = setheaders.SetHeaders()
     m.addons.add(o, sh)
     return m, sh
Esempio n. 2
0
 def test_configure(self):
     sh = setheaders.SetHeaders()
     o = options.Options(
         setheaders = [("~b", "one", "two")]
     )
     tutils.raises(
         "invalid setheader filter pattern",
         sh.configure, o, o.keys()
     )
Esempio n. 3
0
def default_addons():
    return [
        anticache.AntiCache(),
        anticomp.AntiComp(),
        stickyauth.StickyAuth(),
        stickycookie.StickyCookie(),
        script.ScriptLoader(),
        filestreamer.FileStreamer(),
        replace.Replace(),
        setheaders.SetHeaders(),
    ]
Esempio n. 4
0
def default_addons():
    return [
        anticache.AntiCache(),
        anticomp.AntiComp(),
        stickyauth.StickyAuth(),
        stickycookie.StickyCookie(),
        script.ScriptLoader(),
        filestreamer.FileStreamer(),
        # replace.Replace(),
        setheaders.SetHeaders(),
        serverplayback.ServerPlayback(),
        clientplayback.ClientPlayback(),
    ]
Esempio n. 5
0
 def mkmaster(self, **opts):
     o = options.Options(**opts)
     m = mastertest.RecordingMaster(o, proxy.DummyServer())
     sh = setheaders.SetHeaders()
     m.addons.add(sh)
     return m, sh