mirror of
https://github.com/rancher/os.git
synced 2025-06-19 11:41:55 +00:00
24 lines
439 B
Go
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)))
|
||
|
}
|