sapling/eden/mononoke/tests/integration/test-admin-crossrepo-config.t
Kostia Balytskyi 1e5a0dc4db admin: add crossrepo config subcommand
Summary: This is to be able to inspect `LiveCommitSyncConfig` from our admin tooling.

Reviewed By: StanislavGlebik

Differential Revision: D22497065

fbshipit-source-id: 3070890b7dc2a4075a5c15aca703494e33ee6530
2020-07-22 07:34:59 -07:00

117 lines
3.7 KiB
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"
setup configerator configs
$ setup_mononoke_config
$ setup_configerator_configs
test various admin commands
$ REPOID=0 mononoke_admin crossrepo config list
* Initializing CfgrLiveCommitSyncConfig (glob)
* Done initializing CfgrLiveCommitSyncConfig (glob)
TEST_VERSION_NAME
TEST_VERSION_NAME_OLD
$ REPOID=0 mononoke_admin crossrepo config current
* Initializing CfgrLiveCommitSyncConfig (glob)
* Done initializing CfgrLiveCommitSyncConfig (glob)
TEST_VERSION_NAME
$ REPOID=0 mononoke_admin crossrepo config list --with-contents
* Initializing CfgrLiveCommitSyncConfig (glob)
* Done initializing CfgrLiveCommitSyncConfig (glob)
TEST_VERSION_NAME:
large repo: 0
common pushrebase bookmarks: [BookmarkName { bookmark: "master_bookmark" }]
version name: TEST_VERSION_NAME
small repo: 1
bookmark prefix: fbsource/
direction: SmallToLarge
default action: Preserve
prefix map:
arvr->.fbsource-rest/arvr
small repo: 2
bookmark prefix: ovrsource/
direction: SmallToLarge
default action: PrependPrefix(MPath("arvr-legacy"))
prefix map:
arvr->arvr
fbandroid->.ovrsource-rest/fbandroid
fbcode->.ovrsource-rest/fbcode
fbobjc->.ovrsource-rest/fbobjc
xplat->.ovrsource-rest/xplat
TEST_VERSION_NAME_OLD:
large repo: 0
common pushrebase bookmarks: [BookmarkName { bookmark: "master_bookmark" }]
version name: TEST_VERSION_NAME_OLD
small repo: 1
bookmark prefix: fbsource/
direction: SmallToLarge
default action: Preserve
prefix map:
arvr->.fbsource-rest/arvr_old
small repo: 2
bookmark prefix: ovrsource/
direction: SmallToLarge
default action: PrependPrefix(MPath("arvr-legacy"))
prefix map:
arvr->arvr
fbandroid->.ovrsource-rest/fbandroid
fbcode->.ovrsource-rest/fbcode_old
fbobjc->.ovrsource-rest/fbobjc
xplat->.ovrsource-rest/xplat
$ REPOID=0 mononoke_admin crossrepo config current --with-contents
* Initializing CfgrLiveCommitSyncConfig (glob)
* Done initializing CfgrLiveCommitSyncConfig (glob)
large repo: 0
common pushrebase bookmarks: [BookmarkName { bookmark: "master_bookmark" }]
version name: TEST_VERSION_NAME
small repo: 1
bookmark prefix: fbsource/
direction: SmallToLarge
default action: Preserve
prefix map:
arvr->.fbsource-rest/arvr
small repo: 2
bookmark prefix: ovrsource/
direction: SmallToLarge
default action: PrependPrefix(MPath("arvr-legacy"))
prefix map:
arvr->arvr
fbandroid->.ovrsource-rest/fbandroid
fbcode->.ovrsource-rest/fbcode
fbobjc->.ovrsource-rest/fbobjc
xplat->.ovrsource-rest/xplat
$ REPOID=0 mononoke_admin crossrepo config by-version TEST_VERSION_NAME_OLD
* Initializing CfgrLiveCommitSyncConfig (glob)
* Done initializing CfgrLiveCommitSyncConfig (glob)
large repo: 0
common pushrebase bookmarks: [BookmarkName { bookmark: "master_bookmark" }]
version name: TEST_VERSION_NAME_OLD
small repo: 1
bookmark prefix: fbsource/
direction: SmallToLarge
default action: Preserve
prefix map:
arvr->.fbsource-rest/arvr_old
small repo: 2
bookmark prefix: ovrsource/
direction: SmallToLarge
default action: PrependPrefix(MPath("arvr-legacy"))
prefix map:
arvr->arvr
fbandroid->.ovrsource-rest/fbandroid
fbcode->.ovrsource-rest/fbcode_old
fbobjc->.ovrsource-rest/fbobjc
xplat->.ovrsource-rest/xplat