Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add integration tests #28

Merged
merged 9 commits into from
Oct 20, 2023
Merged

Add integration tests #28

merged 9 commits into from
Oct 20, 2023

Conversation

jat-canonical
Copy link
Contributor

No description provided.

…with a token

This commit adds a simple integration test which checks the health of
nats and whether it was configured with token or not.
This commit adds integration tests to NATS operator. These tests cover
the following cases:
1. Standard connection to NATS with token
2. TLS Connection to NATS
3. Clustering Enabled on NATS
This commit refactors the charm to replace `snap` command calls with the
corresponding charm libraries.
@morphis morphis requested review from adglkh and ajanon October 12, 2023 18:26
Copy link

@ajanon ajanon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some questions.

.github/workflows/build-and-test.yaml Show resolved Hide resolved
tox.ini Outdated Show resolved Hide resolved
@jat-canonical jat-canonical force-pushed the master branch 3 times, most recently from 2b44f86 to 8517925 Compare October 13, 2023 17:20
…ation concerns

This commit refactors snap interactions with the system using a snap
charm library. A new class has been introduced responsible for handling
interactions with NATS on the system be it via snap or directly changing
the configuration for NATS.
@jat-canonical jat-canonical force-pushed the master branch 2 times, most recently from c20d234 to 5bf1da0 Compare October 13, 2023 20:24
…files

This commit refactors the charm to split our relations into their own
files. This commit simplifies the `recofigure_nats` function to only
configure nats and split out the other tasks to their respective event
hooks.
…nection url

This commit adds support for juju secrets to share the protcted nats url
containing the auth_token. The older way of sharing the url through
relation data still remains and is available to maintain backwards
compatibility. However we should depracate this when juju 3.0 becomes
the de-facto standard for all the charms.
src/relations/cluster_peers.py Show resolved Hide resolved
src/relations/natsclient_provider.py Show resolved Hide resolved
This commit adds the check that Canonical CLA be signed by every author
for all raised pr to the main branch.
@jat-canonical jat-canonical mentioned this pull request Oct 20, 2023
Copy link
Collaborator

@morphis morphis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@morphis morphis merged commit 8312151 into canonical:main Oct 20, 2023
5 checks passed
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.

3 participants