-
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.
* init cos-agent relation * fixing events name * fix paths * refactor logic and remove prom_scrape changes * pump staticlib python version * remove redundant method * fix linter * adding AlertGroupModel data class * Adding dataclasses
- Loading branch information
Showing
9 changed files
with
1,012 additions
and
15 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
git+https://github.com/canonical/operator#egg=ops | ||
git+https://github.com/canonical/charm-relation-interfaces.git@main | ||
jinja2 < 3 | ||
markupsafe == 2.0.1 | ||
pydantic < 2 |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# # Copyright 2022 Canonical Ltd. | ||
# # See LICENSE file for licensing details. | ||
# from unittest.mock import patch | ||
|
||
import pytest | ||
from charm import COSProxyCharm | ||
from interface_tester import InterfaceTester | ||
|
||
|
||
@pytest.fixture | ||
def interface_tester(interface_tester: InterfaceTester): | ||
interface_tester.configure( | ||
charm_type=COSProxyCharm, | ||
) | ||
yield interface_tester |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Copyright 2024 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
|
||
from interface_tester import InterfaceTester | ||
|
||
|
||
def test_cos_agent_v0_interface(interface_tester: InterfaceTester): | ||
interface_tester.configure( | ||
interface_name="cos_agent", | ||
) | ||
interface_tester.run() |
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
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