copied from a project that was version on mercurial
This commit is contained in:
commit
ec72b5b91a
24 files changed
+841
No files matched your search
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user