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;fp=tests%2Fcharms%2Flayers%2Fproxy-ci%2Freactive%2Fproxy_ci.py;h=9c0136e7d92072ab5e96c4eeac961988bf4718d8;hp=98b7f9636dc1cae0ab7dd50f98ac9aaa3de5bfa9;hb=95e2d7d8fd3798c521909164656bf568bf3bff85;hpb=1ddca81e7e1863b0a7d45d1b9b9d5cabccd4e628 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