-
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.
* Add noble integration tests The hw supports Noble, but we did not provide tests for it. Add noble option to pytest CLI options. Signed-off-by: Robert Gildein <[email protected]> * Exclude arm64 test for noble Grafana-agent do not support arm64 for Noble. Signed-off-by: Robert Gildein <[email protected]> * Apply suggestions from code review Co-authored-by: Andrea Ieri <[email protected]> --------- Signed-off-by: Robert Gildein <[email protected]> Co-authored-by: Andrea Ieri <[email protected]>
- Loading branch information
Showing
6 changed files
with
37 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,9 +82,18 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
runs-on: [[ubuntu-22.04], [Ubuntu_ARM64_4C_16G_01]] | ||
test-command: ['tox -e func -- -v --series focal --keep-models', 'tox -e func -- -v --series jammy --keep-models'] | ||
runs-on: | ||
- [ubuntu-22.04] | ||
- [Ubuntu_ARM64_4C_16G_01] | ||
test-command: | ||
- 'tox -e func -- -v --base [email protected] --keep-models' | ||
- 'tox -e func -- -v --base [email protected] --keep-models' | ||
- 'tox -e func -- -v --base [email protected] --keep-models' | ||
juju-channel: ["3.4/stable"] | ||
exclude: | ||
# NOTE(rgildein): The grafana-agent does not support [email protected] on arm64. See #347 | ||
- test-command: 'tox -e func -- -v --base [email protected] --keep-models' | ||
runs-on: [Ubuntu_ARM64_4C_16G_01] | ||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# ubuntu:juju-info <-> hardware-observer:general-info | ||
# grafana-agent:cos-agent <-> hardware-observer:cos-agent | ||
|
||
series: {{ series }} | ||
default-base: {{ base }} | ||
|
||
machines: | ||
"0": | ||
|
@@ -16,7 +16,11 @@ applications: | |
- "0" | ||
grafana-agent: | ||
charm: grafana-agent | ||
channel: stable | ||
{% if base == '[email protected]' %} | ||
channel: latest/candidate # Note(rgildein): Right now, grafana-agent is not support for Noble on latest/stable. See #348 | ||
{% else %} | ||
channel: latest/stable | ||
{% endif %} | ||
hardware-observer: | ||
charm: {{ charm }} | ||
|
||
|
@@ -25,4 +29,3 @@ relations: | |
- ubuntu:juju-info | ||
- - hardware-observer:general-info | ||
- ubuntu:juju-info | ||
|
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 |
---|---|---|
|
@@ -11,11 +11,11 @@ | |
|
||
def pytest_addoption(parser): | ||
parser.addoption( | ||
"--series", | ||
"--base", | ||
type=str.lower, | ||
default="jammy", | ||
choices=["focal", "jammy"], | ||
help="Set series for the machine units", | ||
default="[email protected]", | ||
choices=["[email protected]", "[email protected]", "[email protected]"], | ||
help="Set base for the applications.", | ||
) | ||
|
||
parser.addoption( | ||
|
@@ -38,8 +38,8 @@ def pytest_addoption(parser): | |
|
||
|
||
@pytest.fixture(scope="module") | ||
def series(request): | ||
return request.config.getoption("--series") | ||
def base(request): | ||
return request.config.getoption("--base") | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
|
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 |
---|---|---|
|
@@ -16,11 +16,11 @@ | |
|
||
def pytest_addoption(parser): | ||
parser.addoption( | ||
"--series", | ||
"--base", | ||
type=str.lower, | ||
default="jammy", | ||
choices=["focal", "jammy"], | ||
help="Set series for the machine units", | ||
default="[email protected]", | ||
choices=["[email protected]", "[email protected]", "[email protected]"], | ||
help="Set base for the applications.", | ||
) | ||
parser.addoption( | ||
"--channel", | ||
|
@@ -32,8 +32,8 @@ def pytest_addoption(parser): | |
|
||
|
||
@pytest.fixture(scope="module") | ||
def series(request): | ||
return request.config.getoption("--series") | ||
def base(request): | ||
return request.config.getoption("--base") | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
|
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