@@ -599,7 +599,7 @@ mod test_file_handler {
599599 let nc_conf = NextcloudConfiguration :: new ( "nc_url" . to_string ( ) , "nc_user" . to_string ( ) , "nc_pass" . to_string ( ) , true ) . unwrap ( ) ;
600600 let dbx_conf = DropboxConfiguration :: new ( "token" . to_string ( ) ) . unwrap ( ) ;
601601 let sys_conf = SystemConfiguration :: new ( Some ( 0 ) , Some ( 1 ) , Some ( 2 ) ) ;
602- let gen_conf = GeneralConfiguration :: new ( Some ( "aToken " . to_string ( ) ) ) ;
602+ let gen_conf = GeneralConfiguration :: new ( Some ( "aPassphrase " . to_string ( ) ) ) ;
603603
604604 assert ! ( super :: save(
605605 super :: RklContent :: new( vec, nc_conf, dbx_conf, sys_conf, gen_conf) ,
@@ -775,7 +775,7 @@ mod test_file_handler {
775775 let nc_conf = NextcloudConfiguration :: new ( "nc_url" . to_string ( ) , "nc_user" . to_string ( ) , "nc_pass" . to_string ( ) , true ) . unwrap ( ) ;
776776 let dbx_conf = DropboxConfiguration :: new ( "token" . to_string ( ) ) . unwrap ( ) ;
777777 let sys_conf = SystemConfiguration :: new ( Some ( 0 ) , Some ( 1 ) , Some ( 2 ) ) ;
778- let gen_conf = GeneralConfiguration :: new ( Some ( "aToken " . to_string ( ) ) ) ;
778+ let gen_conf = GeneralConfiguration :: new ( Some ( "aPassphrase " . to_string ( ) ) ) ;
779779
780780 let mut cryptor = super :: create_bcryptor ( filename, password. clone ( ) , BCRYPT_COST , salt_position, false , true ) . unwrap ( ) ;
781781 assert ! ( super :: save( super :: RklContent :: new( entries. clone( ) , nc_conf, dbx_conf, sys_conf, gen_conf) , filename, & cryptor, true ) . is_ok( ) ) ;
@@ -791,7 +791,7 @@ mod test_file_handler {
791791 let new_nc_conf = NextcloudConfiguration :: new ( "nc_url" . to_string ( ) , "nc_user" . to_string ( ) , "nc_pass" . to_string ( ) , true ) . unwrap ( ) ;
792792 let new_dbx_conf = DropboxConfiguration :: new ( "newtoken" . to_string ( ) ) . unwrap ( ) ;
793793 let new_sys_conf = SystemConfiguration :: new ( Some ( 0 ) , Some ( 1 ) , Some ( 2 ) ) ;
794- let new_gen_conf = GeneralConfiguration :: new ( Some ( "otherNewToken " . to_string ( ) ) ) ;
794+ let new_gen_conf = GeneralConfiguration :: new ( Some ( "otherNewPassphrase " . to_string ( ) ) ) ;
795795 assert ! ( super :: save(
796796 super :: RklContent :: new( entries, new_nc_conf, new_dbx_conf, new_sys_conf, new_gen_conf) ,
797797 filename,
@@ -824,7 +824,7 @@ mod test_file_handler {
824824 let nc_conf = NextcloudConfiguration :: new ( "nc_url" . to_string ( ) , "nc_user" . to_string ( ) , "nc_pass" . to_string ( ) , true ) . unwrap ( ) ;
825825 let dbx_conf = DropboxConfiguration :: new ( "token" . to_string ( ) ) . unwrap ( ) ;
826826 let sys_conf = SystemConfiguration :: new ( Some ( 0 ) , Some ( 1 ) , Some ( 2 ) ) ;
827- let gen_conf = GeneralConfiguration :: new ( Some ( "aToken " . to_string ( ) ) ) ;
827+ let gen_conf = GeneralConfiguration :: new ( Some ( "aPassphrase " . to_string ( ) ) ) ;
828828
829829 let mut cryptor = super :: create_bcryptor ( filename, password. clone ( ) , BCRYPT_COST , salt_position, false , true ) . unwrap ( ) ;
830830 assert ! ( super :: save( super :: RklContent :: new( entries. clone( ) , nc_conf, dbx_conf, sys_conf, gen_conf) , filename, & cryptor, true ) . is_ok( ) ) ;
@@ -839,7 +839,7 @@ mod test_file_handler {
839839 let new_nc_conf = NextcloudConfiguration :: new ( "nc_url" . to_string ( ) , "nc_user" . to_string ( ) , "nc_pass" . to_string ( ) , true ) . unwrap ( ) ;
840840 let new_dbx_conf = DropboxConfiguration :: new ( "newtoken" . to_string ( ) ) . unwrap ( ) ;
841841 let new_sys_conf = SystemConfiguration :: new ( Some ( 0 ) , Some ( 1 ) , Some ( 2 ) ) ;
842- let new_gen_conf = GeneralConfiguration :: new ( Some ( "aToken " . to_string ( ) ) ) ;
842+ let new_gen_conf = GeneralConfiguration :: new ( Some ( "aPassphrase " . to_string ( ) ) ) ;
843843 assert ! ( super :: save(
844844 super :: RklContent :: new( entries, new_nc_conf, new_dbx_conf, new_sys_conf, new_gen_conf) ,
845845 filename,
@@ -879,7 +879,7 @@ mod test_file_handler {
879879 )
880880 . unwrap ( ) ;
881881 let dbx_conf_import = DropboxConfiguration :: new ( "token_import" . to_string ( ) ) . unwrap ( ) ;
882- let gen_conf_import = GeneralConfiguration :: new ( Some ( "browser_extension_token_import " . to_string ( ) ) ) ;
882+ let gen_conf_import = GeneralConfiguration :: new ( Some ( "browser_extension_passphrase_import " . to_string ( ) ) ) ;
883883
884884 let tmp_cryptor_import =
885885 super :: create_bcryptor ( filename_import, password_import. clone ( ) , BCRYPT_COST , salt_position_import, false , false ) . unwrap ( ) ;
@@ -909,7 +909,7 @@ mod test_file_handler {
909909 let nc_conf = NextcloudConfiguration :: new ( "nc_url" . to_string ( ) , "nc_user" . to_string ( ) , "nc_pass" . to_string ( ) , false ) . unwrap ( ) ;
910910 let dbx_conf = DropboxConfiguration :: new ( "token" . to_string ( ) ) . unwrap ( ) ;
911911 let sys_conf = SystemConfiguration :: new ( Some ( 2 ) , Some ( 3 ) , Some ( 2 ) ) ;
912- let gen_conf = GeneralConfiguration :: new ( Some ( "anothertoken " . to_string ( ) ) ) ;
912+ let gen_conf = GeneralConfiguration :: new ( Some ( "anotherPassphrase " . to_string ( ) ) ) ;
913913
914914 let mut cryptor = super :: create_bcryptor ( filename, password. clone ( ) , BCRYPT_COST , salt_position, false , true ) . unwrap ( ) ;
915915 assert ! ( super :: save(
@@ -989,7 +989,7 @@ mod test_file_handler {
989989 let nc_conf = NextcloudConfiguration :: new ( "nc_url" . to_string ( ) , "nc_user" . to_string ( ) , "nc_pass" . to_string ( ) , true ) . unwrap ( ) ;
990990 let dbx_conf = DropboxConfiguration :: new ( "token" . to_string ( ) ) . unwrap ( ) ;
991991 let sys_conf = SystemConfiguration :: new ( Some ( 0 ) , Some ( 1 ) , Some ( 2 ) ) ;
992- let gen_conf = GeneralConfiguration :: new ( Some ( "anothertoken " . to_string ( ) ) ) ;
992+ let gen_conf = GeneralConfiguration :: new ( Some ( "anotherPassphrase " . to_string ( ) ) ) ;
993993
994994 let mut cryptor = super :: create_bcryptor ( filename, password. clone ( ) , BCRYPT_COST , salt_position, false , true ) . unwrap ( ) ;
995995 assert ! ( super :: save( super :: RklContent :: new( entries. clone( ) , nc_conf, dbx_conf, sys_conf, gen_conf) , filename, & cryptor, true ) . is_ok( ) ) ;
0 commit comments