daml/compatibility/sandbox-migration
Moritz Kiefer 6bf0996bf1
Add basic Sandbox data continuity tests (#5826)
* Add basic Sandbox data continuity tests

This adds some basic tests that check that data migrations work
properly. For now, I use DAML Script to create and query contracts at
each step. This isn’t perfect since queries can only use the active
contract service but not things like the transaction stream but it’s
clearly better than nothing.

The runner for executing the tests is a simple Haskell executable. It
didn’t really seem useful to throw tasty at this.

I’ve added two sets of tests, one that runs only through stable
versions and one that includes snapshots since migrating through
snapshots is not necessarily equivalent.

Sadly these tests use sandbox-classic since I discovered while writing
these tests that sandbox-next does not actually support migrating data
between SDK versions.

changelog_begin
changelog_end

* Use the sandbox module instead of a custom withSandbox

changelog_begin
changelog_end

* Update compatibility/sandbox-migration/SandboxMigrationRunner.hs

Co-authored-by: Andreas Herrmann <42969706+aherrmann-da@users.noreply.github.com>

Co-authored-by: Andreas Herrmann <42969706+aherrmann-da@users.noreply.github.com>
2020-05-05 14:46:58 +02:00
..
daml Add basic Sandbox data continuity tests (#5826) 2020-05-05 14:46:58 +02:00
BUILD Add basic Sandbox data continuity tests (#5826) 2020-05-05 14:46:58 +02:00
SandboxMigrationRunner.hs Add basic Sandbox data continuity tests (#5826) 2020-05-05 14:46:58 +02:00
test.sh Add basic Sandbox data continuity tests (#5826) 2020-05-05 14:46:58 +02:00
util.bzl Add basic Sandbox data continuity tests (#5826) 2020-05-05 14:46:58 +02:00