def test_check_alpn(self): msg = 'ALPN support missing' with taddons.context() as tctx: a = check_alpn.CheckALPN() tctx.configure(a) assert not any(msg in m for l, m in tctx.master.event_log)
def default_addons(): return [ core.Core(), core_option_validation.CoreOptionValidation(), allowremote.AllowRemote(), anticache.AntiCache(), anticomp.AntiComp(), check_alpn.CheckALPN(), check_ca.CheckCA(), clientplayback.ClientPlayback(), cut.Cut(), disable_h2c.DisableH2C(), export.Export(), onboarding.Onboarding(), proxyauth.ProxyAuth(), replace.Replace(), script.ScriptLoader(), serverplayback.ServerPlayback(), setheaders.SetHeaders(), stickyauth.StickyAuth(), stickycookie.StickyCookie(), streambodies.StreamBodies(), save.Save(), upstream_auth.UpstreamAuth(), ]
def test_check_alpn(self): msg = 'ALPN support missing' with taddons.context() as tctx: a = check_alpn.CheckALPN() tctx.configure(a) assert not tctx.master.has_log(msg)
def default_addons(): return [ anticache.AntiCache(), anticomp.AntiComp(), check_alpn.CheckALPN(), check_ca.CheckCA(), clientplayback.ClientPlayback(), disable_h2c_upgrade.DisableH2CleartextUpgrade(), onboarding.Onboarding(), proxyauth.ProxyAuth(), replace.Replace(), replace.ReplaceFile(), script.ScriptLoader(), serverplayback.ServerPlayback(), setheaders.SetHeaders(), stickyauth.StickyAuth(), stickycookie.StickyCookie(), streambodies.StreamBodies(), streamfile.StreamFile(), upstream_auth.UpstreamAuth(), ]