Implements multivim support in the OpenStack plugin
Fixes bugs in OpenStack plugin and respective tests
Add table to database to keep track of relations between alarms and vim
credentials
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
diff --git a/osm_mon/test/OpenStack/test_settings.py b/osm_mon/test/OpenStack/test_settings.py
index 66da6af..0f924ce 100644
--- a/osm_mon/test/OpenStack/test_settings.py
+++ b/osm_mon/test/OpenStack/test_settings.py
@@ -44,15 +44,7 @@
def test_set_os_username(self):
"""Test reading the environment for OpenStack plugin configuration."""
- os.environ["OS_USERNAME"] = "test"
- self.cfg.read_environ("my_service")
+ os.environ["OS_NOTIFIER_URI"] = "test"
+ self.cfg.read_environ()
- self.assertEqual(self.cfg.OS_USERNAME, "test")
-
- @mock.patch.object(os, "environ")
- def test_read_environ(self, environ):
- """Test reading environment variables for configuration."""
- self.cfg.read_environ("my_service")
-
- # Called for each key in the configuration dictionary
- environ.assert_called_once
+ self.assertEqual(self.cfg.OS_NOTIFIER_URI, "test")