Bug #8717
closedPopulation does not work with unsafes marks in presets
100%
Description
As we are going to save marks for tests in presets all these marks can already exist in Bridge, so it should not complain about this. But currently Bridge fails with the following exception if an unsafe mark from presets already exists:
==================================================
[12.Feb.2018 08:38:21] Unsafe mark with specified identifier exists in the system
Traceback (most recent call last):
File "/var/www/klever-bridge/bridge/views.py", line 62, in population
(service_username, request.POST.get('service_password'))
File "/var/www/klever-bridge/bridge/populate.py", line 72, in init
self.__population()
File "/var/www/klever-bridge/bridge/populate.py", line 86, in population
self.__populate_unsafe_marks()
File "/var/www/klever-bridge/bridge/populate.py", line 276, in _populate_unsafe_marks
res = UnsafeUtils.PopulateMarks(self.manager)
File "/var/www/klever-bridge/marks/UnsafeUtils.py", line 686, in __init
self._marks = self._get_data()
File "/var/www/klever-bridge/marks/UnsafeUtils.py", line 830, in __get_data
raise Exception('Unsafe mark with specified identifier exists in the system')
Exception: Unsafe mark with specified identifier exists in the system