Create simple way to populate guard table 71/90171/5
authorMichael Mokry <michael.mokry@att.com>
Wed, 19 Jun 2019 15:21:18 +0000 (10:21 -0500)
committerMichael Mokry <michael.mokry@att.com>
Thu, 20 Jun 2019 18:14:11 +0000 (13:14 -0500)
commit110b8010a9363bd1f09c1ed67b2136ab68bdef6a
treedbd6c4adf4bcf11ef800ea27b02f3c21490b3ab5
parent422fc737b0825d13bfd6a2acdd60226f61aab2c7
Create simple way to populate guard table

Created a script that takes in the guard type as argument and executes
the sql in a .sql file to insert data

Made changes based on review comments:
1) Moved it all to the testsuite package
2) Modified the script to remove the guard type argument and
replaced it with a parameter for the filename
3) added exit 1 where applicable
        4) renamed sql file to be more general and avoid a specific use
case.
Change-Id: I89a2fa81153449b6716d9d215aa2af56748212b4
Issue-ID: POLICY-1786
Signed-off-by: Michael Mokry <michael.mokry@att.com>
testsuites/guard-testing-utils/mysql/scripts/populate_operationshistory.sh [new file with mode: 0644]
testsuites/guard-testing-utils/mysql/sql/testguard.sql [new file with mode: 0644]