diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-03-26 11:40:57 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-03-26 20:18:24 +0000 |
commit | b18f089545b27aaa09b565651851822d18ef0dc3 (patch) | |
tree | 3fc09828c79f034b281f65192f9dfb4154906221 /libpod/state_test.go | |
parent | f2894f243bb39f6daae0daee305ec5899ca3e4d1 (diff) | |
download | podman-b18f089545b27aaa09b565651851822d18ef0dc3.tar.gz podman-b18f089545b27aaa09b565651851822d18ef0dc3.tar.bz2 podman-b18f089545b27aaa09b565651851822d18ef0dc3.zip |
Remove current SQLite DB driver
The SQLite DB backend has become an unmanageable nightmare. I
like having the option for DB work, but it's become an active
hindrance to further development, and it's definitely not in any
shape to be actively used.
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes: #548
Approved by: baude
Diffstat (limited to 'libpod/state_test.go')
-rw-r--r-- | libpod/state_test.go | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/libpod/state_test.go b/libpod/state_test.go index 1b9a04d75..634280c99 100644 --- a/libpod/state_test.go +++ b/libpod/state_test.go @@ -24,7 +24,6 @@ const ( var ( testedStates = map[string]emptyStateFunc{ - "sql": getEmptySQLState, "in-memory": getEmptyInMemoryState, "boltdb": getEmptyBoltState, } @@ -79,35 +78,6 @@ func getEmptyInMemoryState() (s State, p string, p2 string, err error) { return state, tmpDir, tmpDir, nil } -// Get an empty SQL state for use in tests -// An empty Runtime is provided -func getEmptySQLState() (s State, p string, p2 string, err error) { - tmpDir, err := ioutil.TempDir("", tmpDirPrefix) - if err != nil { - return nil, "", "", err - } - defer func() { - if err != nil { - os.RemoveAll(tmpDir) - } - }() - - dbPath := filepath.Join(tmpDir, "db.sql") - specsDir := filepath.Join(tmpDir, "specs") - lockDir := filepath.Join(tmpDir, "locks") - - runtime := new(Runtime) - runtime.config = new(RuntimeConfig) - runtime.config.StorageConfig = storage.StoreOptions{} - - state, err := NewSQLState(dbPath, specsDir, lockDir, runtime) - if err != nil { - return nil, "", "", err - } - - return state, tmpDir, lockDir, nil -} - func runForAllStates(t *testing.T, testFunc func(*testing.T, State, string)) { for stateName, stateFunc := range testedStates { state, path, lockPath, err := stateFunc() |