Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update manifest.yaml for staging and update E2E Tests #1029

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ box:
strategy:
download: bucket
project: catalyst-api
commit: 2632451b49a2c3aeedae2074ecd8af6784e952e3
commit: de17642bf4a0d7cf1bccd3b3b88c747322212fd0
release: main
srcFilenames:
darwin-amd64: livepeer-catalyst-api-darwin-amd64.tar.gz
Expand Down
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
Loading