initial commit, began unit tests

This commit is contained in:
0xdcarns
2023-02-14 17:21:51 -05:00
parent 73fbdfea0d
commit a5e7147b69
4 changed files with 246 additions and 0 deletions

View File

@@ -57,6 +57,8 @@ const (
CACHE_TABLE_NAME = "cache"
// HOSTS_TABLE_NAME - the table name for hosts
HOSTS_TABLE_NAME = "hosts"
// ENROLLMENT_KEYS_TABLE_NAME - table name for enrollmentkeys
ENROLLMENT_KEYS_TABLE_NAME = "enrollmentkeys"
// == ERROR CONSTS ==
// NO_RECORD - no singular result found
@@ -138,6 +140,7 @@ func createTables() {
createTable(USER_GROUPS_TABLE_NAME)
createTable(CACHE_TABLE_NAME)
createTable(HOSTS_TABLE_NAME)
createTable(ENROLLMENT_KEYS_TABLE_NAME)
}
func createTable(tableName string) error {