Mohammed Naser | c6e431b | 2024-03-15 01:21:44 -0400 | [diff] [blame] | 1 | package testutils |
| 2 | |
| 3 | import ( |
| 4 | "testing" |
| 5 | |
| 6 | "github.com/stretchr/testify/assert" |
| 7 | |
| 8 | "github.com/vexxhost/atmosphere/internal/openstack_helm" |
| 9 | ) |
| 10 | |
| 11 | func TestDatabaseConf(t *testing.T, config *openstack_helm.DatabaseConf) { |
Oleksandr K. | 574ce3c | 2024-10-31 19:14:58 +0100 | [diff] [blame] | 12 | assert.Equal(t, 600, config.ConnectionRecycleTime) |
| 13 | assert.Equal(t, 5, config.MaxPoolSize) |
Mohammed Naser | c6e431b | 2024-03-15 01:21:44 -0400 | [diff] [blame] | 14 | assert.Equal(t, -1, config.MaxRetries) |
| 15 | } |