File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,9 +35,7 @@ async fn setup_open_datasource(
3535 . await ;
3636 server. discover ( ds_id, & [ schema] ) . await ;
3737
38- let user_id = server
39- . create_user ( "testuser" , TEST_PASS , ds_id)
40- . await ;
38+ let user_id = server. create_user ( "testuser" , TEST_PASS , ds_id) . await ;
4139
4240 // In open mode, add a basic column_allow policy so queries work
4341 server
Original file line number Diff line number Diff line change @@ -442,12 +442,7 @@ impl ProxyTestServer {
442442 }
443443
444444 /// Create a non-admin user via the admin API and assign them to a datasource.
445- pub async fn create_user (
446- & self ,
447- username : & str ,
448- password : & str ,
449- ds_id : Uuid ,
450- ) -> Uuid {
445+ pub async fn create_user ( & self , username : & str , password : & str , ds_id : Uuid ) -> Uuid {
451446 // Create user
452447 let resp = self
453448 . admin
@@ -728,11 +723,7 @@ impl ProxyTestServer {
728723 /// Create a non-admin user via the admin API WITHOUT assigning them to any datasource.
729724 /// Used for testing that unassigned users cannot access a datasource.
730725 #[ allow( dead_code) ]
731- pub async fn create_user_unassigned (
732- & self ,
733- username : & str ,
734- password : & str ,
735- ) -> Uuid {
726+ pub async fn create_user_unassigned ( & self , username : & str , password : & str ) -> Uuid {
736727 let resp = self
737728 . admin
738729 . post ( "/api/v1/users" )
@@ -954,11 +945,7 @@ impl ProxyTestServer {
954945 /// This creates a user via the admin API but does NOT add them to the datasource
955946 /// user list. They can still connect if they have role-based access.
956947 #[ allow( dead_code) ]
957- pub async fn create_user_no_direct_access (
958- & self ,
959- username : & str ,
960- password : & str ,
961- ) -> Uuid {
948+ pub async fn create_user_no_direct_access ( & self , username : & str , password : & str ) -> Uuid {
962949 self . create_user_unassigned ( username, password) . await
963950 }
964951
You can’t perform that action at this time.
0 commit comments