How to Data verification Simple Bash Testing Framework Data verification is a process in which different types of data are checked for accuracy and inconsistencies after data migration is done. So the LINE SHOPPING team uses a simple bash testing framework and writes tests that run bash commands, and reports on any failures. Each test is its own bash script
Simple Bash Testing Framework Contains Several Parts › Set the name of the test suite. This will be displayed in the report › Set the total number of tests, If this amount of tests aren’t run › A Line to load the testing library for TAP(Test Anything Protocol) › The tests themselves › A command to print the results at the end
Simple Bash Testing Framework Test Commands Assert “Test Name” “command” to test something Assert_not_ran_ok “Test Name” to check the return value of the last Assert_ran_ok “Test Name” to test a condition
GORM and Jenkins Integration › Golang Object-Relational Mapping › Manipulate data from a database › Data defined in classes to SQL › CRUD functions already implemented › Popular choice for Go developers
MySQL Backup Validation Architecture Backup MySQL Slave Real MySQL Slave Jenkins Bash Test Framework Real GORM Result Backup GORM RESTful Web Service Client
Conclusion › Understanding customers journey › Bezos' 70% decision rule › Backups are the last line of defense in the event of a disaster › GORM operates at a simple test framework › Simple bash testing framework to quickly evaluate and verify profiles