Ejemplo n.º 1
0
 def test_25_register_system():
     '''Register the system in RHSM, attach RHUI SKU'''
     # update subscription-manager first (due to RHBZ#1554482)
     rhua_os_version = Util.get_rhua_version(CONNECTION)
     if rhua_os_version["major"] == 7 and rhua_os_version["minor"] == 5:
         Expect.expect_retval(CONNECTION, "yum -y update subscription-manager", timeout=30)
     RHSMRHUI.register_system(CONNECTION)
     RHSMRHUI.attach_rhui_sku(CONNECTION)
Ejemplo n.º 2
0
 def test_01_register_system():
     '''
         register with RHSM
     '''
     # update subscription-manager first (due to RHBZ#1554482)
     rhua_os_version = Util.get_rhua_version(CONNECTION)
     if rhua_os_version["major"] == 7 and rhua_os_version["minor"] == 5:
         Expect.expect_retval(CONNECTION, "yum -y update subscription-manager", timeout=30)
     RHSMRHUI.register_system(CONNECTION)
Ejemplo n.º 3
0
def test_08_qpid_linearstore():
    '''
        check if the qpid-cpp-server-linearstore package is available
    '''
    # for RHBZ#1702254
    needs_registration = not Helpers.is_iso_installation(RHUA) and not Helpers.is_registered(RHUA)
    if needs_registration:
        with open("/etc/rhui3_tests/tested_repos.yaml") as configfile:
            cfg = yaml.load(configfile)
        sub = cfg["subscriptions"]["RHUI"]
        RHSMRHUI.register_system(RHUA)
        RHSMRHUI.attach_subscription(RHUA, sub)
        RHSMRHUI.enable_rhui_repo(RHUA, False)
    Expect.expect_retval(RHUA, "yum list qpid-cpp-server-linearstore", timeout=30)
    if needs_registration:
        RHSMRHUI.unregister_system(RHUA)
Ejemplo n.º 4
0
 def test_32_unregister_system():
     '''Unregister the system from RHSM'''
     RHSMRHUI.unregister_system(CONNECTION)
 def test_10_unregister_system():
     """unregister from RHSM"""
     RHSMRHUI.unregister_system(RHUA)
 def test_03_attach_atomic_sub(self):
     """attach the Atomic subscription"""
     RHSMRHUI.attach_subscription(RHUA, self.subscriptions["Atomic"])
 def test_02_attach_rhui_sub(self):
     """attach the RHUI subscription"""
     RHSMRHUI.attach_subscription(RHUA, self.subscriptions["RHUI"])
 def test_01_register_system():
     """register with RHSM"""
     RHSMRHUI.register_system(RHUA)
Ejemplo n.º 9
0
 def test_36_unregister_system():
     '''unregister the system from RHSM'''
     RHSMRHUI.unregister_system(RHUA)
Ejemplo n.º 10
0
 def test_29_register_system(self):
     '''register the system in RHSM, attach the RHUI subscription'''
     RHSMRHUI.register_system(RHUA)
     RHSMRHUI.attach_subscription(RHUA, self.subscriptions["RHUI"])
Ejemplo n.º 11
0
 def test_03_enable_rhui_3_repo():
     '''
         enable the RHUI 3 repo
     '''
     RHSMRHUI.enable_rhui_3_repo(CONNECTION)
Ejemplo n.º 12
0
 def test_02_attach_rhui_sku():
     '''
         check if the RHUI SKU is available and attach it if so
     '''
     RHSMRHUI.attach_rhui_sku(CONNECTION)
Ejemplo n.º 13
0
 def test_09_unregister_system():
     '''
         unregister from RHSM
     '''
     RHSMRHUI.unregister_system(CONNECTION)