diff --git a/conf/server_test.go b/conf/server_test.go index 79c68be..7fe0583 100644 --- a/conf/server_test.go +++ b/conf/server_test.go @@ -24,16 +24,23 @@ func TestReadServerConfig(t *testing.T) { }, HostedZoneId: "hosted-zone-id-x", MetricsListener: ":666", - MqttConfig: MqttConfig{ + MqttConfig: &MqttConfig{ Brokers: []string{"broker-1", "broker-2"}, ClientId: "my-client-id", }, - VaultConfig: VaultConfig{ + EmailConfig: &EmailConfig{ + From: "from", + To: []string{"to-1"}, + SmtpHost: "smtp-host", + SmtpPort: 465, + SmtpUsername: "username", + SmtpPassword: "password", + }, + VaultConfig: &VaultConfig{ RoleName: "my-role-name", VaultAddr: "https://vault:8200", AppRoleId: "my-approle-id", AppRoleSecret: "my-approle-secret", - VaultToken: "the-holy-token", }, }, }, diff --git a/contrib/server.json b/contrib/server.json index ea1ab64..156bce7 100644 --- a/contrib/server.json +++ b/contrib/server.json @@ -16,5 +16,14 @@ "vault_addr": "https://vault:8200", "vault_app_role_id": "my-approle-id", "vault_app_role_secret": "my-approle-secret", - "vault_token": "the-holy-token" + "notifications": { + "from": "from", + "to": [ + "to-1" + ], + "host": "smtp-host", + "port": 465, + "user": "username", + "password": "password" + } } \ No newline at end of file