[PATCH 2/3] t1300: cover --url for some --get-urlmatch tests
Fabian Pottbäcker <[email protected]>
| Newsgroups | org.kernel.vger.git |
|---|---|
| Message-ID | <[email protected]> |
Signed-off-by: Fabian Pottbäcker <[email protected]> --- t/t1300-config.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/t/t1300-config.sh b/t/t1300-config.sh index b99f782d5d..8310fe6a65 100755 --- a/t/t1300-config.sh +++ b/t/t1300-config.sh @@ -2028,22 +2028,32 @@ test_expect_success 'urlmatch with wildcard' ' test_expect_code 1 git config --bool --get-urlmatch doesnt.exist https://good.example.com >actual && test_must_be_empty actual && + test_expect_code 1 git config get --bool --url=https://good.example.com doesnt.exist >actual && + test_must_be_empty actual && echo true >expect && git config --bool --get-urlmatch http.SSLverify https://example.com >actual && test_cmp expect actual && + git config get --bool --url=https://example.com http.SSLverify >actual && + test_cmp expect actual && echo true >expect && git config --bool --get-urlmatch http.SSLverify https://good-example.com >actual && test_cmp expect actual && + git config get --bool --url=https://good-example.com http.SSLverify >actual && + test_cmp expect actual && echo true >expect && git config --bool --get-urlmatch http.sslverify https://deep.nested.example.com >actual && test_cmp expect actual && + git config get --bool --url=https://deep.nested.example.com http.sslverify >actual && + test_cmp expect actual && echo false >expect && git config --bool --get-urlmatch http.sslverify https://good.example.com >actual && test_cmp expect actual && + git config get --bool --url=https://good.example.com http.sslverify >actual && + test_cmp expect actual && { echo http.cookiefile /tmp/cookie.txt && @@ -2051,9 +2061,13 @@ test_expect_success 'urlmatch with wildcard' ' } >expect && git config --get-urlmatch HTTP https://good.example.com >actual && test_cmp expect actual && + git config get --url=https://good.example.com HTTP >actual && + test_cmp expect actual && echo http.sslverify >expect && git config --get-urlmatch HTTP https://more.example.com.au >actual && + test_cmp expect actual && + git config get --url=https://more.example.com.au HTTP >actual && test_cmp expect actual ' -- 2.50.1 (Apple Git-155)