From 74b420220315b9b0731a6ebb22ce3f4a837cf052 Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 27 Jan 2015 14:19:13 -0800 Subject: skip tests that require user registration if it is disabled --- tests/white-box/webapp.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/white-box') 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) -- cgit v1.2.3