Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Add import/export test fixtures (#2413)

Leendert de Borst8d56cbaaa64b
diff --git a/core/client/src/importexport/__tests__/fixtures/1password_8.1pux b/core/client/src/importexport/__tests__/fixtures/1password_8.1pux
new file mode 100644
index 000000000..fd4cf485e
Binary files /dev/null and b/core/client/src/importexport/__tests__/fixtures/1password_8.1pux differ
diff --git a/core/client/src/importexport/__tests__/fixtures/1password_8.csv b/core/client/src/importexport/__tests__/fixtures/1password_8.csv
new file mode 100644
index 000000000..4fc7a3979
--- /dev/null
+++ b/core/client/src/importexport/__tests__/fixtures/1password_8.csv
@@ -0,0 +1,5 @@
+Title,Url,Username,Password,OTPAuth,Favorite,Archived,Tags,Notes
+Test record 2 with 2FA,,username2fa,password2fa,otpauth://totp/Strongbox?secret=PLW4SB3PQ7MKVXY2MXF4NEXS6Y&period=30&algorithm=SHA1&digits=6,false,false,,Notes about 2FA record
+1Password Account (dpatel),https://my.1password.com,[email protected],passwordexample,,false,false,Starter Kit,You can use this login to sign in to your account on 1password.com.
+Test record 1,https://nu.nl,username1,password1,,false,false,,
+Password entry,,passwordusername,passwordpassword,,false,false,,
diff --git a/core/client/src/importexport/__tests__/fixtures/TestVault.avex b/core/client/src/importexport/__tests__/fixtures/TestVault.avex
new file mode 100644
index 000000000..4074668c2
Binary files /dev/null and b/core/client/src/importexport/__tests__/fixtures/TestVault.avex differ
diff --git a/core/client/src/importexport/__tests__/fixtures/TestVault.avux b/core/client/src/importexport/__tests__/fixtures/TestVault.avux
new file mode 100644
index 000000000..c97074f0e
Binary files /dev/null and b/core/client/src/importexport/__tests__/fixtures/TestVault.avux differ
diff --git a/core/client/src/importexport/__tests__/fixtures/aliasvault_mobile_app_export.csv b/core/client/src/importexport/__tests__/fixtures/aliasvault_mobile_app_export.csv
new file mode 100644
index 000000000..11d8e8c4c
--- /dev/null
+++ b/core/client/src/importexport/__tests__/fixtures/aliasvault_mobile_app_export.csv
@@ -0,0 +1,4 @@
+ServiceName,FolderPath,ServiceUrl,Username,CurrentPassword,AliasEmail,TwoFactorSecret,AliasGender,AliasFirstName,AliasLastName,AliasNickName,AliasBirthDate,Notes,CreatedAt,UpdatedAt
+credential3,,,username3,,,test,,,,,,without password,09/12/2025 17:28:39,09/12/2025 17:28:39
+service2,,https://service2.com,username2,password2,[email protected],,gender2,firstname2,lastname2,nickname2,,,09/12/2025 17:28:39,09/12/2025 17:28:39
+service1,,,username1,password1,[email protected],,gender1,firstname1,lastname1,nickname1,01/01/1970 00:00:00,notes1,09/12/2025 17:28:39,09/12/2025 17:28:39
diff --git a/core/client/src/importexport/__tests__/fixtures/bitwarden.csv b/core/client/src/importexport/__tests__/fixtures/bitwarden.csv
new file mode 100644
index 000000000..516d81254
--- /dev/null
+++ b/core/client/src/importexport/__tests__/fixtures/bitwarden.csv
@@ -0,0 +1,13 @@
+folder,favorite,type,name,notes,fields,reprompt,login_uri,login_username,login_password,login_totp
+Business,,login,Item for business folder,,,0,,crisply,4CSp43uhSZri8A,
+,,login,Test,,,0,,,,
+,,login,Test,,,0,,test2,asdasd,
+Business,,login,TutaNota,,,0,,[email protected],blabla,otpauth://totp/Strongbox?secret=PLW4SB3PQ7MKVXY2MXF4NEXS6Y&algorithm=SHA1&digits=6&period=30
+Business,,login,Aliasvault.com,,,0,https://www.aliasvault.com,root,toor,
+Business,,login,TutaNota3,,,0,"https://www.aliasvault.com,https://app.aliasvault.com,https://downloads.aliasvault.com",[email protected],blabla,otpauth://totp/Test%20name%3Atest%40test.org?secret=PLW4SB3PQ7MKVXY2MXF4NEXS6Y&issuer=Alias%20Vault
+Business,,login,TutaNota4,,,0,,[email protected],blabla,otpauth://totp/[email protected]?secret=TEST!INVALID&issuer=Alias%20Vault&algorithm=SHA1&digits=6&period=30
+Business,,login,TutaNota5,,,0,,[email protected],blabla,incorrectstring
+Work/Projects,,login,ProjectItem,,,0,https://project.example.com,projectuser,projectpass,
+Work/Projects/Active,,login,ActiveProjectItem,,,0,https://active.example.com,activeuser,activepass,
+Personal/Finance/Banking,,login,BankAccount,,,0,https://bank.example.com,bankuser,bankpass,
+Personal/Finance/Banking/Savings,,login,SavingsAccount,,,0,https://savings.example.com,savingsuser,savingspass,
diff --git a/core/client/src/importexport/__tests__/fixtures/chrome.csv b/core/client/src/importexport/__tests__/fixtures/chrome.csv
new file mode 100644
index 000000000..8f9c4672e
--- /dev/null
+++ b/core/client/src/importexport/__tests__/fixtures/chrome.csv
@@ -0,0 +1,4 @@
+name,url,username,password,note
+example.com,https://example.com/,usernamegoogle,passwordgoogle,Note for example password from Google
+facebook.com,https://facebook.com/,facebookuser,facebookpass,Facebook comment
+youtube.com,https://youtube.com/,youtubeusername,youtubepassword,
diff --git a/core/client/src/importexport/__tests__/fixtures/dashlane.csv b/core/client/src/importexport/__tests__/fixtures/dashlane.csv
new file mode 100644
index 000000000..157518a15
--- /dev/null
+++ b/core/client/src/importexport/__tests__/fixtures/dashlane.csv
@@ -0,0 +1,4 @@
+username,username2,username3,title,password,note,url,category,otpUrl
+Test username,,,Test,password123,,https://Test,,
+googleuser,,,Google,googlepassword,,https://www.google.com,,
+testusername,testusernamealternative,,Local,testpassword,testnote,https://www.testwebsite.local,,
\ No newline at end of file
diff --git a/core/client/src/importexport/__tests__/fixtures/dropbox.csv b/core/client/src/importexport/__tests__/fixtures/dropbox.csv
new file mode 100644
index 000000000..867310ae5
--- /dev/null
+++ b/core/client/src/importexport/__tests__/fixtures/dropbox.csv
@@ -0,0 +1,6 @@
+Name,URL,Username,Password,Notes
+Gmail,https://gmail.com,[email protected],gmailpass123,Important email account
+Facebook,https://facebook.com,fbuser,fbpass456,Social media account
+GitHub,https://github.com,devuser,devpass789,Development platform
+Secure Note,,,,Important information stored securely
+Test Site,https://test.example.com,testlogin,testpassword,Test notes for example site
diff --git a/core/client/src/importexport/__tests__/fixtures/edge.csv b/core/client/src/importexport/__tests__/fixtures/edge.csv
new file mode 100644
index 000000000..03512a534
--- /dev/null
+++ b/core/client/src/importexport/__tests__/fixtures/edge.csv
@@ -0,0 +1,5 @@
+name,url,username,password,note
+example.app.tld,https://example.app.tld/,exampleu,examplep,
+example.com,https://example.com/,Username,password,
+google.nl,https://google.nl/,myuser,mypass,Google note here microsoft edge
+youtube.com,https://youtube.com/,youtubeuser,ytpassword,Youtubenotes
diff --git a/core/client/src/importexport/__tests__/fixtures/enpass.csv b/core/client/src/importexport/__tests__/fixtures/enpass.csv
new file mode 100644
index 000000000..2c5a1b14c
--- /dev/null
+++ b/core/client/src/importexport/__tests__/fixtures/enpass.csv
@@ -0,0 +1,5 @@
+"Credit Card","Cardholder","ccholder","Type","cctype","Number","1234123412341234","*CVC","1234","*PIN","1234","Expiry date","12/28","INTERNET BANKING","","Username","","*Login password","","*Transaction password","","Website","","ADDITIONAL DETAILS","","Issuing bank","Issuingbank","Issued on","01/20","Valid from","01/20","Credit limit","5000","Withdrawal limit","5000","Interest rate","10","If lost, call",""
+"Google","Username","usergoogle","E-mail","[email protected]","*Password","password","Website","https://accounts.google.com/","ADDITIONAL DETAILS","","Phone number","003112345678","One-time code","PLW4SB3PQ7MKVXY2MXF4NEXS6Y","Security question","secquestion","*Security answer","secanswer","Secnotes here"
+"Identity","Initial","J","First name","John","Middle name","middle","Last name","Johnson","Gender","Male","Birth date","01-01-1970","Social Security Number","123123123","HOME ADDRESS","","Street","Street","City","City","State","State","Country","Country","ZIP","ZIP","CONTACT DETAILS","","Phone number","003112345678","Phone home","","Phone work","","WORK DETAILS","","Occupation","Occupation","Company","Company","Department","Department","Job title","Job title","Organization","Organization","WORK ADDRESS","","Street","","City","","State","","Country","","ZIP","","SOCIAL","","Twitter","","Facebook","","LinkedIn","","Skype","","Instagram","","Yahoo","","MSN","","ICQ","","AIM","","ADDITIONAL DETAILS","","Website","","Username","","E-mail","","*Password","","Secret question","","*Secret answer","","Signature",""
+"Password","Login","loginpw1","*Password","password","Access","AccessField","CustomField1","Customfield"
+"Securenote","Note only content here"
diff --git a/core/client/src/importexport/__tests__/fixtures/firefox.csv b/core/client/src/importexport/__tests__/fixtures/firefox.csv
new file mode 100644
index 000000000..a14add6d7
--- /dev/null
+++ b/core/client/src/importexport/__tests__/fixtures/firefox.csv
@@ -0,0 +1,4 @@
+"url","username","password","httpRealm","formActionOrigin","guid","timeCreated","timeLastUsed","timePasswordChanged"
+"https://example.com","username-example","examplepassword",,"","{2a5df2a4-c75b-4b32-bf7e-8cca012cf82c}","1743265493999","1743265493999","1743265493999"
+"https://youtube.com","youtubeusername","youtubepassword",,"","{40d0b777-551c-4875-98a2-20e486fc4289}","1743265510074","1743265510074","1743265510074"
+"https://www.aliasvault.com","username","password",,"","{73bed185-dd2a-44e1-b0f6-d397cb880300}","1743265527711","1743265527711","1743265527711"
\ No newline at end of file
diff --git a/core/client/src/importexport/__tests__/fixtures/keepass.csv b/core/client/src/importexport/__tests__/fixtures/keepass.csv
new file mode 100644
index 000000000..2038de379
--- /dev/null
+++ b/core/client/src/importexport/__tests__/fixtures/keepass.csv
@@ -0,0 +1,3 @@
+"Account","Login Name","Password","Web Site","Comments"
+"Sample Entry","User Name","Password","https://keepass.info/","Notes"
+"Sample Entry #2","Michael321","12345","https://keepass.info/help/kb/testform.html",""
diff --git a/core/client/src/importexport/__tests__/fixtures/keepass_special_chars.csv b/core/client/src/importexport/__tests__/fixtures/keepass_special_chars.csv
new file mode 100644
index 000000000..f4accfea7
--- /dev/null
+++ b/core/client/src/importexport/__tests__/fixtures/keepass_special_chars.csv
@@ -0,0 +1,4 @@
+"Account","Login Name","Password","Web Site","Comments"
+"Sample Entry","User Name","Password","https://keepass.info/","Notes"
+"Sample Entry #2","Michael321","12345","https://keepass.info/help/kb/testform.html",""
+"Entry with \"notes\" special chars","","DVfIsb4TGkL7oKCwyiet","","Note \"with quotes\"'as'd as/d/asd/ z's'sd a8e89A)_@()@'"":ÄS""d';asd;á'sd"
\ No newline at end of file
diff --git a/core/client/src/importexport/__tests__/fixtures/keepassxc.csv b/core/client/src/importexport/__tests__/fixtures/keepassxc.csv
new file mode 100644
index 000000000..84e5a0677
--- /dev/null
+++ b/core/client/src/importexport/__tests__/fixtures/keepassxc.csv
@@ -0,0 +1,4 @@
+"Group","Title","Username","Password","URL","Notes","TOTP","Icon","Last Modified","Created"
+"Test1","Sample Entry","User Name","Password","https://keepass.info/","Notes","","0","2025-03-29T18:29:16Z","2025-03-29T18:29:16Z"
+"Test1","Sample Entry #2","Michael321","12345","https://keepass.info/help/kb/testform.html","","","0","2025-03-29T18:29:16Z","2025-03-29T18:29:16Z"
+"Database/Windows/Windowssub1","Nested Entry","testuser","testpass123","https://example.com/","Nested folder test","","0","2025-03-29T18:29:16Z","2025-03-29T18:29:16Z"
diff --git a/core/client/src/importexport/__tests__/fixtures/lastpass.csv b/core/client/src/importexport/__tests__/fixtures/lastpass.csv
new file mode 100644
index 000000000..dcb085f23
--- /dev/null
+++ b/core/client/src/importexport/__tests__/fixtures/lastpass.csv
@@ -0,0 +1,14 @@
+url,username,password,totp,extra,name,grouping,fav
+https://example.com,Exampleusername,examplepassword,,Examplenotes,Examplename,examplefolder,0
+http://,userwithouturlornotes,userpass,,,Userwithouturlornotes,,0
+http://sn,,,,Securenotecontent here,securenote1,,0
+http://,,,,,Emptytitleonly,,0
+http://sn,,,,"NoteType:Credit Card
+Language:en-US
+Name on Card:Cardname
+Type:Creditcard
+Number:123456781234
+Security Code:1234
+Start Date:February,2001
+Expiration Date:May,2008
+Notes:Creditcardnotes here",Paymentcard1,,0
diff --git a/core/client/src/importexport/__tests__/fixtures/nordpass.csv b/core/client/src/importexport/__tests__/fixtures/nordpass.csv
new file mode 100644
index 000000000..621eb04cb
--- /dev/null
+++ b/core/client/src/importexport/__tests__/fixtures/nordpass.csv
@@ -0,0 +1,8 @@
+name,url,additional_urls,username,password,note,cardholdername,cardnumber,cvc,pin,expirydate,zipcode,folder,full_name,phone_number,email,address1,address2,city,country,state,type,custom_fields
+Password title,http://google.nl,,[email protected],password,,,,,,,,Business,,,,,,,,,password,"[{""type"":""text"",""label"":""CustomFieldName1"",""value"":""Test""}]"
+SecureNote1,,,,,"This is my secure note content
+
+Test test",,,,,,,,,,,,,,,,note,
+Creditcard Visa,,,,,,Holdername,1234123412341234123,1231,1231,12/28,1231AB,,,,,,,,,,credit_card,
+Business,,,,,,,,,,,,,,,,,,,,,folder,
+Root item,,,rootuser,rootpass,,,,,,,,,,,,,,,,,password,
diff --git a/core/client/src/importexport/__tests__/fixtures/protonpass.csv b/core/client/src/importexport/__tests__/fixtures/protonpass.csv
new file mode 100644
index 000000000..acc632dfd
--- /dev/null
+++ b/core/client/src/importexport/__tests__/fixtures/protonpass.csv
@@ -0,0 +1,5 @@
+type,name,url,email,username,password,note,totp,createTime,modifyTime,vault
+login,Test proton 1,https://www.website.com/,,user1,pass1,,otpauth://totp/Strongbox?secret=PLW4SB3PQ7MKVXY2MXF4NEXS6Y&algorithm=SHA1&digits=6&period=30,1744362003,1744362003,Personal
+alias,Test alias,,[email protected],,,,,1744362031,1744362052,Personal
+login,Test proton2,,,testuser2,testpassword2,,,1744362088,1744362088,Personal
+login,testwithoutpass,,,testuser,,,,1744362100,1744362110,Personal
\ No newline at end of file
diff --git a/core/client/src/importexport/__tests__/fixtures/roboform.csv b/core/client/src/importexport/__tests__/fixtures/roboform.csv
new file mode 100644
index 000000000..31917bf57
--- /dev/null
+++ b/core/client/src/importexport/__tests__/fixtures/roboform.csv
@@ -0,0 +1,9 @@
+Name,Url,MatchUrl,Login,Pwd,Note,Folder,RfFieldsV2
+Com,https://www.example.com.com,https://www.example.com,username1,password1,,,"User ID$,,,txt,username1","Password$,,,pwd,password1","Test,,,txt,Test"
+Example,https://www.example.com,https://www.example.com,exampleusername,examplepassword,Examplenote,,"User ID$,,,txt,exampleusername","Password$,,,pwd,examplepassword"
+Safenotename,,,,,Safenote content example here,
+Business,https://www.business.com,https://www.business.com,businessusername,businesspassword,,/Business,"User ID$,,,txt,businessusername","Password$,,,pwd,businesspassword"
+Multiline safenote,,,,,"First note line
+Second note line
+
+Fourth note line after a blank one",
diff --git a/core/client/src/importexport/__tests__/fixtures/strongbox.csv b/core/client/src/importexport/__tests__/fixtures/strongbox.csv
new file mode 100644
index 000000000..ee327230c
--- /dev/null
+++ b/core/client/src/importexport/__tests__/fixtures/strongbox.csv
@@ -0,0 +1,10 @@
+Title,Username,Email,Password,URL,OTPAuth,Notes
+Sample,username,,&3V_$z?Aiw-_x+nbYj,https://strongboxsafe.com,,
+Business1,username,,NYVqE8MpfnX#r+ukpE,,,
+Business 2,username,,+jeN9dTLy4Ahh-C3fB,,,
+Prive 1,username,,4c*Ksh??7Q_K#xKMLh,,,
+Prive 2,username,,Ld6JsF^JXR7^8_F#Ad,,,
+TutaNota,[email protected],,blabla,,otpauth://totp/Strongbox?secret=PLW4SB3PQ7MKVXY2MXF4NEXS6Y&algorithm=SHA1&digits=6&period=30,"Recovery code for main account: e45f a053 8b7e 127c 302b a816 abc2 739a 9b0c 7393 6adc 123a ff4e 084d 7798 ef26
+
+Recovery code for 2FA:
+e45f a053 8b7e 127c 302b a816 abc2 739a 9b0c 7393 6adc 123a ff4e 084d 7798 ef26"