Skip to content

Commit 2157db1

Browse files
committed
Fix up tests for new license and settings data import
1 parent f6dd76a commit 2157db1

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

test/bin/ghe-import-license

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ghe-fake-import-command

test/bin/ghe-import-settings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ghe-fake-import-command

test/test-ghe-restore.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ echo "fake ghe-export-authorized-keys data" > "$GHE_DATA_DIR/current/authorized-
4141
echo "fake ghe-export-es-indices data" > "$GHE_DATA_DIR/current/elasticsearch.tar"
4242
echo "fake ghe-export-ssh-host-keys data" > "$GHE_DATA_DIR/current/ssh-host-keys.tar"
4343
echo "fake ghe-export-repositories data" > "$GHE_DATA_DIR/current/repositories.tar"
44+
echo "fake ghe-export-settings data" > "$GHE_DATA_DIR/current/settings.json"
45+
echo "fake license data" > "$GHE_DATA_DIR/current/enterprise.ghl"
4446
echo "rsync" > "$GHE_DATA_DIR/current/strategy"
4547

4648
begin_test "ghe-restore"
@@ -65,6 +67,7 @@ begin_test "ghe-restore"
6567
echo "$output" | grep -q 'fake ghe-export-redis data'
6668
echo "$output" | grep -q 'fake ghe-export-authorized-keys data'
6769
echo "$output" | grep -q 'fake ghe-export-ssh-host-keys data'
70+
echo "$output" | grep -q 'fake ghe-export-settings data'
6871
echo "$output" | grep -q 'ghe-import-es-indices'
6972

7073
# verify all repository data was transferred to the restore location

0 commit comments

Comments
 (0)