1
0
mirror of https://github.com/rancher/os.git synced 2025-09-11 11:41:35 +00:00

Move around code for better clarity

This commit is contained in:
Darren Shepherd
2018-09-15 21:55:26 -07:00
committed by niusmallnan
parent 2f50b7b178
commit 1f50386828
112 changed files with 992 additions and 859 deletions

View File

@@ -0,0 +1,23 @@
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)))
}