create_test_sql

command
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2023 License: CC-BY-4.0, MIT Imports: 11 Imported by: 0

Documentation

Overview

create_test_sql generates a .sql file with the complete DB state of a cleosrv instance. This is used for upgrade tests to ensure the database is migrated correctly. The tool will start 'cleosrv' (provided as a path), execute certain GraphQL operations and then dump the resulting SQL into a file. This SQL file can later be used in a test to import it into a DB, run the migrations on that DB and verify that the resulting DB state is as expected. This script will rarely be needed (probably only after making a release) and all it does could be replicated manually.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL