statping/core/integrations/traefik_test.go

28 lines
544 B
Go
Raw Normal View History

2020-01-03 07:57:42 +00:00
package integrations
import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
)
func TestTraefikIntegration(t *testing.T) {
t.Run("List Services from Traefik", func(t *testing.T) {
2020-01-04 02:03:59 +00:00
t.SkipNow()
2020-01-03 07:57:42 +00:00
services, err := traefikIntegrator.List()
require.Nil(t, err)
assert.NotEqual(t, 0, len(services))
})
t.Run("Confirm Services from Traefik", func(t *testing.T) {
2020-01-04 02:03:59 +00:00
t.SkipNow()
2020-01-03 07:57:42 +00:00
services, err := traefikIntegrator.List()
require.Nil(t, err)
for _, s := range services {
t.Log(s)
}
})
}