FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update the bundle used in an integration test case · Maxcode123/python-libjuju@c6dbe67 · GitHub

Repository navigation

Commit c6dbe67

Browse files
committed
Update the bundle used in an integration test case
1 parent 05e070d commit c6dbe67

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

‎tests/bundle/mini-bundle.yaml‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
series: xenial
22
applications:
3-
dummy-sink:
4-
charm: cs:~juju-qa/dummy-sink
3+
ghost:
4+
charm: "cs:ghost-19"
5+
num_units: 1
6+
mysql:
7+
charm: "cs:trusty/mysql-57"
58
num_units: 1
6-
dummy-subordinate:
7-
charm: cs:~juju-qa/dummy-subordinate
89
relations:
9-
- ['dummy-sink', 'dummy-subordinate']
10+
- ["ghost", "mysql"]

‎tests/integration/test_model.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ async def test_deploy_local_bundle_file(event_loop):
5353
async with base.CleanModel() as model:
5454
await model.deploy(str(mini_bundle_file_path))
5555

56-
dummy_sink = model.applications.get('dummy-sink')
57-
dummy_subordinate = model.applications.get('dummy-subordinate')
58-
assert dummy_sink and dummy_subordinate
59-
await model.block_until(lambda: (len(dummy_sink.units) == 1 and
60-
len(dummy_subordinate.units) == 1),
56+
ghost = model.applications.get('ghost')
57+
mysql = model.applications.get('mysql')
58+
assert ghost and mysql
59+
await model.block_until(lambda: (len(ghost.units) == 1 and
60+
len(mysql.units) == 1),
6161
timeout=60 * 4)
6262

6363

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL