-
Notifications
You must be signed in to change notification settings - Fork 16
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 temporary CI file to run juju 3.6 tests on branch PR * Explicitly use base instead of series, and hardcode base as [email protected] * Add --base to a missed deploy command * Use channel 3/stable for kafka-k8s and zookeeper-k8s charms * Revert kafka and zookeeper to use latest/stable with base [email protected] * Merge juju 3.6 workflow file into CI workflow file + upgrade to dpw v21.0.0 * Update outdated charm_tracing charm lib * Avoid setting revision for mongodb-k8s * Revert deployment of mongodb-k8s in mysql_root test * Use --base or --series based on juju version in test_mysql_root
- Loading branch information
1 parent
52df626
commit b18062d
Showing
16 changed files
with
87 additions
and
43 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 |
---|---|---|
|
@@ -160,7 +160,7 @@ async def deploy_and_scale_mysql( | |
config=config, | ||
resources=resources, | ||
num_units=num_units, | ||
series="jammy", | ||
base="[email protected]", | ||
trust=True, | ||
) | ||
|
||
|
@@ -198,6 +198,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 |
---|---|---|
|
@@ -90,6 +90,7 @@ async def test_build_and_deploy( | |
config=config, | ||
resources=resources, | ||
trust=True, | ||
base="[email protected]", | ||
) | ||
config["cluster-name"] = "cuzco" | ||
await second_model.deploy( | ||
|
@@ -99,6 +100,7 @@ async def test_build_and_deploy( | |
config=config, | ||
resources=resources, | ||
trust=True, | ||
base="[email protected]", | ||
) | ||
|
||
logger.info("Waiting for the applications to settle") | ||
|
@@ -193,15 +195,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="8.0/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 |
---|---|---|
|
@@ -46,12 +46,14 @@ async def test_deploy_latest(ops_test: OpsTest) -> None: | |
channel="8.0/edge", | ||
trust=True, | ||
config={"profile": "testing"}, | ||
base="[email protected]", | ||
) | ||
await 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 |
---|---|---|
|
@@ -43,12 +43,14 @@ async def test_deploy_stable(ops_test: OpsTest) -> None: | |
channel="8.0/stable", | ||
trust=True, | ||
config={"profile": "testing"}, | ||
base="[email protected]", | ||
), | ||
ops_test.model.deploy( | ||
f"mysql-{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 |
---|---|---|
|
@@ -47,6 +47,7 @@ async def test_build_and_deploy(ops_test: OpsTest) -> None: | |
num_units=3, | ||
resources=resources, | ||
trust=True, | ||
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 |
---|---|---|
|
@@ -44,14 +44,15 @@ async def test_build_and_deploy(ops_test: OpsTest): | |
config=config, | ||
num_units=3, | ||
resources=resources, | ||
series="jammy", | ||
base="[email protected]", | ||
trust=True, | ||
), | ||
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 |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
get_unit_address, | ||
is_relation_joined, | ||
) | ||
from ..juju_ import juju_major_version | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
@@ -44,38 +45,53 @@ async def test_deploy_and_relate_osm_bundle(ops_test: OpsTest) -> None: | |
"image": "opensourcemano/pol:testing-daily", | ||
} | ||
|
||
osm_keystone_deploy_commands = [ | ||
"deploy", | ||
"--channel=latest/beta", | ||
"--resource", | ||
"keystone-image=opensourcemano/keystone:testing-daily", | ||
"osm-keystone", | ||
] | ||
|
||
if juju_major_version >= 3: | ||
osm_keystone_deploy_commands.extend(["--base", "[email protected]"]) | ||
else: | ||
osm_keystone_deploy_commands.extend(["--series", "jammy"]) | ||
|
||
await asyncio.gather( | ||
ops_test.model.deploy( | ||
charm, | ||
application_name=APP_NAME, | ||
resources=resources, | ||
config=config, | ||
num_units=1, | ||
series="jammy", | ||
base="[email protected]", | ||
trust=True, | ||
), | ||
# Deploy the osm-keystone charm | ||
# (using ops_test.juju instead of ops_test.deploy as the latter does | ||
# not correctly deploy with the correct resources) | ||
ops_test.juju( | ||
"deploy", | ||
"--channel=latest/beta", | ||
"--resource", | ||
"keystone-image=opensourcemano/keystone:testing-daily", | ||
"osm-keystone", | ||
), | ||
ops_test.juju(*osm_keystone_deploy_commands), | ||
ops_test.model.deploy( | ||
"osm-pol", | ||
application_name="osm-pol", | ||
channel="latest/beta", | ||
resources=osm_pol_resources, | ||
trust=True, | ||
base="[email protected]", | ||
), | ||
ops_test.model.deploy( | ||
"kafka-k8s", application_name="kafka", trust=True, channel="latest/stable" | ||
"kafka-k8s", | ||
application_name="kafka", | ||
trust=True, | ||
channel="latest/stable", | ||
base="[email protected]", | ||
), | ||
ops_test.model.deploy( | ||
"zookeeper-k8s", application_name="zookeeper", channel="latest/stable" | ||
"zookeeper-k8s", | ||
application_name="zookeeper", | ||
channel="latest/stable", | ||
base="[email protected]", | ||
), | ||
# sticking to revision that support both juju 2.9.x and 3.x | ||
ops_test.model.deploy( | ||
|
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 |
---|---|---|
|
@@ -98,7 +98,7 @@ async def test_build_and_deploy(ops_test: OpsTest) -> None: | |
|
||
logger.info("Deploying s3-integrator") | ||
|
||
await ops_test.model.deploy(S3_INTEGRATOR, channel="stable") | ||
await ops_test.model.deploy(S3_INTEGRATOR, channel="stable", 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 |
---|---|---|
|
@@ -94,7 +94,7 @@ async def test_build_and_deploy(ops_test: OpsTest) -> None: | |
|
||
logger.info("Deploying s3-integrator") | ||
|
||
await ops_test.model.deploy(S3_INTEGRATOR, channel="stable") | ||
await ops_test.model.deploy(S3_INTEGRATOR, channel="stable", 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 |
---|---|---|
|
@@ -98,7 +98,7 @@ async def test_build_and_deploy(ops_test: OpsTest) -> None: | |
|
||
logger.info("Deploying s3-integrator") | ||
|
||
await ops_test.model.deploy(S3_INTEGRATOR, channel="stable") | ||
await ops_test.model.deploy(S3_INTEGRATOR, channel="stable", 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 |
---|---|---|
|
@@ -58,7 +58,7 @@ async def test_build_and_deploy(ops_test: OpsTest) -> None: | |
application_name=APP_NAME, | ||
config=config, | ||
num_units=3, | ||
series="jammy", | ||
base="[email protected]", | ||
trust=True, | ||
) | ||
|
||
|
Oops, something went wrong.