make it compatible with multiple runs

This commit is contained in:
Yakov Olkhovskiy 2024-09-11 20:45:54 -04:00 committed by GitHub
parent d6ea08e812
commit 98c0f82f28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -334,6 +334,8 @@ def test_create_user():
'lucy\tssl_certificate\t{"common_names":["client2","client3"]}\n' 'lucy\tssl_certificate\t{"common_names":["client2","client3"]}\n'
) )
instance.query("DROP USER emma")
def test_x509_san_support(): def test_x509_san_support():
assert ( assert (
@ -370,6 +372,8 @@ def test_x509_san_support():
== "CREATE USER jemma IDENTIFIED WITH ssl_certificate SAN \\'URI:spiffe://foo.com/bar\\', \\'URI:spiffe://foo.com/baz\\'\n" == "CREATE USER jemma IDENTIFIED WITH ssl_certificate SAN \\'URI:spiffe://foo.com/bar\\', \\'URI:spiffe://foo.com/baz\\'\n"
) )
instance.query("DROP USER jemma")
def test_x509_san_wildcard_support(): def test_x509_san_wildcard_support():
assert ( assert (
@ -404,3 +408,5 @@ def test_x509_san_wildcard_support():
instance.query("SHOW CREATE USER brian") instance.query("SHOW CREATE USER brian")
== "CREATE USER brian IDENTIFIED WITH ssl_certificate SAN \\'URI:spiffe://bar.com/foo/*/far\\'\n" == "CREATE USER brian IDENTIFIED WITH ssl_certificate SAN \\'URI:spiffe://bar.com/foo/*/far\\'\n"
) )
instance.query("DROP USER brian")