Relation support for multi-charm VNFs
[osm/N2VC.git] / tests / charms / layers / proxy-ci / reactive / proxy_ci.py
index 98b7f96..9c0136e 100644 (file)
@@ -32,3 +32,21 @@ def test():
         action_set({'output': result})
     finally:
         clear_flag('actions.test')
+
+
+@when('db.joined')
+def provides_db(db):
+    """Simulate providing database credentials."""
+    db.configure(
+        database="mydb",
+        user="myuser",
+        password="mypassword",
+        host="myhost",
+        slave="myslave",
+    )
+
+
+@when('db.available')
+def requires_db(db):
+    """Simulate receiving database credentials."""
+    pass