1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +00:00

Cache remote repos and service definitions

This commit is contained in:
Josh Curl
2016-05-25 09:40:28 -07:00
parent 50153d77c5
commit 69fe4bb619
8 changed files with 201 additions and 105 deletions

View File

@@ -1,9 +1,9 @@
package util
import (
"github.com/stretchr/testify/require"
"strings"
"testing"
"github.com/stretchr/testify/require"
)
type testCloudConfig struct {
@@ -180,18 +180,3 @@ func TestMapsUnion(t *testing.T) {
}
assert.Equal(expected, MapsUnion(m0, m1))
}
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, []string{})
assert.Nil(e)
assert.Equal(expected, strings.TrimSpace(string(b)))
}