From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21ACBC54EAA for ; Thu, 26 Jan 2023 22:27:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232909AbjAZW1L (ORCPT ); Thu, 26 Jan 2023 17:27:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229813AbjAZW1K (ORCPT ); Thu, 26 Jan 2023 17:27:10 -0500 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 757345618E for ; Thu, 26 Jan 2023 14:27:05 -0800 (PST) Received: by mail-pg1-x52b.google.com with SMTP id g68so2060261pgc.11 for ; Thu, 26 Jan 2023 14:27:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=OLn1yoECvnfWOnj6adWbW6VI5XL1B0vQq/bxEp0vWQI=; b=I1981EAMRkQ4BrjoQRxoK3OTQJb1l/TrVCP/EbG/UfPfuh9UV8l4kPwsmDsBQDNEcG egsI433l3/epqAVnhz3m6ConjNlnr4jshPIOGVgirBTOUB/uhKOuZsbAn1S2IG5Lc9Wx CBKRi5gMKUOu6l5FiSqDGP+6ebjQz6VSnAtlgo0qp7H5ilwvNjsElH1XMCK8o/sOLcew aFpYRucQC2NIzQqcH0GXKNHFMpKFkDYNhgqkPu9hwOaNSWKk+7hijFXWGsvKx9XdGGPe af+tKlicxL+OFRgNapT6IV5mtMBUCmRBARdV8R91SxGupwaoZj4ofQ2tQubBhqYuE5oU e1BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:sender:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=OLn1yoECvnfWOnj6adWbW6VI5XL1B0vQq/bxEp0vWQI=; b=IKyPaPXptWW6h+XJGQWI25y1EZqPiCrQTMrT2pTAD1b0/op2QWmNHdvFxnkZusBk5u zaAJkqcLGQCqg4h5AsDK5F1yP007P47Z01Oy+388TqG82ZAVkDqU5JCumjm1FTDvGJ/s 0GOYh5zmJ+Er1TWMjOpm/9+nJnMPlRg6eDV6CGDR2Mer4HxnCYGo4+tmpzOF+RyDRioD QP25+ZFaJB/W5ms0kgLZwoX/chLWpKsOKXmHWB2tXgY9eDppG2vLcemBcdGbKU08JajZ /3Mv3h/IRkvWG7WPFnq/A/dviozbIi6a0B+PGLinD8bS+ojG22lREvhLl6xLwO/i1VmC FdpQ== X-Gm-Message-State: AO0yUKULgbXceuMIHCOkrhDmmsSnYi4EJfGYzr58tUSHtGZXmYrUoPIX yoVPLtLHzyiEQqzCblQBaMqbYz8/EK0= X-Google-Smtp-Source: AK7set+W6yRNup9kS8b5GSRPMh57IQL07FdPs3+zerZIavQIB1tcvuIbMnSGzSNDBKx1rAEecrq2MA== X-Received: by 2002:a62:1502:0:b0:58d:f20b:5f2e with SMTP id 2-20020a621502000000b0058df20b5f2emr3295919pfv.1.1674772024864; Thu, 26 Jan 2023 14:27:04 -0800 (PST) Received: from localhost (137.22.168.34.bc.googleusercontent.com. [34.168.22.137]) by smtp.gmail.com with ESMTPSA id q19-20020a62ae13000000b0058e1b55391esm1341493pff.178.2023.01.26.14.27.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 14:27:04 -0800 (PST) Sender: Junio C Hamano From: Junio C Hamano To: Jeff King Cc: Matthew John Cheetham via GitGitGadget , git@vger.kernel.org, Derrick Stolee , Lessley Dennington , Matthew John Cheetham , M Hickford , Jeff Hostetler , Glen Choo , Victoria Dye , =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason Subject: Re: [PATCH v7 08/12] test-http-server: add simple authentication References: Date: Thu, 26 Jan 2023 14:27:04 -0800 In-Reply-To: (Jeff King's message of "Thu, 26 Jan 2023 16:22:28 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Jeff King writes: >> I suspect this could all be done as a CGI wrapping git-http-backend. You >> can influence the HTTP response code by sending: > ... > And here's a minimally worked-out example of that approach. It's on top > of your patches so I could use your credential-helper infrastructure in > the test, but the intent is that it would replace all of the test-tool > server patches and be rolled into t5556 as appropriate. Thanks for helping Matthew's topic move forward. I very much like seeing apache used for tests in this sample approach, like all the other http tests we do with apache, instead of a custom server that we need to ensure that it mimics the real-world use cases and we have to maintain.