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)
 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"])
示例#4
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"])