generated from canonical/template-operator
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add workflow for nightly scheduled tests with juju 3.6 * For testing purposes, only run 3.6 tests on amd64 * Only run 3.6 tests on PR + specify juju channel * Explicitly specify base for mysql-test-app + charmcraft prime files with consistent approach * Explicitly use base instead of series, and hardcode base as [email protected] * Explicitly specify base for subordinate charms as well * Enable juju 3.4.3 testing on PRs and only run 3.6 tests on nightly schedule * Run juju 3.6 tests on arm64 + amd64; run them on PR to confirm pass * Avoid running juju 3.6 tests on PRs * Add juju 3.6 in CI matrix and dpw will run it nightly only * Address PR feedback * Use dpw v21.0.0 * Remove duplicate entry + add entry for running tests on 3.6 on arm64 * Remove pin of lxd-snap-channel to always use the latest lxd channel * Upgrade all dpw dependencies to v21.0.0
- Loading branch information
1 parent
25a8a79
commit a33f413
Showing
19 changed files
with
66 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,7 +142,7 @@ async def deploy_and_scale_mysql( | |
application_name=mysql_application_name, | ||
config=config, | ||
num_units=num_units, | ||
series="jammy", | ||
base="[email protected]", | ||
) | ||
|
||
await ops_test.model.wait_for_idle( | ||
|
@@ -177,6 +177,7 @@ async def deploy_and_scale_application(ops_test: OpsTest) -> str: | |
application_name=APPLICATION_DEFAULT_APP_NAME, | ||
num_units=1, | ||
channel="latest/edge", | ||
base="[email protected]", | ||
) | ||
|
||
await ops_test.model.wait_for_idle( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,13 +79,15 @@ async def test_build_and_deploy( | |
application_name=MYSQL_APP1, | ||
num_units=3, | ||
config=config, | ||
base="[email protected]", | ||
) | ||
config["cluster-name"] = "cuzco" | ||
await second_model.deploy( | ||
charm, | ||
application_name=MYSQL_APP2, | ||
num_units=3, | ||
config=config, | ||
base="[email protected]", | ||
) | ||
|
||
logger.info("Waiting for the applications to settle") | ||
|
@@ -175,15 +177,15 @@ async def test_deploy_router_and_app(first_model: Model) -> None: | |
await first_model.deploy( | ||
MYSQL_ROUTER_APP_NAME, | ||
application_name=MYSQL_ROUTER_APP_NAME, | ||
series="jammy", | ||
base="[email protected]", | ||
channel="dpe/edge", | ||
num_units=1, | ||
trust=True, | ||
) | ||
await first_model.deploy( | ||
APPLICATION_APP_NAME, | ||
application_name=APPLICATION_APP_NAME, | ||
series="jammy", | ||
base="[email protected]", | ||
channel="latest/edge", | ||
num_units=1, | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -285,7 +285,7 @@ async def test_cluster_isolation(ops_test: OpsTest, highly_available_cluster) -> | |
charm, | ||
application_name=ANOTHER_APP_NAME, | ||
num_units=1, | ||
series="jammy", | ||
base="[email protected]", | ||
) | ||
async with ops_test.fast_forward("60s"): | ||
await ops_test.model.block_until( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,13 +44,14 @@ async def test_deploy_latest(ops_test: OpsTest) -> None: | |
num_units=3, | ||
channel="8.0/edge", | ||
config={"profile": "testing"}, | ||
series="jammy", | ||
base="[email protected]", | ||
), | ||
ops_test.model.deploy( | ||
TEST_APP_NAME, | ||
application_name=TEST_APP_NAME, | ||
num_units=1, | ||
channel="latest/edge", | ||
base="[email protected]", | ||
), | ||
) | ||
await relate_mysql_and_application(ops_test, MYSQL_APP_NAME, TEST_APP_NAME) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,14 +33,15 @@ async def test_deploy_stable(ops_test: OpsTest) -> None: | |
application_name=MYSQL_APP_NAME, | ||
num_units=3, | ||
channel="8.0/stable", | ||
series="jammy", | ||
base="[email protected]", | ||
config={"profile": "testing"}, | ||
), | ||
ops_test.model.deploy( | ||
TEST_APP_NAME, | ||
application_name=TEST_APP_NAME, | ||
num_units=1, | ||
channel="latest/edge", | ||
base="[email protected]", | ||
), | ||
) | ||
await relate_mysql_and_application(ops_test, MYSQL_APP_NAME, TEST_APP_NAME) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ async def test_build_and_deploy(ops_test: OpsTest) -> None: | |
charm, | ||
application_name=MYSQL_APP_NAME, | ||
num_units=3, | ||
series="jammy", | ||
base="[email protected]", | ||
config={"profile": "testing", "plugin-audit-enabled": "false"}, | ||
) | ||
|
||
|
@@ -62,6 +62,7 @@ async def test_build_and_deploy(ops_test: OpsTest) -> None: | |
application_name=TEST_APP, | ||
channel="latest/edge", | ||
num_units=1, | ||
base="[email protected]", | ||
) | ||
|
||
await relate_mysql_and_application(ops_test, MYSQL_APP_NAME, TEST_APP) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,13 +57,14 @@ async def test_build_and_deploy(ops_test: OpsTest) -> None: | |
application_name=DATABASE_APP_NAME, | ||
config=config, | ||
num_units=3, | ||
series="jammy", | ||
base="[email protected]", | ||
), | ||
ops_test.model.deploy( | ||
APPLICATION_APP_NAME, | ||
application_name=APPLICATION_APP_NAME, | ||
num_units=2, | ||
channel="latest/edge", | ||
base="[email protected]", | ||
), | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,7 +118,7 @@ async def test_keystone_bundle_db_router(ops_test: OpsTest) -> None: | |
config = {"cluster-name": CLUSTER_NAME, "profile": "testing"} | ||
|
||
mysql_app = await ops_test.model.deploy( | ||
charm, application_name=APP_NAME, config=config, num_units=1, series="jammy" | ||
charm, application_name=APP_NAME, config=config, num_units=1, base="[email protected]" | ||
) | ||
|
||
# Deploy keystone | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,13 +52,14 @@ async def test_build_and_deploy(ops_test: OpsTest) -> None: | |
application_name=DATABASE_APP_NAME, | ||
config=config, | ||
num_units=3, | ||
series="jammy", | ||
base="[email protected]", | ||
), | ||
ops_test.model.deploy( | ||
APPLICATION_APP_NAME, | ||
application_name=APPLICATION_APP_NAME, | ||
num_units=1, | ||
channel="latest/edge", | ||
base="[email protected]", | ||
), | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,7 +161,7 @@ async def test_keystone_bundle_shared_db(ops_test: OpsTest) -> None: | |
application_name=APP_NAME, | ||
config=config, | ||
num_units=3, | ||
series="jammy", | ||
base="[email protected]", | ||
) | ||
|
||
# Reduce the update_status frequency for the duration of the test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,7 +101,7 @@ async def test_build_and_deploy(ops_test: OpsTest) -> None: | |
|
||
logger.info("Deploying s3 integrator") | ||
|
||
await ops_test.model.deploy(S3_INTEGRATOR, channel=S3_INTEGRATOR_CHANNEL) | ||
await ops_test.model.deploy(S3_INTEGRATOR, channel=S3_INTEGRATOR_CHANNEL, base="[email protected]") | ||
await ops_test.model.relate(mysql_application_name, S3_INTEGRATOR) | ||
|
||
await ops_test.model.wait_for_idle( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,7 +101,7 @@ async def test_build_and_deploy(ops_test: OpsTest) -> None: | |
|
||
logger.info("Deploying s3 integrator") | ||
|
||
await ops_test.model.deploy(S3_INTEGRATOR, channel=S3_INTEGRATOR_CHANNEL) | ||
await ops_test.model.deploy(S3_INTEGRATOR, channel=S3_INTEGRATOR_CHANNEL, base="[email protected]") | ||
await ops_test.model.relate(mysql_application_name, S3_INTEGRATOR) | ||
|
||
await ops_test.model.wait_for_idle( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,7 +101,7 @@ async def test_build_and_deploy(ops_test: OpsTest) -> None: | |
|
||
logger.info("Deploying s3 integrator") | ||
|
||
await ops_test.model.deploy(S3_INTEGRATOR, channel=S3_INTEGRATOR_CHANNEL) | ||
await ops_test.model.deploy(S3_INTEGRATOR, channel=S3_INTEGRATOR_CHANNEL, base="[email protected]") | ||
await ops_test.model.relate(mysql_application_name, S3_INTEGRATOR) | ||
|
||
await ops_test.model.wait_for_idle( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,18 +21,20 @@ async def test_ubuntu_pro(ops_test, github_secrets): | |
db_charm, | ||
application_name=DATABASE_APP_NAME, | ||
config={"cluster-name": CLUSTER_NAME, "profile": "testing"}, | ||
series="jammy", | ||
base="[email protected]", | ||
), | ||
ops_test.model.deploy( | ||
APPLICATION_APP_NAME, | ||
application_name=APPLICATION_APP_NAME, | ||
channel="latest/edge", | ||
base="[email protected]", | ||
), | ||
ops_test.model.deploy( | ||
UBUNTU_PRO_APP_NAME, | ||
application_name=UBUNTU_PRO_APP_NAME, | ||
channel="latest/edge", | ||
config={"token": github_secrets["UBUNTU_PRO_TOKEN"]}, | ||
base="[email protected]", | ||
), | ||
) | ||
await ops_test.model.relate( | ||
|
@@ -59,6 +61,7 @@ async def test_landscape_client(ops_test, github_secrets): | |
"registration-key": github_secrets["LANDSCAPE_REGISTRATION_KEY"], | ||
"ppa": "ppa:landscape/self-hosted-beta", | ||
}, | ||
base="[email protected]", | ||
) | ||
await ops_test.model.relate(DATABASE_APP_NAME, LANDSCAPE_CLIENT_APP_NAME) | ||
async with ops_test.fast_forward("60s"): | ||
|
Oops, something went wrong.