blob: b7aabd13cfca83b80e0201ab9df96009cfbf4025 [file] [log] [blame]
Mohammed Naserc6e431b2024-03-15 01:21:44 -04001package testutils
2
3import (
4 "testing"
5
6 "github.com/stretchr/testify/assert"
7
8 "github.com/vexxhost/atmosphere/internal/openstack_helm"
9)
10
11func TestDatabaseConf(t *testing.T, config *openstack_helm.DatabaseConf) {
Oleksandr K.574ce3c2024-10-31 19:14:58 +010012 assert.Equal(t, 600, config.ConnectionRecycleTime)
13 assert.Equal(t, 5, config.MaxPoolSize)
Mohammed Naserc6e431b2024-03-15 01:21:44 -040014 assert.Equal(t, -1, config.MaxRetries)
15}