mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
mononokeapi: use auth section for TLS configuration
Summary: Use the hgrc auth section to configure HTTP data fetching. For example: ``` [mononoke-api] enabled = true url = https://mononoke-api.internal.tfbnw.net [auth] mononoke-api.prefix = mononoke-api.internal.tfbnw.net mononoke-api.schemes = https mononoke-api.key = /var/facebook/credentials/$USER/x509/$USER.pem mononoke-api.cert = /var/facebook/credentials/$USER/x509/$USER.pem ``` Reviewed By: DurhamG Differential Revision: D13907185 fbshipit-source-id: 3b607f25912a85438b56c4ea7ab9cfed91ab7e85
This commit is contained in:
parent
42fc72cc54
commit
2f0414068f
@ -36,7 +36,7 @@ Enable Mononoke API for Mercurial client
|
||||
> reponame = repo
|
||||
> [mononoke-api]
|
||||
> enabled = true
|
||||
> host = $APISERVER
|
||||
> url = $APISERVER
|
||||
> EOF
|
||||
|
||||
Check that the API server is alive
|
||||
@ -51,7 +51,7 @@ Test fetching single file
|
||||
|
||||
Verify that datapack has entry with expected metadata
|
||||
$ hg debugdatapack $DATAPACK_PATH
|
||||
$TESTTMP/cachepath/repo/packs/cc19320e735e5952dd5a09ac307b26adcff5f4b4:
|
||||
$TESTTMP/cachepath/repo/packs/*: (glob)
|
||||
test.txt:
|
||||
Node Delta Base Delta Length Blob Size
|
||||
186cafa3319c 000000000000 13 13
|
||||
@ -67,11 +67,11 @@ Test fetching multiple files
|
||||
|
||||
Verify file contents
|
||||
$ hg debugdatapack $DATAPACK_PATH --node $TEST_FILENODE
|
||||
$TESTTMP/cachepath/repo/packs/04ccbe2c9216ebb0cc725c36892b6dd2f77a3e83:
|
||||
$TESTTMP/cachepath/repo/packs/*: (glob)
|
||||
test content
|
||||
|
||||
$ hg debugdatapack $DATAPACK_PATH --node $COPY_FILENODE
|
||||
$TESTTMP/cachepath/repo/packs/04ccbe2c9216ebb0cc725c36892b6dd2f77a3e83:
|
||||
$TESTTMP/cachepath/repo/packs/*: (glob)
|
||||
\x01 (esc)
|
||||
copy: test.txt
|
||||
copyrev: 186cafa3319c24956783383dc44c5cbc68c5a0ca
|
||||
|
Loading…
Reference in New Issue
Block a user