Skip to content

Commit

Permalink
[DO NOT MERGE] just a testing commit
Browse files Browse the repository at this point in the history
  • Loading branch information
vsedmik committed Sep 27, 2024
1 parent 8109a0f commit cd7712a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/foreman/installer/test_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@
"""

from time import sleep

import pytest
import requests
import yaml

from robottelo import ssh
from robottelo.config import settings
from robottelo.constants import DEFAULT_ARCHITECTURE, FOREMAN_SETTINGS_YML, PRDS, REPOS, REPOSET
from robottelo.logging import logger
from robottelo.utils.installer import InstallerCommand
from robottelo.utils.issue_handlers import is_open
from robottelo.utils.ohsnap import dogfood_repository
Expand Down Expand Up @@ -342,8 +345,14 @@ def test_capsule_installation(
:customerscenario: true
"""
# Create testing organization
org = sat_fapolicyd_install.api.Organization().create()
for i in range(100):
try:
org = sat_fapolicyd_install.api.Organization(name=f'Org_{i}').create()
break # when the first org create succeeds
except Exception as e:
logger.exception(e)
sleep(60)
sleep(3 * 3600)

# Unregister capsule in case it's registered to CDN
cap_ready_rhel.unregister()
Expand Down

0 comments on commit cd7712a

Please sign in to comment.