Skip to content

Commit

Permalink
test: add integration testing for meilisearch
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Nov 15, 2024
1 parent 04317c1 commit 447f426
Show file tree
Hide file tree
Showing 7 changed files with 149 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
matrix:
cluster:
- elasticsearch
- meilisearch

steps:
- name: Checkout
Expand Down
Empty file.
86 changes: 86 additions & 0 deletions integration-test/meilisearch/openedx/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
CMS_OAUTH2_SECRET: RbxjczDDBgfDPZAQ8CkbfF8o
DISCOVERY_INDEX_OVERRIDES:
course_discovery.apps.course_metadata.search_indexes.documents.course: openedx-01-bfia-course
course_discovery.apps.course_metadata.search_indexes.documents.course_run: openedx-01-bfia-course_run
course_discovery.apps.course_metadata.search_indexes.documents.learner_pathway: openedx-01-bfia-learner_pathway
course_discovery.apps.course_metadata.search_indexes.documents.person: openedx-01-bfia-person
course_discovery.apps.course_metadata.search_indexes.documents.program: openedx-01-bfia-program
ELASTICSEARCH_HOST: harmony-search-cluster.openedx-harmony.svc.cluster.local
ELASTICSEARCH_SCHEME: https
ENABLE_HTTPS: true
ENABLE_WEB_PROXY: false
ID: FkxVpg29MZ78GSu3Vk5VqDxi
JWT_RSA_PRIVATE_KEY: '-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAyAC17HQD/UGceIvJVRyiXZcueW+h/NpEn9tQ4UpPsmL5EPfr
T/n/jnperbD32VjzqWL+pM16x9PhpGgv1iJNsydn2JBKFu9d87pPfwORcI1GpquS
SXD1ZMaWk+UMfWfuj9NoE2AIh7lKCzBpnzZAE9LOIDMzMo+cBAReMfyvDZpiX6fH
OXBKz+Jn79rwTPIGrFaMIQQijzPbWBcyiRXAxqRvujC5melk1JpTq/DV2RxYbo/0
oYOqJH6MQIjcwnmfAFfEcoeT9TjHv+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6cF4dbFnqTasn
vuAjnEJuENTJRVK+8TcYTxdIb/vawjKhBmzXMrt5BwA+P7J31xQ65k93a0bZq+kX
mPfeaJECgYEAiJ2UGjLjlwIlpFVHP57UnlEiabpt4StuOfFWLiAQP6D5GidHk32l
PpOhUiL0tlugipVn5dSjr7fm8ebob2JVFyJwwoZ8ZB+ab27hNkesOn1QiAwhQSJQ
DTTky7R3INIlvfEIhkmS3F73QNr9qXzqiDW9vXBQLTDCAy6Hs3EeXos=
-----END RSA PRIVATE KEY-----'
K8S_HARMONY_NAMESPACE: openedx-harmony
K8S_HARMONY_SEARCH_CLUSTER_HTTP_AUTH: openedx-01:lbIG1C55XSsif7jchRgqcXaI
K8S_HARMONY_SEARCH_CLUSTER_INDEX_PREFIX: openedx-01-bfia-
K8S_NAMESPACE: openedx-01
LMS_HOST: local.openedx.io
MEILISEARCH_API_KEY: e61b334c88dc2d896866011bd4d3b52eb05753b5352cf13102a179037df80d96
MEILISEARCH_HOST: harmony-meilisearch.openedx-harmony:7700
MEILISEARCH_MASTER_KEY: e1sTVK6KXSQZ5PzItboZiVEnW3YYbN4cQWlsh7kxK0s
MEILISEARCH_RUN: false
MEILISEARCH__INTERNAL_API_KEY_UID: 8a37b2e6-874a-4347-9372-69725cf01d70
MYSQL_ROOT_PASSWORD: yPq52wz4
OPENEDX_MYSQL_PASSWORD: Ggs01C3P
OPENEDX_SECRET_KEY: mR3C2DnjAnCgPON8hfAiK0lj
PLUGINS:
- indigo
- k8s_harmony
- meilisearch
- mfe
PLUGIN_INDEXES:
- https://overhang.io/tutor/main
RUN_ELASTICSEARCH: false
2 changes: 2 additions & 0 deletions integration-test/meilisearch/openedx/post-installation.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Run any arbitrary commands necessary to verify the installation is working
echo "Make sure to change this script to verify your installation is tested correctly"
2 changes: 2 additions & 0 deletions integration-test/meilisearch/openedx/pre-init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Run any arbitrary commands necessary to setup the installation
echo "Make sure to change this script to setup your installation"
3 changes: 3 additions & 0 deletions integration-test/meilisearch/openedx/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
../../../tutor-contrib-harmony-plugin
tutor[full]<19
git+https://github.com/edunext/tutor-contrib-meilisearch@cag/improvements
55 changes: 55 additions & 0 deletions integration-test/meilisearch/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
clusterDomain: harmony.test

# Disable HTTPS cert provisioning for testing with minikube
cert-manager:
enabled: false

ingress-nginx:
# Use ingress-nginx as a default controller.
enabled: true
controller:
# All these needed for local development
service:
type: NodePort
hostPort:
enabled: true
publishService:
enabled: false
extraArgs:
publish-status-address: localhost

elasticsearch:
enabled: false

# TODO: move this to a separate PR
# Permit co-located instances for solitary minikube virtual machines.
antiAffinity: "soft"

volumeClaimTemplate:
resources:
requests:
storage: 8Gi
replicas: 1

opensearch:
enabled: false

# Permit co-located instances for solitary minikube virtual machines.
antiAffinity: "soft"

persistence:
size: 8Gi

prometheusstack:
enabled: false

k8sdashboard:
enabled: false

openfaas:
enabled: false

meilisearch:
enabled: true
environment:
MEILI_MASTER_KEY: e1sTVK6KXSQZ5PzItboZiVEnW3YYbN4cQWlsh7kxK0s

0 comments on commit 447f426

Please sign in to comment.