copied from a project that was version on mercurial

This commit is contained in:
didier.amyot committed 2014-09-19 20:02:10 -07:00
commit ec72b5b91a
24 files changed
+841

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
package main
import (
"testing"
)
func TestLoadWebAppServersFromYamlFile(t *testing.T) {
yml := []byte(`
---
-
name: mongs
url: http://localhost:3333
subdomain: mongs
image: images/mongo.png
-
name: ipython
url: http://localhost:8888
subdomain: ipython
image: images/ipython.png
`)
if was, err := loadWebAppServersFromYamlFile(yml); err != nil {
t.Error(err)
} else if len(was) != 2 {
t.Fail()
}
}