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) {
|
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|