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
Updated by Ilja Zakharov almost 7 years ago
But at population Bridge still should complain if an existing mark is not from presets.
Updated by Ilja Zakharov almost 7 years ago
- Priority changed from Urgent to Immediate
Actually, it blocks several other issues that I would like to test and merge together, so this is quite an important bug.
Updated by Ilja Zakharov almost 7 years ago
- Blocks Feature #8084: Add marks for testing and validation sets added
Updated by Vladimir Gratinskiy almost 7 years ago
- Due date set to 02/13/2018
- Status changed from New to Resolved
- % Done changed from 0 to 100
Fixed in fix_8717.
Updated by Evgeny Novikov almost 7 years ago
- Status changed from Resolved to Closed
I merged this branch to master in 6d71b32 as a part of branch clean_dir2.