Skip to content

Commit

Permalink
Add support for Juju 3.4 (#10)
Browse files Browse the repository at this point in the history
* Add support for Juju 3.4

Add TEST_JUJU3 for zaza usage and fix overlays issue.

* Switch to master branch of zaza
  • Loading branch information
rgildein authored Apr 23, 2024
1 parent 0987c0d commit 8de1cc8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
- "**.md"
- "**.rst"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
lint-unit:
uses: canonical/bootstack-actions/.github/workflows/lint-unit.yaml@v2
Expand All @@ -19,24 +23,20 @@ jobs:
python-version: ["3.8", "3.10"]
with:
python-version: ${{ matrix.python-version }}
tox-version: "<4"
working-directory: ./src

func:
uses: canonical/bootstack-actions/.github/workflows/func.yaml@v3
uses: canonical/bootstack-actions/.github/workflows/func.yaml@v2
needs: lint-unit
strategy:
fail-fast: false
matrix:
include:
- juju-channel: "3.1/stable"
command: "make functional"
runs-on: "['self-hosted', 'xlarge', 'jammy', 'x64']"
command: ['TEST_JUJU3=1 make functional'] # TEST_JUJU3 needed due https://github.com/openstack-charmers/zaza/blob/b22c2eed4c322f1dfc14ffb2d31e0dd18c911a40/setup.py#L47 to support Juju3+
juju-channel: ['3.4/stable']
with:
command: ${{ matrix.command }}
juju-channel: ${{ matrix.juju-channel }}
nested-containers: false
provider: "lxd"
python-version: "3.10"
timeout-minutes: 120
tox-version: "<4"
2 changes: 1 addition & 1 deletion src/tests/functional/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
git+https://github.com/openstack-charmers/zaza.git@libjuju-3.1#egg=zaza
git+https://github.com/openstack-charmers/zaza.git@master#egg=zaza
python-openstackclient
3 changes: 2 additions & 1 deletion src/tests/functional/tests/bundles/base.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
applications:
prometheus-blackbox-exporter:
charm: prometheus-blackbox-exporter
options:
snap_channel: stable
num_units: 1
Expand All @@ -12,4 +13,4 @@ relations:
- - prometheus-blackbox-exporter:nrpe-external-master
- nrpe:nrpe-external-master
- - prometheus-blackbox-exporter:blackbox-exporter
- prometheus:target
- prometheus:target
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
applications:
prometheus-blackbox-exporter:
{{ charm_name }}:
charm: "{{ CHARM_LOCATION }}/{{ charm_name }}.charm"
3 changes: 2 additions & 1 deletion src/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ passenv =
OS_*
CHARM_*
ZAZA_*
TEST_*
PYTEST_KEEP_MODEL
PYTEST_CLOUD_NAME
PYTEST_CLOUD_REGION
Expand Down Expand Up @@ -67,5 +68,5 @@ deps = -r{toxinidir}/tests/unit/requirements.txt

[testenv:func]
changedir = {toxinidir}/tests/functional
commands = functest-run-suite --keep-faulty-model {posargs}
commands = functest-run-suite {posargs:--keep-faulty-model}
deps = -r{toxinidir}/tests/functional/requirements.txt

0 comments on commit 8de1cc8

Please sign in to comment.