Skip to content

Commit 3d70fad

Browse files
authored
Move capsule test from robottelo to upstream (#21039)
Move test `test_positive_create_update_and_remove_capsule` to upstream Due to test inefficincy of this test (long run - 25min) it can be moved directly to upstream to test same functionality without creating real capsules.
1 parent bee09aa commit 3d70fad

1 file changed

Lines changed: 0 additions & 29 deletions

File tree

tests/foreman/api/test_location.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -220,35 +220,6 @@ def test_positive_update_entities(self, make_entities, target_sat):
220220
assert location.compute_resource[0].read().provider == 'Libvirt'
221221
assert location.update(['user']).user[0].id == make_entities["new_user"].id
222222

223-
@pytest.mark.run_in_one_thread
224-
def test_positive_create_update_and_remove_capsule(self, make_proxies, target_sat):
225-
"""Update location with new capsule
226-
227-
:id: 2786146f-f466-4ed8-918a-5f46806558e2
228-
229-
:expectedresults: Location updated successfully and has correct capsule
230-
assigned
231-
232-
:BZ: 1398695
233-
234-
:CaseImportance: High
235-
"""
236-
proxy_id_1 = make_proxies['proxy1']['id']
237-
proxy_id_2 = make_proxies['proxy2']['id']
238-
239-
proxy = target_sat.api.SmartProxy(id=proxy_id_1).read()
240-
location = target_sat.api.Location(smart_proxy=[proxy]).create()
241-
242-
new_proxy = target_sat.api.SmartProxy(id=proxy_id_2).read()
243-
location.smart_proxy = [new_proxy]
244-
location = location.update(['smart_proxy'])
245-
assert location.smart_proxy[0].id == new_proxy.id
246-
assert location.smart_proxy[0].read().name == new_proxy.name
247-
248-
location.smart_proxy = []
249-
location = location.update(['smart_proxy'])
250-
assert len(location.smart_proxy) == 0
251-
252223
def test_negative_update_domain(self, target_sat):
253224
"""Try to update existing location with incorrect domain. Use
254225
domain id

0 commit comments

Comments
 (0)