Skip to content

Commit

Permalink
Fix E2E Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leszko authored Aug 22, 2024
1 parent f965d9c commit b7a2be3
Showing 1 changed file with 38 additions and 10 deletions.
48 changes: 38 additions & 10 deletions test/e2e/mist_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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": {
Expand All @@ -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{
Expand Down

0 comments on commit b7a2be3

Please sign in to comment.