Skip to content

Commit

Permalink
fix: mysql deploy (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanksyoon authored Jul 12, 2024
1 parent 4017ed8 commit 2adb5c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration_test_juju3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
--openstack-rc=${GITHUB_WORKSPACE}/openrc
--kube-config=${GITHUB_WORKSPACE}/kube-config
--screenshot-dir=/tmp
juju-channel: 3.1/stable
channel: 1.27-strict/stable
juju-channel: 3/stable
channel: 1.29-strict/stable
modules: '["test_addon", "test_core"]'
pre-run-script: |
-c "sudo microk8s enable hostpath-storage
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ async def wordpress_fixture(
@pytest_asyncio.fixture(scope="module")
async def prepare_mysql(ops_test: OpsTest, wordpress: WordpressApp, model: Model):
"""Deploy and relate the mysql-k8s charm for integration tests."""
await ops_test.juju("deploy", "mysql-k8s", "--channel=8.0/candidate", "--trust")
await model.wait_for_idle(status="active", apps=["mysql-k8s"], timeout=30 * 60)
await model.relate(f"{wordpress.name}:database", "mysql-k8s:database")
app = await model.deploy("mysql-k8s", channel="8.0/stable", trust=True)
await model.wait_for_idle(status="active", apps=[app.name], timeout=30 * 60)
await model.relate(f"{wordpress.name}:database", f"{app.name}:database")
await model.wait_for_idle(
status="active", apps=["mysql-k8s", wordpress.name], timeout=40 * 60, idle_period=30
status="active", apps=[app.name, wordpress.name], timeout=40 * 60, idle_period=30
)


Expand Down

0 comments on commit 2adb5c8

Please sign in to comment.