statping/integrators/traefik_test.go

28 lines
529 B
Go
Raw Normal View History

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