Initial Atlas listener implementation

This commit is contained in:
Jeff Mitchell
2016-06-02 12:40:25 -04:00
parent 29c78f6512
commit d32283ba49
9 changed files with 132 additions and 20 deletions

View File

@@ -21,6 +21,14 @@ func TestLoadConfigFile(t *testing.T) {
"address": "127.0.0.1:443",
},
},
&Listener{
Type: "atlas",
Config: map[string]string{
Token: "foobar",
Infrastructure: "foo/bar",
Endpoint: "https://foo.bar:1111",
},
},
},
Backend: &Backend{
@@ -72,6 +80,14 @@ func TestLoadConfigFile_json(t *testing.T) {
"address": "127.0.0.1:443",
},
},
&Listener{
Type: "atlas",
Config: map[string]string{
Token: "foobar",
Infrastructure: "foo/bar",
Endpoint: "https://foo.bar:1111",
},
},
},
Backend: &Backend{