Skip to content

Commit

Permalink
test: adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenschneider committed Jun 21, 2023
1 parent 33cd42f commit 00a9924
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
13 changes: 10 additions & 3 deletions conf/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
},
Expand Down
11 changes: 10 additions & 1 deletion contrib/server.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 00a9924

Please sign in to comment.