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

[DPE-5098] Tests for mongos / mongodb integration #302

Conversation

Gu1nness
Copy link
Contributor

@Gu1nness Gu1nness commented Aug 16, 2024

Description

This PR adds the test in mongodb-k8s to check for the validity and stability of the integration between the newly developed mongos-k8s charm which handles the connection with outside applications, and the sharded deployment (on mongodb-k8s side).

What it does:

  • Integrate tests for mongos / mongodb integration in k8s

How it has been checked:

  • Tests are green with manual deployment (waiting for PR 20 to be merged to enable it fully)

Instructions for manual check:

  • Build local charms
juju add-model integ-test

cd <mongodb-k8s-operator>
git checkout DPE-5098-mongo-db-k-8-s-tests-add-config-server-mongos-integration-tests
tox -e build-production
juju deploy ./*charm --config role="shard" shard-one -n1  --resource mongodb-image=ghcr.io/canonical/charmed-mongodb:6.0.6-22.04_edge@sha256:b4b3edb805b20de471da57802643bfadbf979f112d738bc540ab148d145ddcfe
juju deploy ./*charm --config role="config-server" config-server-one -n1  --resource mongodb-image=ghcr.io/canonical/charmed-mongodb:6.0.6-22.04_edge@sha256:b4b3edb805b20de471da57802643bfadbf979f112d738bc540ab148d145ddcfe

cd <mongos-k8s-operator
git checkout DPE-5040-mongos-config-svr
tox -e build-production
juju deploy ./*charm --resource mongodb-image=ghcr.io/canonical/charmed-mongodb:6.0.6-22.04_edge@sha256:b4b3edb805b20de471da57802643bfadbf979f112d738bc540ab148d145ddcfe

cd <mongodb-k8s-operator>
tox -e integration -- tests/integration/sharding_tests/test_mongos.py  --model=integ-test

Miscellaneous

  • Small fix in tls tests, a call was never awaited

tests/integration/sharding_tests/test_mongos.py Outdated Show resolved Hide resolved
tests/integration/sharding_tests/test_mongos.py Outdated Show resolved Hide resolved
tests/integration/sharding_tests/helpers.py Outdated Show resolved Hide resolved
tests/integration/sharding_tests/test_mongos.py Outdated Show resolved Hide resolved
tests/integration/sharding_tests/test_mongos.py Outdated Show resolved Hide resolved
tests/integration/helpers.py Show resolved Hide resolved
tests/integration/sharding_tests/helpers.py Outdated Show resolved Hide resolved
tests/integration/tls_tests/helpers.py Show resolved Hide resolved
MiaAltieri
MiaAltieri previously approved these changes Aug 19, 2024
tests/integration/sharding_tests/helpers.py Show resolved Hide resolved
@Gu1nness Gu1nness force-pushed the DPE-5098-mongo-db-k-8-s-tests-add-config-server-mongos-integration-tests branch 2 times, most recently from 49251fd to e44db8d Compare August 19, 2024 13:06
@Gu1nness Gu1nness merged commit 854748e into 6/edge Aug 20, 2024
23 of 24 checks passed
@Gu1nness Gu1nness deleted the DPE-5098-mongo-db-k-8-s-tests-add-config-server-mongos-integration-tests branch August 20, 2024 06:58
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