Skip to content

Commit

Permalink
Fix test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Mar 10, 2016
1 parent d88b83d commit e5e6653
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 39 deletions.
6 changes: 6 additions & 0 deletions command/server/config_test.go
Expand Up @@ -21,6 +21,12 @@ func TestLoadConfigFile(t *testing.T) {
"address": "127.0.0.1:443",
},
},
&Listener{
Type: "tcp",
Config: map[string]string{
"address": "127.0.0.1:444",
},
},
},

Backend: &Backend{
Expand Down
33 changes: 15 additions & 18 deletions command/server/test-fixtures/config.hcl.json
@@ -1,20 +1,17 @@
{
"listener": {
"tcp": {
"address": "127.0.0.1:443"
}
},

"backend": {
"consul": {
"foo": "bar"
}
},

"telemetry": {
"statsite_address": "baz"
},

"max_lease_ttl": "10h",
"default_lease_ttl": "10h"
"listener":{
"tcp":{
"address":"127.0.0.1:443"
}
},
"backend":{
"consul":{
"foo":"bar"
}
},
"telemetry":{
"statsite_address":"baz"
},
"max_lease_ttl":"10h",
"default_lease_ttl":"10h"
}
46 changes: 25 additions & 21 deletions command/server/test-fixtures/config2.hcl.json
@@ -1,25 +1,29 @@
{
"listener": {
"tcp": [{
"address": "127.0.0.1:443"
}]
"listener":[
{
"tcp":{
"address":"127.0.0.1:443"
}
},

"backend": {
"consul": {
"foo": "bar"
}
},

"ha_backend": {
"consul": {
"bar": "baz"
}
},

"telemetry": {
"statsd_address": "bar",
"statsite_address": "foo",
"disable_hostname": true
{
"tcp":{
"address":"127.0.0.1:444"
}
}
],
"backend":{
"consul":{
"foo":"bar"
}
},
"ha_backend":{
"consul":{
"bar":"baz"
}
},
"telemetry":{
"statsd_address":"bar",
"statsite_address":"foo",
"disable_hostname":true
}
}

0 comments on commit e5e6653

Please sign in to comment.