def test_06_check_registered_subs(self):
     '''
         check if the subscription is now tracked as registered
     '''
     reg_sub = RHUIManagerSubMan.subscriptions_list(CONNECTION, "registered")
     nose.tools.assert_not_equal(len(reg_sub), 0)
     nose.tools.assert_equal(self.subscription_name_1, reg_sub[0])
 def test_04_check_available_subs(self):
     '''
         check if the subscription available to RHUI is indeed RHUI for CCSP
     '''
     avail_sub = RHUIManagerSubMan.subscriptions_list(CONNECTION, "available")
     nose.tools.assert_not_equal(len(avail_sub), 0)
     nose.tools.assert_equal(self.subscription_name_1, avail_sub[0])
 def test_09_check_registered_subs():
     """check if the subscriptions are no longer tracked as registered"""
     reg_sub = RHUIManagerSubMan.subscriptions_list(RHUA, "registered")
     nose.tools.ok_(not reg_sub, msg="something remained: %s" % reg_sub)
 def test_08_unregister_sub_in_rhui(self):
     """unregister the subscriptions in RHUI"""
     RHUIManagerSubMan.subscriptions_unregister(RHUA, self.subscriptions.values())
     # also delete the cert files
     RHUIManager.remove_rh_certs(RHUA)
 def test_07_check_registered_subs(self):
     """check if the subscriptions are now tracked as registered"""
     reg_subs = RHUIManagerSubMan.subscriptions_list(RHUA, "registered")
     nose.tools.eq_(sorted(reg_subs), sorted(self.subscriptions.values()))
 def test_06_reg_atomic_sub_in_rhui(self):
     """register the Atomic subscription in RHUI"""
     RHUIManagerSubMan.subscriptions_register(RHUA, [self.subscriptions["Atomic"]])
 def test_05_reg_rhui_sub_in_rhui(self):
     """register the RHUI subscription in RHUI"""
     RHUIManagerSubMan.subscriptions_register(RHUA, [self.subscriptions["RHUI"]])
 def test_04_check_available_subs(self):
     """check if the subscriptions available to RHUI are the known ones"""
     avail_subs = RHUIManagerSubMan.subscriptions_list(RHUA, "available")
     nose.tools.eq_(sorted(avail_subs), sorted(self.subscriptions.values()))
 def test_08_check_registered_subs():
     '''
         check if the subscription is no longer tracked as registered
     '''
     reg_sub = RHUIManagerSubMan.subscriptions_list(CONNECTION, "registered")
     nose.tools.assert_equal(len(reg_sub), 0)
Exemplo n.º 10
0
 def test_07_unregister_sub_in_rhui(self):
     '''
         unregister the subscription in RHUI
     '''
     RHUIManagerSubMan.subscriptions_unregister(CONNECTION, [self.subscription_name_1])
Exemplo n.º 11
0
 def test_05_register_sub_in_rhui(self):
     '''
         register the RHUI for CCSP subscription in RHUI
     '''
     RHUIManagerSubMan.subscriptions_register(CONNECTION, [self.subscription_name_1])