1
0
mirror of https://github.com/rancher/os.git synced 2025-06-19 03:31:55 +00:00
os/util/network/network_test.go
2016-05-25 09:40:28 -07:00

24 lines
439 B
Go

package network
import (
"strings"
"testing"
"github.com/stretchr/testify/require"
)
func NoTestLoadResourceSimple(t *testing.T) {
assert := require.New(t)
expected := `services:
- debian-console
- ubuntu-console
`
expected = strings.TrimSpace(expected)
b, e := LoadResource("https://raw.githubusercontent.com/rancher/os-services/v0.3.4/index.yml", true)
assert.Nil(e)
assert.Equal(expected, strings.TrimSpace(string(b)))
}