Use map to declare Docker and Swarm providers

This commit is contained in:
CrazyMax
2019-12-14 17:29:26 +01:00
parent c60fe06894
commit 3dd9d2656b
8 changed files with 33 additions and 50 deletions

View File

@@ -84,17 +84,15 @@ func TestLoad(t *testing.T) {
},
},
Providers: model.Providers{
Docker: []model.PrdDocker{
{
ID: "standalone",
Docker: map[string]model.PrdDocker{
"standalone": {
TLSVerify: true,
WatchByDefault: true,
WatchStopped: true,
},
},
Swarm: []model.PrdSwarm{
{
ID: "local_swarm",
Swarm: map[string]model.PrdSwarm{
"local_swarm": {
TLSVerify: true,
WatchByDefault: true,
},