sapling/eden/scm/tests/test-edenapi-server.t
Arun Kulshreshtha c1d964b17e tests: make EdenAPI server available to tests
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
2020-06-22 15:18:20 -07:00

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)