summaryrefslogtreecommitdiff
path: root/tests/helpers
diff options
context:
space:
mode:
authorChristoph Kluenter <ckluente@thoughtworks.com>2015-12-01 15:02:02 +0100
committerChristoph Kluenter <ckluente@thoughtworks.com>2015-12-01 16:08:57 +0100
commitd610405e585966406fd9813423e300a39ef300b5 (patch)
tree6ebfa4216676884202d77b9b1b772eecc514d0c0 /tests/helpers
parent4fdcb4f126b36170c290f4059a8b019b8de5c9eb (diff)
don't check in database if user was deleted.
we already check if the webapp returned success when it deleted the user. If the webapp had failed it would not have returned success. leap_web has tests that prove this. This fixes https://leap.se/code/issues/7625
Diffstat (limited to 'tests/helpers')
-rw-r--r--tests/helpers/bonafide_helper.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/helpers/bonafide_helper.rb b/tests/helpers/bonafide_helper.rb
index 82db3973..20c3ca8d 100644
--- a/tests/helpers/bonafide_helper.rb
+++ b/tests/helpers/bonafide_helper.rb
@@ -98,14 +98,6 @@ class LeapTest
assert(response = JSON.parse(body), 'Delete response should be JSON')
assert(response["success"], 'Deleting user should be a success')
end
- domain = property('domain.full_suffix')
- identities_url = couchdb_url("/identities/_design/Identity/_view/by_address?key=%22#{user.username}@#{domain}%22")
- get(identities_url) do |body, response, error|
- assert error.nil?, "Error checking identities db: #{error}"
- assert response.code.to_i == 200, "Unable to check that user identity was deleted: HTTP response from API should have code 200, was #{response.code} #{error} #{body}"
- assert(response = JSON.parse(body), 'Couch response should be JSON')
- assert response['rows'].empty?, "Identity should have been deleted for test user #{user.username} (id #{user.id}), but was not! Response was: #{body}."
- end
end
end