Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set mysql profile to "testing" #51

Merged
merged 1 commit into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/integration/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ async def test_database_relation(ops_test: OpsTest, mysql_router_charm_series: s
# and will be installed with the related consumer application
applications = await asyncio.gather(
ops_test.model.deploy(
"mysql", channel="8.0/edge", application_name=MYSQL_APP_NAME, num_units=1
"mysql",
channel="8.0/edge",
application_name=MYSQL_APP_NAME,
config={"profile": "testing"},
num_units=1,
),
ops_test.model.deploy(
mysqlrouter_charm,
Expand Down
6 changes: 5 additions & 1 deletion tests/integration/test_shared_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ async def test_shared_db(ops_test: OpsTest, mysql_router_charm_series: str):
charm = await ops_test.build_charm(".")

mysql_app = await ops_test.model.deploy(
"mysql", channel="8.0/edge", application_name=MYSQL_APP_NAME, num_units=1
"mysql",
channel="8.0/edge",
application_name=MYSQL_APP_NAME,
config={"profile": "testing"},
num_units=1,
)
keystone_app = await ops_test.model.deploy(
"keystone", application_name=KEYSTONE_APP_NAME, series="focal", num_units=2
Expand Down
4 changes: 3 additions & 1 deletion tests/integration/test_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ async def test_build_deploy_and_relate(ops_test: OpsTest, mysql_router_charm_ser
logger.info("Deploy and relate all applications")
async with ops_test.fast_forward():
# deploy mysql first
await ops_test.model.deploy(MYSQL_APP_NAME, channel="8.0/edge", num_units=3)
await ops_test.model.deploy(
MYSQL_APP_NAME, channel="8.0/edge", config={"profile": "testing"}, num_units=3
)
tls_config = {"generate-self-signed-certificates": "true", "ca-common-name": "Test CA"}

# ROUTER
Expand Down
Loading