diff --git a/.devcontainer/chefs_local/test.json b/.devcontainer/chefs_local/test.json
index bf781161d..b5472c4aa 100644
--- a/.devcontainer/chefs_local/test.json
+++ b/.devcontainer/chefs_local/test.json
@@ -63,6 +63,8 @@
},
"eventStreamService": {
"servers": "localhost:4222,localhost:4223,localhost:4224",
+ "websockets": "false",
+ "consumerservers": "localhost:4222,localhost:4223,localhost:4224",
"streamName": "CHEFS",
"source": "chefs",
"domain": "forms",
diff --git a/app/config/custom-environment-variables.json b/app/config/custom-environment-variables.json
index e9a8b34ab..17d6f23b1 100755
--- a/app/config/custom-environment-variables.json
+++ b/app/config/custom-environment-variables.json
@@ -61,6 +61,7 @@
"eventStreamService": {
"servers": "EVENTSTREAMSERVICE_SERVERS",
"websockets": "EVENTSTREAMSERVICE_WEBSOCKETS",
+ "consumerservers": "EVENTSTREAMSERVICE_CONSUMERSERVERS",
"streamName": "EVENTSTREAMSERVICE_STREAMNAME",
"source": "EVENTSTREAMSERVICE_SOURCE",
"domain": "EVENTSTREAMSERVICE_DOMAIN",
diff --git a/app/config/default.json b/app/config/default.json
index 0cb75ba33..08606d032 100644
--- a/app/config/default.json
+++ b/app/config/default.json
@@ -65,6 +65,7 @@
"eventStreamService": {
"servers": "localhost:4222,localhost:4223,localhost:4224",
"websockets": "false",
+ "consumerservers": "localhost:4222,localhost:4223,localhost:4224",
"streamName": "CHEFS",
"source": "chefs-local",
"domain": "forms",
diff --git a/app/frontend/src/components/designer/settings/FormEventStreamSettings.vue b/app/frontend/src/components/designer/settings/FormEventStreamSettings.vue
index 93051f4fb..f26075d73 100644
--- a/app/frontend/src/components/designer/settings/FormEventStreamSettings.vue
+++ b/app/frontend/src/components/designer/settings/FormEventStreamSettings.vue
@@ -126,8 +126,8 @@ defineExpose({
{{ $t('trans.formSettings.serversLabel') }}:
- {{
- appStore.config?.eventStreamService?.servers
+ {{
+ appStore.config?.eventStreamService?.consumerservers
}}
@@ -135,7 +135,7 @@ defineExpose({
{{ $t('trans.formSettings.streamNameLabel') }}:
- {{
+ {{
appStore.config?.eventStreamService?.streamName
}}
@@ -144,7 +144,7 @@ defineExpose({
{{ $t('trans.formSettings.sourceLabel') }}:
- {{
+ {{
appStore.config?.eventStreamService?.source
}}
@@ -153,7 +153,7 @@ defineExpose({
{{ $t('trans.formSettings.domainLabel') }}:
- {{
+ {{
appStore.config?.eventStreamService?.domain
}}
diff --git a/app/frontend/tests/unit/components/designer/settings/FormEventStreamSettings.spec.js b/app/frontend/tests/unit/components/designer/settings/FormEventStreamSettings.spec.js
index 1993ffd76..27d8e1d6c 100644
--- a/app/frontend/tests/unit/components/designer/settings/FormEventStreamSettings.spec.js
+++ b/app/frontend/tests/unit/components/designer/settings/FormEventStreamSettings.spec.js
@@ -4,6 +4,7 @@ import { setActivePinia } from 'pinia';
import { beforeEach, describe, expect, it } from 'vitest';
import { ref } from 'vue';
+import { useAppStore } from '~/store/app';
import { useFormStore } from '~/store/form';
import FormEventStreamSettings from '~/components/designer/settings/FormEventStreamSettings.vue';
@@ -12,11 +13,41 @@ describe('FormEventStreamSettings.vue', () => {
setActivePinia(pinia);
const formStore = useFormStore(pinia);
+ const appStore = useAppStore(pinia);
beforeEach(() => {
+ appStore.$reset();
formStore.$reset();
});
+ it('renders eventStreamService configuration', async () => {
+ appStore.config = ref({
+ eventStreamService: {
+ consumerservers: 'http://consumerservers.com',
+ streamName: 'stream',
+ source: 'src',
+ domain: 'domain',
+ },
+ });
+ const wrapper = mount(FormEventStreamSettings, {
+ global: {
+ plugins: [pinia],
+ stubs: {
+ BasePanel: {
+ name: 'BasePanel',
+ template: '