Skip to content

Commit da5f1d3

Browse files
committed
Fix test_deploy_local_bundle_include_base64
1 parent e7a918b commit da5f1d3

3 files changed

Lines changed: 16 additions & 18 deletions

File tree

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
series: xenial
21
applications:
3-
ghost:
4-
charm: "ghost"
5-
num_units: 1
6-
mysql:
7-
charm: "mysql"
8-
channel: "candidate"
9-
series: "trusty"
2+
helloa:
3+
charm: "hello-juju"
4+
name: "helloa"
5+
channel: stable
106
num_units: 1
117
options:
12-
max-connections: 2
13-
tuning-level: include-base64://config-base64.yaml
8+
application-repo: include-base64://config-base64.yaml
9+
hellob:
10+
charm: "hello-juju"
11+
name: "hellob"
12+
channel: stable
13+
num_units: 1
1414
test:
15-
charm: "../charm"
16-
relations:
17-
- ["ghost", "mysql"]
15+
charm: "../charm"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ZmFzdA==
1+
aHR0cDovL215LWp1anUuY29t

tests/integration/test_model.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ async def test_deploy_local_bundle_include_base64(event_loop):
105105
async with base.CleanModel() as model:
106106
await model.deploy(str(bundle_yaml_path))
107107

108-
mysql = model.applications.get('mysql', None)
109-
ghost = model.applications.get('ghost', None)
108+
appa = model.applications.get('helloa', None)
109+
appb = model.applications.get('hellob', None)
110110
test = model.applications.get('test', None)
111-
assert mysql and ghost and test
112-
assert mysql.config.get('tuning-level', '') == 'fast'
111+
assert appa and appb and test
112+
assert appa.config.get('application-repo', "") == "http://my-juju.com"
113113

114114

115115
@base.bootstrapped

0 commit comments

Comments
 (0)