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:
@@ -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)))
|
||||
}
|
||||
|
Reference in New Issue
Block a user