mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
c1d964b17e
Summary: Add the EdenAPI server to the `hg_mononoke_run_tests` test target. This will make it possible to start an EdenAPI server in Mercurial's Buck tests. Reviewed By: quark-zju Differential Revision: D22147098 fbshipit-source-id: 1e29b7c06f1dd74f26d821943cd44ef09a7d505f
16 lines
294 B
Perl
16 lines
294 B
Perl
#require mononoke
|
|
|
|
$ . "$TESTDIR/library.sh"
|
|
|
|
Start up EdenAPI server.
|
|
$ setup_mononoke_config
|
|
$ start_edenapi_server
|
|
|
|
Hit health check endpoint.
|
|
$ sslcurl -s "$EDENAPI_URI/health_check"
|
|
I_AM_ALIVE (no-eol)
|
|
|
|
List repos.
|
|
$ sslcurl -s "$EDENAPI_URI/repos"
|
|
{"repos":["repo"]} (no-eol)
|