the rest of the db code

This commit is contained in:
carnal0wnage
2018-04-04 22:14:01 -04:00
parent 6d69e6b024
commit 8d26c55bb6
2 changed files with 79 additions and 0 deletions

16
test_insert.py Normal file
View File

@@ -0,0 +1,16 @@
import sqlite3
from sqlite3 import Error
from libs.sql import *
#create some tables to stick data in
if __name__ == "__main__":
db_name = "weirdAAL.db"
test_aws_key = [("AKIAIOSFODNN7EXAMPLE", "some test shit")]
insert_awskey_data(db_name,test_aws_key)
test_service_data = [("AKIAIOSFODNN7EXAMPLE","ec2","DescribeInstances"),("AKIAIOSFODNN7EXAMPLE","ecr","DescribeRepositories")]
insert_reconservice_data(db_name, test_service_data)