From b7a2be30ad861f6b4d60541b60d1773df5d3bc14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Leszko?= Date: Thu, 22 Aug 2024 10:05:53 +0200 Subject: [PATCH] Fix E2E Tests --- test/e2e/mist_config.go | 48 ++++++++++++++++++++++++++++++++--------- 1 file changed, 38 insertions(+), 10 deletions(-) diff --git a/test/e2e/mist_config.go b/test/e2e/mist_config.go index d4f217527..6ab283a4d 100644 --- a/test/e2e/mist_config.go +++ b/test/e2e/mist_config.go @@ -98,10 +98,10 @@ type targetProfile struct { } type trigger struct { - Handler string `json:"handler"` - Sync bool `json:"sync"` - Default string `json:"default"` - Streams []string `json:"streams"` + Handler string `json:"handler,omitempty"` + Sync bool `json:"sync,omitempty"` + Default string `json:"default,omitempty"` + Streams []string `json:"streams,omitempty"` } type mistConfig struct { @@ -186,12 +186,10 @@ func defaultMistConfig(host, sourceOutput string) mistConfig { SidMode: "0", Trustedproxy: []string{}, Triggers: map[string][]trigger{ - "STREAM_SOURCE": { + "LIVE_TRACK_LIST": { { - Handler: "http://127.0.0.1:7878/STREAM_SOURCE", - Sync: true, - Default: "push://", - Streams: []string{}, + Handler: "http://127.0.0.1:7878/api/mist/trigger", + Sync: false, }, }, "PUSH_END": { @@ -200,12 +198,42 @@ func defaultMistConfig(host, sourceOutput string) mistConfig { Sync: false, }, }, - "RECORDING_END": { + "PUSH_OUT_START": { + { + Handler: "http://127.0.0.1:7878/api/mist/trigger", + Sync: true, + }, + }, + "PUSH_REWRITE": { + { + Handler: "http://127.0.0.1:7878/api/mist/trigger", + Sync: true, + }, + }, + "STREAM_BUFFER": { + { + Handler: "http://127.0.0.1:7878/api/mist/trigger", + Sync: false, + }, + }, + "STREAM_SOURCE": { + { + Handler: "http://127.0.0.1:7878/api/mist/trigger", + Sync: true, + }, + }, + "USER_END": { { Handler: "http://127.0.0.1:7878/api/mist/trigger", Sync: false, }, }, + "USER_NEW": { + { + Handler: "http://127.0.0.1:7878/api/mist/trigger", + Sync: true, + }, + }, }, }, Streams: map[string]stream{