Skip to content

Commit

Permalink
Update gateway config for remote stack operation.
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Rule (VM/EMT3) <[email protected]>
  • Loading branch information
timrulebosch committed Dec 5, 2024
1 parent 5dd19e8 commit 6409c38
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 14 deletions.
20 changes: 6 additions & 14 deletions dse/modelc/examples/gateway/gateway.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
# Copyright 2024 Robert Bosch GmbH
#
# SPDX-License-Identifier: Apache-2.0

---
kind: Stack
metadata:
name: stack
name: remote
spec:
connection:
transport:
redispubsub:
redis:
uri: redis://localhost:6379
timeout: 60
models:
- name: simbus
model:
name: simbus
channels:
- name: scalar
expectedModelCount: 1
- name: binary
expectedModelCount: 1
- name: gateway
uid: 42
model:
Expand All @@ -32,10 +28,6 @@ spec:
channel: binary
---
kind: Model
metadata:
name: simbus
---
kind: Model
metadata:
name: Gateway
spec:
Expand Down
27 changes: 27 additions & 0 deletions dse/modelc/examples/gateway/simulation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2024 Robert Bosch GmbH
#
# SPDX-License-Identifier: Apache-2.0

---
kind: Stack
metadata:
name: local
spec:
connection:
transport:
redis:
uri: redis://localhost:6379
timeout: 60
models:
- name: simbus
model:
name: simbus
channels:
- name: scalar
expectedModelCount: 1
- name: binary
expectedModelCount: 1
---
kind: Model
metadata:
name: simbus
1 change: 1 addition & 0 deletions tests/testscript/e2e/gateway.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ docker run --name simer -i --rm \
--network=host \
$SIMER \
-env simbus:SIMBUS_LOGLEVEL=4 \
-stack local
-timeout 5

0 comments on commit 6409c38

Please sign in to comment.