master
go 19 lines 477 Bytes
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 package sdext
4
5 import (
6 "testing"
7
8 "github.com/stretchr/testify/assert"
9 )
10
11 func TestRegistry_DockerInclusion(t *testing.T) {
12 withDocker := Registry(true)
13 assert.Contains(t, withDocker.Types(), discovererHTTP)
14 assert.Contains(t, withDocker.Types(), discovererDocker)
15
16 withoutDocker := Registry(false)
17 assert.Contains(t, withoutDocker.Types(), discovererHTTP)
18 assert.NotContains(t, withoutDocker.Types(), discovererDocker)
19 }