update some integ tests

This commit is contained in:
Arthur Passos 2024-07-28 10:04:38 -03:00
parent 352b502559
commit f5ee7aaf26
2 changed files with 7 additions and 7 deletions

View File

@ -483,8 +483,8 @@ def test_introspection():
[
"A",
"local_directory",
"no_password",
"{}",
"['no_password']",
"['{}']",
"['::/0']",
"[]",
"[]",
@ -496,8 +496,8 @@ def test_introspection():
[
"B",
"local_directory",
"no_password",
"{}",
"['no_password']",
"['{}']",
"['::/0']",
"[]",
"[]",

View File

@ -335,8 +335,8 @@ def test_create_user():
instance.query(
"SELECT name, auth_type, auth_params FROM system.users WHERE name IN ['emma', 'lucy'] ORDER BY name"
)
== 'emma\tssl_certificate\t{"common_names":["client2"]}\n'
'lucy\tssl_certificate\t{"common_names":["client2","client3"]}\n'
== "emma\t['ssl_certificate']\t['{\"common_names\":[\"client2\"]}']\n"
'lucy\t[\'ssl_certificate\']\t[\'{"common_names":["client2","client3"]}\']\n'
)
@ -355,7 +355,7 @@ def test_x509_san_support():
instance.query(
"SELECT name, auth_type, auth_params FROM system.users WHERE name='jerome'"
)
== 'jerome\tssl_certificate\t{"subject_alt_names":["URI:spiffe:\\\\/\\\\/foo.com\\\\/bar","URI:spiffe:\\\\/\\\\/foo.com\\\\/baz"]}\n'
== 'jerome\t[\'ssl_certificate\']\t[\'{"subject_alt_names":["URI:spiffe:\\\\/\\\\/foo.com\\\\/bar","URI:spiffe:\\\\/\\\\/foo.com\\\\/baz"]}\']\n'
)
# user `jerome` is configured via xml config, but `show create` should work regardless.
assert (