projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Relation support for multi-charm VNFs"
[osm/N2VC.git]
/
tests
/
charms
/
layers
/
proxy-ci
/
reactive
/
proxy_ci.py
diff --git
a/tests/charms/layers/proxy-ci/reactive/proxy_ci.py
b/tests/charms/layers/proxy-ci/reactive/proxy_ci.py
index
30e4eea
..
9c0136e
100644
(file)
--- a/
tests/charms/layers/proxy-ci/reactive/proxy_ci.py
+++ b/
tests/charms/layers/proxy-ci/reactive/proxy_ci.py
@@
-13,7
+13,7
@@
import charms.sshproxy
@when_not('proxy-ci.installed')
@when_not('proxy-ci.installed')
-def install_
metrics
_ci():
+def install_
proxy
_ci():
status_set('blocked', "Waiting for SSH credentials.")
set_flag('proxy-ci.installed')
status_set('blocked', "Waiting for SSH credentials.")
set_flag('proxy-ci.installed')
@@
-32,3
+32,21
@@
def test():
action_set({'output': result})
finally:
clear_flag('actions.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