mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
ae8643748d
Signed-off-by: Madhu Venugopal <madhu@docker.com>
21 lines
391 B
Go
21 lines
391 B
Go
package config
|
|
|
|
import (
|
|
"testing"
|
|
|
|
_ "github.com/docker/libnetwork/netutils"
|
|
)
|
|
|
|
func TestInvalidConfig(t *testing.T) {
|
|
_, err := ParseConfig("invalid.toml")
|
|
if err == nil {
|
|
t.Fatal("Invalid Configuration file must fail")
|
|
}
|
|
}
|
|
|
|
func TestConfig(t *testing.T) {
|
|
_, err := ParseConfig("libnetwork.toml")
|
|
if err != nil {
|
|
t.Fatal("Error parsing a valid configuration file :", err)
|
|
}
|
|
}
|