From 419d395241b25ea2597aed51eaf6a5413288d4bb Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 20 Sep 2024 22:45:56 +0200 Subject: [PATCH] Add blocking dependency test --- .../test_blocking_on_dependency.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 central_backend/engine_test/test_blocking_on_dependency.yaml diff --git a/central_backend/engine_test/test_blocking_on_dependency.yaml b/central_backend/engine_test/test_blocking_on_dependency.yaml new file mode 100644 index 0000000..de3c201 --- /dev/null +++ b/central_backend/engine_test/test_blocking_on_dependency.yaml @@ -0,0 +1,44 @@ +devices: + - id: dev1 + info: + reference: A + version: 0.0.1 + max_relays: 1 + time_create: 1 + time_update: 1 + name: Dev1 + description: Day1 + validated: true + enabled: true + relays: + - id: dcb3fd91-bf9b-4de3-99e5-92c1c7dd72e9 + name: R1 + enabled: true + priority: 1 + consumption: 100 + minimal_uptime: 10 + minimal_downtime: 1000 + depends_on: [] + conflicts_with: [] + + on: true + for: 50000 + should_be_on: true + + - id: 88888888-bf9b-4de3-99e5-92c1c7dd72e8 + name: R2 + enabled: true + priority: 1 + consumption: 100 + minimal_uptime: 10 + minimal_downtime: 1000 + depends_on: [ dcb3fd91-bf9b-4de3-99e5-92c1c7dd72e9 ] + conflicts_with: [ ] + + on: true + for: 5 + should_be_on: true + + online: true + +curr_consumption: 100000 \ No newline at end of file