1
0
mirror of https://github.com/rancher/os.git synced 2025-09-08 02:01:27 +00:00

HTTP proxy settings can be set in cloud config

This commit is contained in:
Josh Curl
2016-05-06 16:25:07 -07:00
parent acc2ee297a
commit ae543ab167
11 changed files with 238 additions and 104 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)))
}