Skip to content

Commit e7a918b

Browse files
committed
Fix test_deploy_local_bundle_include_file
1 parent 528f3eb commit e7a918b

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
applications:
2-
ghost:
3-
charm: "ghost"
2+
helloa:
3+
charm: "hello-juju"
4+
name: "helloa"
45
channel: stable
56
num_units: 1
67
options:
78
config: include-file://config1.yaml
8-
mysql:
9-
charm: "mysql"
10-
channel: candidate
9+
hellob:
10+
charm: "hello-juju"
11+
name: "hellob"
12+
channel: stable
1113
num_units: 1
1214
test:
13-
charm: "../charm"
14-
relations:
15-
- ["ghost", "mysql"]
15+
charm: "../charm"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
ghost:
2-
url: "http://my-ghost.blg"
3-
port: 2369
1+
helloa:
2+
application-repo: "http://my-juju.com"
3+
port: 666

tests/integration/test_model.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ async def test_deploy_local_bundle_include_file(event_loop):
8888
async with base.CleanModel() as model:
8989
await model.deploy(str(bundle_yaml_path))
9090

91-
mysql = model.applications.get('mysql', None)
92-
ghost = model.applications.get('ghost', None)
91+
appa = model.applications.get('helloa', None)
92+
appb = model.applications.get('hellob', None)
9393
test = model.applications.get('test', None)
94-
assert mysql and ghost and test
95-
assert ghost.config.get('port', None) == 2369
96-
assert ghost.config.get('url', "") == 'http://my-ghost.blg'
94+
assert appa and appb and test
95+
assert appa.config.get('port', None) == 666
96+
assert appa.config.get('application-repo', "") == "http://my-juju.com"
9797

9898

9999
@base.bootstrapped

0 commit comments

Comments
 (0)