Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadius committed Mar 4, 2024
1 parent 75b0e3d commit 8445dee
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/bats-suites/rr-only.bats
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function setup() {
INPUT_MESSAGE='{"productId":10}'
EXPECTED_OUTPUT_MESSAGE='{"productId":20}'

if [[ $(curl $SCENARIO_URL -d $INPUT_MESSAGE) == $EXPECTED_OUTPUT_MESSAGE ]]; then echo ok; else exit 1; fi
if [[ $(curl $RR_SCENARIO_INPUT_URL -d $INPUT_MESSAGE) == $EXPECTED_OUTPUT_MESSAGE ]]; then echo ok; else exit 1; fi

cancel_process "$PROCESS_NAME"
wait_for_status "$PROCESS_NAME" "CANCELED"
Expand Down
18 changes: 9 additions & 9 deletions src/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,15 @@ data:
{{- if .Values.grafana.enabled }}
metricsSettings: {
url: "{{ include "nussknacker.grafanaUrl" .}}/d/$dashboard?theme=dark&var-scenarioName=$scenarioName&var-env="${environment}
defaultDashboard: ""
scenarioTypeToDashboard: {
{{- if .Values.nussknacker.streaming.enabled }}
"streaming": "{{ include "nussknacker.streaming.dashboard" .}}"
{{- end }}
{{- if and (.Values.nussknacker.requestResponse.enabled) (eq .Values.nussknacker.mode "lite-k8s") }}
"request-response": "{{ .Values.nussknacker.requestResponse.dashboard }}"
{{- end }}
}
defaultDashboard: ""
scenarioTypeToDashboard: {
{{- if .Values.nussknacker.streaming.enabled }}
"streaming": "{{ include "nussknacker.streaming.dashboard" .}}"
{{- end }}
{{- if and (.Values.nussknacker.requestResponse.enabled) (eq .Values.nussknacker.mode "lite-k8s") }}
"request-response": "{{ .Values.nussknacker.requestResponse.dashboard }}"
{{- end }}
}
}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/tests/test-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
value: "{{ include "nussknacker.streamingScenarioType" . }}"
- name: SCHEMA_REGISTRY_URL
value: "{{ include "nussknacker.schemaRegistryUrl" . }}"
- name: SCENARIO_URL
- name: RR_SCENARIO_INPUT_URL
value: "http://{{ .Release.Name }}-test-scenario-for-rr-only:{{ .Values.nussknacker.requestResponse.servicePort }}"
volumeMounts:
- name: suites
Expand Down
2 changes: 0 additions & 2 deletions src/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ nussknacker:
configFile: /etc/nussknacker/application.conf
flinkConfig:
jobManagerTimeout: "1m"
#Have to be provided if Flink not enabled
#restUrl:
useDefaultScenarioType: true
modelConfig: {}
configExecutionOverrides: {}
Expand Down

0 comments on commit 8445dee

Please sign in to comment.