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.
Click to show internal directories.
Click to hide internal directories.