aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-01-29 12:30:37 +0100
committerFlorian Dold <florian@dold.me>2024-01-29 12:30:37 +0100
commitc94eb279ac11a0d34a2c6f73ce62fff60c4d3192 (patch)
tree1a75fde17485a9824f089f3bc21ff707ea46ee68
parent64e340541ffcf10df4ef6400232c423aaecf81b9 (diff)
add DB migration test data and check-migration target
-rw-r--r--.gitmodules3
-rw-r--r--Makefile4
m---------contrib/wallet-testdata0
-rw-r--r--packages/taler-harness/src/index.ts2
4 files changed, 9 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
index 7cde9e53d..e96bbcfc1 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -4,3 +4,6 @@
[submodule "vendor"]
path = vendor
url = https://git.taler.net/node-vendor.git
+[submodule "contrib/wallet-testdata"]
+ path = contrib/wallet-testdata
+ url = https://git.taler.net/wallet-testdata.git
diff --git a/Makefile b/Makefile
index 4f65ccd61..4cecfd7a8 100644
--- a/Makefile
+++ b/Makefile
@@ -162,3 +162,7 @@ install-tools:
$(MAKE) -C packages/anastasis-cli install-nodeps
$(MAKE) -C packages/taler-harness install-nodeps
+.PHONY: check-migration
+
+check-migration:
+ taler-harness advanced wallet-dbcheck contrib/wallet-testdata/wallet-dbgen-0.9.4-dev.8
diff --git a/contrib/wallet-testdata b/contrib/wallet-testdata
new file mode 160000
+Subproject 7ca3d9b4751cbd513b3a45dfa9e337d4c5980ea
diff --git a/packages/taler-harness/src/index.ts b/packages/taler-harness/src/index.ts
index 787ea1933..889fbe4ca 100644
--- a/packages/taler-harness/src/index.ts
+++ b/packages/taler-harness/src/index.ts
@@ -250,6 +250,8 @@ advancedCli
persistent: false,
});
+ await freshWalletService.pingUntilAvailable();
+
// Check that we can still import the backup JSON.
const backupPath = `${indir}/wallet-backup.json`;