Skip to content

Commit

Permalink
nan
Browse files Browse the repository at this point in the history
  • Loading branch information
damoore044 committed Feb 15, 2024
1 parent e20f66f commit 62af55f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion robottelo/host_helpers/capsule_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def wait_for_sync(self, timeout=600, start_time=None):
f'One or more sync tasks have failed for capsule {self.hostname},'
f' {sync_status["last_failed_sync_tasks"]}'
)
# there was a prior active sync, when polled had finished:
# there were prior active sync task(s), when polled had finished:
# assert current status last_sync_time updated to on or after start_time
# assert current status shows no active sync tasks remaining
if ongoing_sync:
Expand Down
10 changes: 6 additions & 4 deletions tests/foreman/api/test_capsulecontent.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,13 @@ def test_positive_sync_updated_repo(
assert len(cv.version) == 1

cvv = cv.version[-1].read()
timestamp = datetime.utcnow()
cvv.promote(data={'environment_ids': function_lce.id})
module_capsule_configured.wait_for_sync(start_time=timestamp)

cvv = cvv.read()
assert len(cvv.environment) == 2

module_capsule_configured.wait_for_sync()

# Upload more content to the repository
with open(DataFile.SRPM_TO_UPLOAD, 'rb') as handle:
repo.upload_content(files={'content': handle})
Expand All @@ -276,12 +277,13 @@ def test_positive_sync_updated_repo(

cv.version.sort(key=lambda version: version.id)
cvv = cv.version[-1].read()
timestamp = datetime.utcnow()
cvv.promote(data={'environment_ids': function_lce.id})
module_capsule_configured.wait_for_sync()

cvv = cvv.read()
assert len(cvv.environment) == 2

module_capsule_configured.wait_for_sync()

# Check the content is synced on the Capsule side properly
sat_repo_url = target_sat.get_published_repo_url(
org=function_org.label,
Expand Down

0 comments on commit 62af55f

Please sign in to comment.