diff options
author | elijah <elijah@riseup.net> | 2015-01-27 14:19:13 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2015-01-27 14:19:13 -0800 |
commit | 74b420220315b9b0731a6ebb22ce3f4a837cf052 (patch) | |
tree | 7d8f74855c1e755417c464751e23f30317e43a3a /tests | |
parent | b71084a1ce34c0565d9b7653468d583b131cfbd9 (diff) |
skip tests that require user registration if it is disabled
Diffstat (limited to 'tests')
-rw-r--r-- | tests/white-box/webapp.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/white-box/webapp.rb b/tests/white-box/webapp.rb index 9f104899..a0d64eea 100644 --- a/tests/white-box/webapp.rb +++ b/tests/white-box/webapp.rb @@ -42,11 +42,16 @@ class Webapp < LeapTest end def test_05_Can_create_and_authenticate_and_delete_user_via_API? - assert_tmp_user - pass + if property('webapp.allow_registration') + assert_tmp_user + pass + else + skip "New user registrations are disabled." + end end def test_06_Can_sync_Soledad? + return unless property('webapp.allow_registration') soledad_config = property('definition_files.soledad_service') if soledad_config && !soledad_config.empty? soledad_server = pick_soledad_server(soledad_config) |