@@ -13,7 +13,7 @@ void Tests::tabEncryption()
1313
1414 // Enable tab encryption - this should work even if the encryption support
1515 // is not build into the app.
16- RUN (" config" << " tab_encryption_enabled " << " true" , " true\n " );
16+ RUN (" config" << " encrypt_tabs " << " true" , " true\n " );
1717
1818 // Verify tab doesn't exist yet
1919 QVERIFY ( !hasTab (tab) );
@@ -50,7 +50,7 @@ void Tests::tabEncryption()
5050 // Password is needed when disabling encryption
5151 runMultiple (
5252 [&]() { KEYS (passwordEntryCurrentId << " :TEST123" << " ENTER" ); },
53- [&]() { RUN (" config" << " tab_encryption_enabled " << " false" , " false\n " ); }
53+ [&]() { RUN (" config" << " encrypt_tabs " << " false" , " false\n " ); }
5454 );
5555 KEYS (clipboardBrowserId);
5656#endif
@@ -81,7 +81,7 @@ void Tests::tabEncryptionPasswordNew()
8181 << passwordEntryRetypeId << " :TEST123" << " ENTER"
8282 );
8383 },
84- [&]() { RUN (" config" << " tab_encryption_enabled " << " true" , " true\n " ); }
84+ [&]() { RUN (" config" << " encrypt_tabs " << " true" , " true\n " ); }
8585 );
8686 KEYS (clipboardBrowserId);
8787
@@ -113,7 +113,7 @@ void Tests::tabEncryptionPasswordCurrent()
113113 const Args args = Args (" tab" ) << tab << " separator" << " " ;
114114 RUN (args << " add" << " test data 3" << " test data 2" << " test data 1" , " " );
115115
116- RUN (" config" << " tab_encryption_enabled " << " true" , " true\n " );
116+ RUN (" config" << " encrypt_tabs " << " true" , " true\n " );
117117
118118 m_test->setEnv (" COPYQ_PASSWORD" , " :TEST" );
119119 m_test->ignoreErrors (QRegularExpression (" Loaded password does not match the stored hash" ));
@@ -151,7 +151,7 @@ void Tests::tabEncryptionPasswordRetry()
151151 << passwordEntryRetypeId << " :TEST123" << " ENTER"
152152 );
153153 },
154- [&]() { RUN (" config" << " tab_encryption_enabled " << " true" , " true\n " ); }
154+ [&]() { RUN (" config" << " encrypt_tabs " << " true" , " true\n " ); }
155155 );
156156 KEYS (clipboardBrowserId);
157157#else
@@ -189,11 +189,11 @@ void Tests::tabEncryptionPasswordRetryFail()
189189 << passwordMessageFailedId << " ENTER"
190190 );
191191 },
192- [&]() { RUN (" config" << " tab_encryption_enabled " << " true" , " true\n " ); }
192+ [&]() { RUN (" config" << " encrypt_tabs " << " true" , " true\n " ); }
193193 );
194194
195195 // If the initial password was not provided, encryption should be disabled.
196- RUN (" config" << " tab_encryption_enabled " , " false\n " );
196+ RUN (" config" << " encrypt_tabs " , " false\n " );
197197#else
198198 SKIP (" Encryption support not built-in" );
199199#endif
@@ -202,7 +202,7 @@ void Tests::tabEncryptionPasswordRetryFail()
202202void Tests::tabEncryptionLargeItems ()
203203{
204204#ifdef WITH_QCA_ENCRYPTION
205- RUN (" config" << " tab_encryption_enabled " << " true" , " true\n " );
205+ RUN (" config" << " encrypt_tabs " << " true" , " true\n " );
206206
207207 const auto tab = testTab (1 );
208208 const auto args = Args (" tab" ) << tab;
@@ -234,7 +234,7 @@ void Tests::tabEncryptionLargeItems()
234234void Tests::tabEncryptionChangePassword ()
235235{
236236#ifdef WITH_QCA_ENCRYPTION
237- RUN (" config" << " tab_encryption_enabled " << " true" , " true\n " );
237+ RUN (" config" << " encrypt_tabs " << " true" , " true\n " );
238238
239239 const auto tab = testTab (1 );
240240 const auto args = Args (" tab" ) << tab;
@@ -277,7 +277,7 @@ void Tests::tabEncryptionMissingHash()
277277{
278278 // Ensure that missing hash file does not lock users out from their data.
279279#ifdef WITH_QCA_ENCRYPTION
280- RUN (" config" << " tab_encryption_enabled " << " true" , " true\n " );
280+ RUN (" config" << " encrypt_tabs " << " true" , " true\n " );
281281
282282 const auto tab = testTab (1 );
283283 const auto args = Args (" tab" ) << tab;
@@ -318,10 +318,10 @@ void Tests::tabEncryptionMissingHash()
318318 // Try to disable decryption with a wrong password
319319 runMultiple (
320320 [&]() { KEYS (passwordEntryCurrentId << " :TEST1234" << " ENTER" ); },
321- [&]() { RUN (" config" << " tab_encryption_enabled " << " false" , " false\n " ); }
321+ [&]() { RUN (" config" << " encrypt_tabs " << " false" , " false\n " ); }
322322 );
323323 KEYS (clipboardBrowserId);
324- RUN (" config" << " tab_encryption_enabled " , " true\n " );
324+ RUN (" config" << " encrypt_tabs " , " true\n " );
325325
326326 TEST ( m_test->stopServer () );
327327
@@ -335,10 +335,10 @@ void Tests::tabEncryptionMissingHash()
335335 // Disable decryption
336336 runMultiple (
337337 [&]() { KEYS (passwordEntryCurrentId << " :TEST123" << " ENTER" ); },
338- [&]() { RUN (" config" << " tab_encryption_enabled " << " false" , " false\n " ); }
338+ [&]() { RUN (" config" << " encrypt_tabs " << " false" , " false\n " ); }
339339 );
340340 KEYS (clipboardBrowserId);
341- RUN (" config" << " tab_encryption_enabled " , " false\n " );
341+ RUN (" config" << " encrypt_tabs " , " false\n " );
342342
343343 TEST ( m_test->stopServer () );
344344
0 commit comments