mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
e8d62b64d5
fbshipit-source-id: 43a0252cb3ec42aa365f20d1b6faa4d24d74c9b8
23 lines
737 B
Perl
23 lines
737 B
Perl
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This software may be used and distributed according to the terms of the
|
|
# GNU General Public License found in the LICENSE file in the root
|
|
# directory of this source tree.
|
|
|
|
$ . "${TEST_FIXTURES}/library.sh"
|
|
|
|
# Create a repository
|
|
$ setup_mononoke_config
|
|
$ REPOID=1 FILESTORE=1 FILESTORE_CHUNK_SIZE=10 setup_mononoke_repo_config lfs1
|
|
|
|
# Start a LFS server for this repository (no upstream)
|
|
$ lfs_uri="$(lfs_server --tls)/health_check"
|
|
|
|
# Connecting without a client certificate fails (note: we use -k here to see the server closing the conection)
|
|
$ curl -sk "$lfs_uri"
|
|
[35]
|
|
|
|
# Connecting with a client certificate succeeds
|
|
$ sslcurl -s "$lfs_uri"
|
|
I_AM_ALIVE (no-eol)
|