diff --git a/server/tests/test.js b/server/tests/test.js new file mode 100644 index 0000000..05e5719 --- /dev/null +++ b/server/tests/test.js @@ -0,0 +1,201 @@ +server_url = "https://gpass.soutade.fr"; +current_user = "test-v7"; +pbkdf2_level = 1000; +CRYPTO_V1_COMPATIBLE = 1; +use_shadow_logins = false; + +/* + Must contains : + URL login password masterkey + ----------------------------------------------------------------- +v7 format + test test test test + test2 test2 test2 test2 (+shadow login) + test16 test16 testtesttesttest test16 + test17 test17 testtesttesttestt test17 +v8 format + testv8 testv8 testv8 testv8 + testv8_2 testv8_2 testv8_2 testv8_2 (+shadow login) + testv8_16 testv8_16 testtesttesttest testv8_16 + testv8_17 testv8_17 testtesttesttestt testv8_17 + + We assume shadow logins are enabled in server side +*/ + +function alert(a) {} +function nb_unciphered_passwords(passwords) +{ + var nb_unciphered = 0; + for(i=0;i + + + + + QUnit Example + + + +
+
+ + + + + + diff --git a/server/tests/users/test-v7/gpass.bdd b/server/tests/users/test-v7/gpass.bdd new file mode 100644 index 0000000..b122377 Binary files /dev/null and b/server/tests/users/test-v7/gpass.bdd differ diff --git a/server/tests/users/test-v7/gpass.bdd.init b/server/tests/users/test-v7/gpass.bdd.init new file mode 100644 index 0000000..b122377 Binary files /dev/null and b/server/tests/users/test-v7/gpass.bdd.init differ diff --git a/server/tests/users/test-v7/index.php b/server/tests/users/test-v7/index.php new file mode 100644 index 0000000..3f09c8a --- /dev/null +++ b/server/tests/users/test-v7/index.php @@ -0,0 +1,23 @@ +. +*/ + +include "../../_user"; + +?> \ No newline at end of file