Initial integration test

Summary:
Created a very simple integration test, which will be useful as test plan for a lot of diffs.

It modifies a file and calls `hg snapshot createremote`, which for now does nothing. It already sets up edenapi, which will be necessary in following diffs.

Reviewed By: liubov-dmitrieva

Differential Revision: D29961686

fbshipit-source-id: 20e89a2d011daa35243d3a99d90a468f90000f15
This commit is contained in:
Yan Soares Couto 2021-07-30 03:23:30 -07:00 committed by Facebook GitHub Bot
parent 53d4379b3a
commit 2c70b3a9bf
2 changed files with 53 additions and 1 deletions

View File

@ -0,0 +1,52 @@
# 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"
setup configuration
$ setup_common_config
$ cd $TESTTMP
setup common configuration for these tests
mononoke local commit cloud backend
$ cat >> $HGRCPATH <<EOF
> [extensions]
> snapshot =
> EOF
setup repo
$ hginit_treemanifest repo
$ cd repo
$ mkcommit "base_commit"
$ hg log -T '{short(node)}\n'
8b2dca0c8a72
$ echo a > a
$ hg addremove -q
$ hg commit -m "Add a"
blobimport
$ cd $TESTTMP
$ blobimport repo/.hg repo
start mononoke
$ mononoke
$ wait_for_mononoke
start edenapi
$ setup_configerator_configs
$ start_edenapi_server_no_tls
TEST CASES:
Make a commit in the first client and upload it
This test also checks file content deduplication. We upload 1 file content and 100 filenodes here.
$ cd repo
$ echo b > a
$ hg snapshot
abort: you need to specify a subcommand (run with --help to see a list of subcommands)
[255]
$ hg snapshot createremote

View File

@ -4,6 +4,6 @@
# GNU General Public License version 2.
def createremote(repo, ui, **opts):
def createremote(ui, repo, **opts):
# TODO(yancouto): Pipe command through and implement logic
pass