X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=tests%2Fcharms%2Flayers%2Fproxy-ci%2Freactive%2Fproxy_ci.py;h=9c0136e7d92072ab5e96c4eeac961988bf4718d8;hp=98b7f9636dc1cae0ab7dd50f98ac9aaa3de5bfa9;hb=136186e189027698662452ee00a5e50ebe82384f;hpb=fa32907c02582fc105166c33c5106ccf6b9389c6 diff --git a/tests/charms/layers/proxy-ci/reactive/proxy_ci.py b/tests/charms/layers/proxy-ci/reactive/proxy_ci.py index 98b7f96..9c0136e 100644 --- a/tests/charms/layers/proxy-ci/reactive/proxy_ci.py +++ b/tests/charms/layers/proxy-ci/reactive/proxy_ci.py @@ -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