Skip to content

Commit fd89830

Browse files
committed
Skip tests that need Charmstore->CharmHub update for now
1 parent 2ef27d1 commit fd89830

9 files changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
options:
2+
status:
3+
type: string
4+
default: "active"

tests/charm-with-storage/dispatch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
status="$(config-get status)"
4+
5+
if [[ "$status" == "error" ]]; then
6+
if [[ -e .errored ]]; then
7+
status="active"
8+
else
9+
touch .errored
10+
exit 1
11+
fi
12+
fi
13+
status-set "$status"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: test-charm-with-storage
2+
series: ["focal"]
3+
summary: "test charm"
4+
description: "test"
5+
maintainers: ["test"]
6+
7+
storage:
8+
pgdata:
9+
type: filesystem
10+
description: "test storage"

tests/integration/test_application.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ async def test_get_set_config(event_loop):
7979

8080
@base.bootstrapped
8181
@pytest.mark.asyncio
82+
@pytest.mark.skip('Update charm')
8283
async def test_status_is_not_unset(event_loop):
8384
async with base.CleanModel() as model:
8485
app = await model.deploy(
@@ -93,6 +94,7 @@ async def test_status_is_not_unset(event_loop):
9394

9495
@base.bootstrapped
9596
@pytest.mark.asyncio
97+
@pytest.mark.skip('Update charm')
9698
async def test_status(event_loop):
9799
async with base.CleanModel() as model:
98100
app = await model.deploy('cs:~juju-qa/blocked-0')
@@ -108,6 +110,7 @@ def app_ready():
108110

109111
@base.bootstrapped
110112
@pytest.mark.asyncio
113+
@pytest.mark.skip('Update charm')
111114
async def test_add_units(event_loop):
112115
from juju.unit import Unit
113116

@@ -127,6 +130,7 @@ async def test_add_units(event_loop):
127130

128131
@base.bootstrapped
129132
@pytest.mark.asyncio
133+
@pytest.mark.skip('Update charm')
130134
async def test_deploy_charmstore_charm(event_loop):
131135
async with base.CleanModel() as model:
132136
app = await model.deploy('cs:ubuntu-0')
@@ -147,6 +151,7 @@ async def test_deploy_charmhub_charm(event_loop):
147151

148152
@base.bootstrapped
149153
@pytest.mark.asyncio
154+
@pytest.mark.skip('Update charm')
150155
async def test_upgrade_charm(event_loop):
151156
async with base.CleanModel() as model:
152157
app = await model.deploy('cs:ubuntu-0')
@@ -160,6 +165,7 @@ async def test_upgrade_charm(event_loop):
160165

161166
@base.bootstrapped
162167
@pytest.mark.asyncio
168+
@pytest.mark.skip('Update charm')
163169
async def test_upgrade_charm_channel(event_loop):
164170
async with base.CleanModel() as model:
165171
app = await model.deploy('cs:ubuntu-0')
@@ -217,6 +223,7 @@ async def test_upgrade_charm_switch_channel(event_loop):
217223

218224
@base.bootstrapped
219225
@pytest.mark.asyncio
226+
@pytest.mark.skip('Update charm')
220227
async def test_upgrade_charm_revision(event_loop):
221228
async with base.CleanModel() as model:
222229
app = await model.deploy('cs:ubuntu-0')
@@ -229,6 +236,7 @@ async def test_upgrade_charm_revision(event_loop):
229236

230237
@base.bootstrapped
231238
@pytest.mark.asyncio
239+
@pytest.mark.skip('Update charm')
232240
async def test_upgrade_charm_switch(event_loop):
233241
async with base.CleanModel() as model:
234242
app = await model.deploy('cs:ubuntu-0')
@@ -258,6 +266,7 @@ async def test_upgrade_local_charm(event_loop):
258266

259267
@base.bootstrapped
260268
@pytest.mark.asyncio
269+
@pytest.mark.skip('Update charm')
261270
async def test_upgrade_switch_charmstore_to_charmhub(event_loop):
262271
async with base.CleanModel() as model:
263272
app = await model.deploy('cs:ubuntu', series='focal')
@@ -270,6 +279,7 @@ async def test_upgrade_switch_charmstore_to_charmhub(event_loop):
270279

271280
@base.bootstrapped
272281
@pytest.mark.asyncio
282+
@pytest.mark.skip('Update charm')
273283
async def test_upgrade_charm_resource(event_loop):
274284
async with base.CleanModel() as model:
275285
app = await model.deploy('cs:~juju-qa/bionic/upgrade-charm-resource-test-0')

tests/integration/test_connection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ async def test_monitor_catches_error(event_loop):
5555

5656
@base.bootstrapped
5757
@pytest.mark.asyncio
58+
@pytest.mark.skip('Update charm')
5859
async def test_full_status(event_loop):
5960
async with base.CleanModel() as model:
6061
await model.deploy(

tests/integration/test_crossmodel.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
@base.bootstrapped
1111
@pytest.mark.asyncio
12+
@pytest.mark.skip('Update charm')
1213
async def test_offer(event_loop):
1314
async with base.CleanModel() as model:
1415
await model.deploy(
@@ -30,6 +31,7 @@ async def test_offer(event_loop):
3031

3132
@base.bootstrapped
3233
@pytest.mark.asyncio
34+
@pytest.mark.skip('Update charm')
3335
async def test_consume(event_loop):
3436
async with base.CleanModel() as model_1:
3537
await model_1.deploy(
@@ -60,6 +62,7 @@ async def test_consume(event_loop):
6062

6163
@base.bootstrapped
6264
@pytest.mark.asyncio
65+
@pytest.mark.skip('Update charm')
6366
async def test_remove_saas(event_loop):
6467
async with base.CleanModel() as model_1:
6568
await model_1.deploy(

tests/integration/test_expose.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
@base.bootstrapped
99
@pytest.mark.asyncio
10+
@pytest.mark.skip('Update charm')
1011
async def test_expose_unexpose(event_loop):
1112
async with base.CleanModel() as model:
1213
app = await model.deploy(

tests/integration/test_machine.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
@base.bootstrapped
1010
@pytest.mark.asyncio
11+
@pytest.mark.skip('Update charm')
1112
async def test_status(event_loop):
1213
async with base.CleanModel() as model:
1314
await model.deploy(

tests/integration/test_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,7 @@ async def test_unit_annotations(event_loop):
10001000

10011001
async with base.CleanModel() as model:
10021002
app = await model.deploy('ubuntu', channel="stable")
1003+
await model.wait_for_idle()
10031004
unit = app.units[0]
10041005

10051006
annotations = await unit.get_annotations()

0 commit comments

Comments
 (0)