From 45130c365c235bc4a5a53fd0ddb15f84a1460199 Mon Sep 17 00:00:00 2001
From: mbeierl <mark.beierl@dell.com>
Date: Wed, 21 Jun 2017 16:02:57 -0400
Subject: Allow User to Specify Flavor

Adds flavor as parameter to ReST /configurations API and passes
it through to the heat template creation.

Change-Id: Id3632fb571da9da51b4d75db58c7a7c0a91e0ccf
JIRA: STORPERF-92
Signed-off-by: mbeierl <mark.beierl@dell.com>
---
 tests/db_tests/configuration_db_test.py | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

(limited to 'tests/db_tests')

diff --git a/tests/db_tests/configuration_db_test.py b/tests/db_tests/configuration_db_test.py
index e8b7188..dda616b 100644
--- a/tests/db_tests/configuration_db_test.py
+++ b/tests/db_tests/configuration_db_test.py
@@ -10,17 +10,14 @@
 from storperf.db.configuration_db import ConfigurationDB
 import os
 import unittest
+import sqlite3
 
 
 class ConfigurationDBTest(unittest.TestCase):
 
     def setUp(self):
-        ConfigurationDB.db_name = __name__ + ".db"
-        try:
-            os.remove(ConfigurationDB.db_name)
-        except OSError:
-            pass
-
+        ConfigurationDB.db_name = "file::memory:?cache=shared"
+        db = sqlite3.connect(ConfigurationDB.db_name)
         self.config_db = ConfigurationDB()
 
     def test_create_key(self):
-- 
cgit 1.2.3-korg