Skip to content

DO NOT MERGE: Test juju 4 with jubilant tests#192

Draft
reneradoi wants to merge 24 commits into3.6/edgefrom
test-juju-4-jubilant
Draft

DO NOT MERGE: Test juju 4 with jubilant tests#192
reneradoi wants to merge 24 commits into3.6/edgefrom
test-juju-4-jubilant

Conversation

@reneradoi
Copy link
Contributor

Draft PR to run available jubilant integration tests against Juju 4.0

THIS PR MUST NOT BE MERGED!

Soundarya03 and others added 24 commits October 15, 2025 17:02
…162)

## Description of issue or feature:
- Adds integration tests for metrics (#102 )
- Begins integration test rewrites for
[Jubliant](https://github.com/canonical/jubilant). Rewrites
test_charm.py to use Jubilant.

## Solution:
- Introduces three tests for metrics integration to `test_charm.py` to
verify direct metrics scrape, integration with grafana-agent and
COS-lite & prometheus respectively.
- Rewrites existing tests in test_charm.py, as well as the helpers
functions they invoke, to use Jubliant.

## How was this change tested?
- [x] Manually (to verify jubliant models created and destroyed)
- [ ] Unit tests
- [x] Integration tests

<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->

---------

Co-authored-by: René Radoi <[email protected]>
* test: rewrites tls tests to use jubilant

* refactor: minor fixes

* fix: secret identifier to use uri, not name

* fix: secret identifier to use uri, not name

* fix: unit count check

* fix: test initialize vault

* refactor: lint

* fix: vault decoding

* fix: vault decoding and refactor

* fix: vault decoding and refactor

* fix: vault decoding and refactor

* fix: refactor and address comments

* refactor: review comments; readability vs abstraction tradeoff

* refactor: address review comments

* fix: minor bugfix

* fix: minor bugfix

* test: minor bugfix

* test: bugfix

* fix: minor correction
…ion-tests

# Conflicts:
#	tests/integration/client_relations/test_client_relations.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants