Skip to content

Commit a594c80

Browse files
authored
fix: integration test (#421)
1 parent 0bdb240 commit a594c80

2 files changed

Lines changed: 21 additions & 18 deletions

File tree

operator/charts/patroni-services/templates/_helpers.tpl

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -376,23 +376,26 @@ Return namespace for gateway
376376
{{- end -}}
377377

378378
{{- define "supplementary-tests.monitoredImages" -}}
379-
{{- if .Values.deployDescriptor -}}
380-
{{- printf "deployment postgres-operator patroni-services %s, " (include "find_image" (dict "deployName" "postgres_operator" "SERVICE_NAME" "patroni-services" "vals" .Values "default" "not_found")) -}}
381-
{{- if (eq (include "monitoring.install" .) "true") -}}
382-
{{- printf "deployment monitoring-collector monitoring-collector %s, " (include "find_image" (dict "deployName" "pg_patroni_metric_collector" "SERVICE_NAME" "pg_patroni_metric_collector" "vals" .Values "default" "not_found")) -}}
383-
{{- end -}}
384-
{{- if .Values.backupDaemon.install -}}
385-
{{- printf "deployment postgres-backup-daemon postgres-backup-daemon %s, " (include "find_image" (dict "deployName" "postgres_backup_daemon" "SERVICE_NAME" "postgres_backup_daemon" "vals" .Values "default" "not_found")) -}}
386-
{{- end -}}
387-
{{- if .Values.dbaas.install -}}
388-
{{- printf "deployment dbaas-postgres-adapter dbaas-postgres-adapter %s, " (include "find_image" (dict "deployName" "postgresql_dbaas_adapter" "SERVICE_NAME" "postgresql_dbaas_adapter" "vals" .Values "default" "not_found")) -}}
389-
{{- end -}}
390-
{{- if .Values.powaUI.install -}}
391-
{{- printf "deployment powa-ui powa-ui %s, " (include "find_image" (dict "deployName" "powa_ui_docker" "SERVICE_NAME" "powa_ui_docker" "vals" .Values "default" "not_found")) -}}
392-
{{- end -}}
393-
{{- if .Values.connectionPooler.install -}}
394-
{{- printf "deployment connection-puller connection-puller %s, " (include "find_image" (dict "deployName" "pgbouncer" "SERVICE_NAME" "pgbouncer" "vals" .Values "default" "not_found")) -}}
395-
{{- end -}}
379+
{{- printf "deployment postgres-operator patroni-services %s, " (include "find_image" (dict "deployName" "postgres_operator" "SERVICE_NAME" "patroni-services" "vals" .Values "default" .Values.operator.image)) -}}
380+
381+
{{- if (eq (include "monitoring.install" .) "true") -}}
382+
{{- printf "deployment monitoring-collector monitoring-collector %s, " (include "find_image" (dict "deployName" "pg_patroni_metric_collector" "SERVICE_NAME" "pg_patroni_metric_collector" "vals" .Values "default" .Values.monitoring.dockerImage)) -}}
383+
{{- end -}}
384+
385+
{{- if .Values.backupDaemon.install -}}
386+
{{- printf "deployment postgres-backup-daemon postgres-backup-daemon %s, " (include "find_image" (dict "deployName" "postgres_backup_daemon" "SERVICE_NAME" "postgres_backup_daemon" "vals" .Values "default" .Values.backupDaemon.dockerImage)) -}}
387+
{{- end -}}
388+
389+
{{- if .Values.dbaas.install -}}
390+
{{- printf "deployment dbaas-postgres-adapter dbaas-postgres-adapter %s, " (include "find_image" (dict "deployName" "postgresql_dbaas_adapter" "SERVICE_NAME" "postgresql_dbaas_adapter" "vals" .Values "default" .Values.dbaas.dockerImage)) -}}
391+
{{- end -}}
392+
393+
{{- if .Values.powaUI.install -}}
394+
{{- printf "deployment powa-ui powa-ui %s, " (include "find_image" (dict "deployName" "powa_ui_docker" "SERVICE_NAME" "powa_ui_docker" "vals" .Values "default" .Values.powaUI.dockerImage)) -}}
395+
{{- end -}}
396+
397+
{{- if .Values.connectionPooler.install -}}
398+
{{- printf "deployment connection-puller connection-puller %s, " (include "find_image" (dict "deployName" "pgbouncer" "SERVICE_NAME" "pgbouncer" "vals" .Values "default" .Values.connectionPooler.dockerImage)) -}}
396399
{{- end -}}
397400
{{- end -}}
398401

tests/robot/image_tests/image_tests.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ Compare Images From Resources
3333

3434
*** Test Cases ***
3535
Test Hardcoded Images
36-
[Tags] patroni basic check_pg_images
36+
[Tags] patroni_basic backup_basic check_pg_images
3737
Skip If '${MONITORED_IMAGES}' == '${None}' or '${MONITORED_IMAGES}' == '' There are no monitored images
3838
Compare Images From Resources ${MONITORED_IMAGES}

0 commit comments

Comments
 (0)