notifications: don't use un-keyed structs
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
e9ac1728e6
commit
57f9f31af9
1 changed files with 11 additions and 11 deletions
|
@ -74,11 +74,11 @@ func TestIgnoredSink(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
tests := []testcase{
|
tests := []testcase{
|
||||||
{nil, nil, blob},
|
{expected: blob},
|
||||||
{[]string{"other"}, []string{"other"}, blob},
|
{ignoreMediaTypes: []string{"other"}, ignoreActions: []string{"other"}, expected: blob},
|
||||||
{[]string{"blob", "manifest"}, []string{"other"}, nil},
|
{ignoreMediaTypes: []string{"blob", "manifest"}, ignoreActions: []string{"other"}},
|
||||||
{[]string{"other"}, []string{"pull"}, blob},
|
{ignoreMediaTypes: []string{"other"}, ignoreActions: []string{"pull"}, expected: blob},
|
||||||
{[]string{"other"}, []string{"pull", "push"}, nil},
|
{ignoreMediaTypes: []string{"other"}, ignoreActions: []string{"pull", "push"}},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, tc := range tests {
|
for _, tc := range tests {
|
||||||
|
@ -97,12 +97,12 @@ func TestIgnoredSink(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
tests = []testcase{
|
tests = []testcase{
|
||||||
{nil, nil, manifest},
|
{expected: manifest},
|
||||||
{[]string{"other"}, []string{"other"}, manifest},
|
{ignoreMediaTypes: []string{"other"}, ignoreActions: []string{"other"}, expected: manifest},
|
||||||
{[]string{"blob"}, []string{"other"}, manifest},
|
{ignoreMediaTypes: []string{"blob"}, ignoreActions: []string{"other"}, expected: manifest},
|
||||||
{[]string{"blob", "manifest"}, []string{"other"}, nil},
|
{ignoreMediaTypes: []string{"blob", "manifest"}, ignoreActions: []string{"other"}},
|
||||||
{[]string{"other"}, []string{"push"}, manifest},
|
{ignoreMediaTypes: []string{"other"}, ignoreActions: []string{"push"}, expected: manifest},
|
||||||
{[]string{"other"}, []string{"pull", "push"}, nil},
|
{ignoreMediaTypes: []string{"other"}, ignoreActions: []string{"pull", "push"}},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, tc := range tests {
|
for _, tc := range tests {
|
||||||
|
|
Loading…
Reference in a new issue