Skip to content

Commit

Permalink
Tests: only check for successful submission in stager test
Browse files Browse the repository at this point in the history
FTS remove the fts_bringonline daemon which we abused to fake a staging
transfer. Considering that we cannot execute a fake staging transfer
in tests anymore, stop the stager test after submission.
  • Loading branch information
rcarpa authored and bari12 committed Jan 15, 2024
1 parent e44d24d commit 8a29a5c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_conveyor.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,7 @@ def test_non_deterministic_dst(did_factory, did_client, root_account, vo, caches


@skip_rse_tests_with_accounts
@pytest.mark.dirty(reason="Submits a transfer to FTS which cannot be ever executed in this test env.")
@pytest.mark.noparallel(groups=[NoParallelGroups.STAGER, NoParallelGroups.POLLER, NoParallelGroups.FINISHER])
def test_stager(rse_factory, did_factory, root_account, replica_client):
"""
Expand Down Expand Up @@ -860,8 +861,8 @@ def test_stager(rse_factory, did_factory, root_account, replica_client):
'requested_at': datetime.utcnow()}])
stager(once=True, rses=[{'id': rse_id} for rse_id in all_rses])

replica = __wait_for_replica_transfer(dst_rse_id=dst_rse_id, max_wait_seconds=2 * MAX_POLL_WAIT_SECONDS, **did)
assert replica['state'] == ReplicaState.AVAILABLE
request = request_core.get_request_by_did(rse_id=dst_rse_id, **did)
assert request['state'] == RequestState.SUBMITTED


@pytest.mark.noparallel(groups=[NoParallelGroups.SUBMITTER, NoParallelGroups.FINISHER])
Expand Down

0 comments on commit 8a29a5c

Please sign in to comment.