mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-06-19 11:44:20 -04:00
versionsapi: allow debug stream
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
9c9c8e3d46
commit
8c5fc7a890
2 changed files with 34 additions and 2 deletions
|
@ -277,3 +277,22 @@ func minorList() *List {
|
|||
},
|
||||
}
|
||||
}
|
||||
|
||||
func TestIsValidStream(t *testing.T) {
|
||||
testCases := map[string]bool{
|
||||
"stable": true,
|
||||
"debug": true,
|
||||
"beta": false,
|
||||
"alpha": false,
|
||||
"unknown": false,
|
||||
"fast": false,
|
||||
}
|
||||
|
||||
for name, want := range testCases {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
|
||||
assert.Equal(want, IsValidStream(name))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue