xmtpd icon indicating copy to clipboard operation
xmtpd copied to clipboard

Upgrade tests with database payloads

Open mkysel opened this issue 10 months ago • 2 comments

The existing upgrade tests just test that the DB gets upgraded while empty.

No XMTP traffic exists in the test.

The next stage would be to add some traffic before the upgrade.

mkysel avatar Feb 14 '25 15:02 mkysel

A convenient way of doing this can be found in pkg/migrator/testdata/db.go, where a postgresql test container is created ad hoc with an sql schema, and data is injected afterwards.

fbac avatar Aug 22 '25 12:08 fbac

Related #1107

fbac avatar Sep 10 '25 11:09 fbac