-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): added basic smoke test making sure everything starts OK (#31)
- Loading branch information
Showing
14 changed files
with
330 additions
and
22 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,3 +59,5 @@ bin | |
fhirpkg.lock.json | ||
|
||
*.received.fhir.json | ||
|
||
tests/k8s/**/charts |
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 +1,2 @@ | ||
src/test/java/snapshots/** | ||
tests/k8s/**/templates |
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,7 +1,9 @@ | ||
--- | ||
|
||
extends: default | ||
|
||
rules: | ||
document-start: disable | ||
line-length: disable | ||
|
||
ignore: | | ||
tests/k8s/**/templates |
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
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,12 @@ | ||
dependencies: | ||
- name: stream-processors | ||
repository: oci://ghcr.io/miracum/charts | ||
version: 1.6.1 | ||
- name: strimzi-kafka-operator | ||
repository: oci://quay.io/strimzi-helm | ||
version: 0.40.0 | ||
- name: kube-prometheus-stack | ||
repository: oci://ghcr.io/prometheus-community/charts | ||
version: 57.0.3 | ||
digest: sha256:c3e7f5ed93a6ac74b481eacebb57b683a410808b4c2be3f41436914e3b0d1a82 | ||
generated: "2024-03-18T15:26:37.617325079+01:00" |
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,18 @@ | ||
apiVersion: v2 | ||
name: obds-to-fhir-test | ||
type: application | ||
description: Simple smoke test for deploying obds-to-fhir on K8s. | ||
deprecated: false | ||
kubeVersion: ">= 1.21.0" | ||
dependencies: | ||
- name: kube-prometheus-stack | ||
repository: oci://ghcr.io/prometheus-community/charts | ||
version: 57.0.3 | ||
- name: stream-processors | ||
repository: oci://ghcr.io/miracum/charts | ||
version: 1.6.1 | ||
- name: strimzi-kafka-operator | ||
repository: oci://quay.io/strimzi-helm | ||
version: 0.40.0 | ||
version: 0.0.0 | ||
appVersion: 0.0.0 |
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,49 @@ | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: KafkaNodePool | ||
metadata: | ||
name: dual-role | ||
labels: | ||
strimzi.io/cluster: obds-to-fhir-kafka | ||
spec: | ||
replicas: 1 | ||
roles: | ||
- controller | ||
- broker | ||
storage: | ||
type: jbod | ||
volumes: | ||
- id: 0 | ||
type: persistent-claim | ||
size: 8Gi | ||
deleteClaim: false | ||
--- | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: Kafka | ||
metadata: | ||
name: obds-to-fhir-kafka | ||
annotations: | ||
strimzi.io/node-pools: enabled | ||
strimzi.io/kraft: enabled | ||
spec: | ||
kafka: | ||
version: 3.7.0 | ||
metadataVersion: 3.7-IV4 | ||
listeners: | ||
- name: tls | ||
port: 9093 | ||
type: internal | ||
tls: true | ||
config: | ||
offsets.topic.replication.factor: 1 | ||
transaction.state.log.replication.factor: 1 | ||
transaction.state.log.min.isr: 1 | ||
num.partitions: 1 | ||
auto.create.topics.enable: true | ||
default.replication.factor: 1 | ||
log.cleanup.policy: compact | ||
# 30 MiB | ||
message.max.bytes: 31457280 | ||
# https://kafka.apache.org/documentation/#brokerconfigs_compression.type | ||
compression.type: gzip | ||
entityOperator: | ||
userOperator: {} |
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,48 @@ | ||
{{- $streamProcessorsFullName := (include "stream-processors.fullname" (index .Subcharts "stream-processors")) -}} | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: "{{ .Release.Name }}-test-connection" | ||
annotations: | ||
helm.sh/hook: test-success | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: probe-health-endpoint | ||
image: "{{ .Values.curl.image.registry }}/{{ .Values.curl.image.repository }}:{{ .Values.curl.image.tag }}" | ||
imagePullPolicy: IfNotPresent | ||
command: ["curl", "--fail-with-body"] | ||
args: ["http://{{ $streamProcessorsFullName }}-obds-to-fhir-metrics:8080/actuator/health"] | ||
{{- with $.Values.restrictedContainerSecurityContext }} | ||
securityContext: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.tests.resources }} | ||
resources: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
livenessProbe: | ||
exec: | ||
command: ["true"] | ||
readinessProbe: | ||
exec: | ||
command: ["true"] | ||
- name: probe-metrics-endpoint | ||
image: "{{ .Values.curl.image.registry }}/{{ .Values.curl.image.repository }}:{{ .Values.curl.image.tag }}" | ||
imagePullPolicy: IfNotPresent | ||
command: ["curl", "--fail-with-body"] | ||
args: ["http://{{ $streamProcessorsFullName }}-obds-to-fhir-metrics:8080/actuator/prometheus"] | ||
{{- with $.Values.restrictedContainerSecurityContext }} | ||
securityContext: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.tests.resources }} | ||
resources: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
livenessProbe: | ||
exec: | ||
command: ["true"] | ||
readinessProbe: | ||
exec: | ||
command: ["true"] |
Oops, something went wrong.