Skip to content

Commit

Permalink
add functional test for db section
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
  • Loading branch information
stuggi committed Jun 18, 2024
1 parent 3332a3d commit 4769d18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/functional/barbican_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,9 @@ var _ = Describe("Barbican controller", func() {
g.Expect(string(conf)).Should(
ContainSubstring(fmt.Sprintf("sql_connection = mysql+pymysql://%s:%s@hostname-for-openstack.%s.svc/%s?read_default_file=/etc/my.cnf",
username, password, namespace, barbican.DatabaseName)))
g.Expect(string(conf)).Should(
ContainSubstring(fmt.Sprintf("connection = mysql+pymysql://%s:%s@hostname-for-openstack.%s.svc/%s?read_default_file=/etc/my.cnf",
username, password, namespace, barbican.DatabaseName)))

}).Should(Succeed())

Expand Down

0 comments on commit 4769d18

Please sign in to comment.