Exemplo n.º 1
0
 def test_28_fetch_registered_pool():
     '''Fetch the registered pool ID'''
     registered_pool = RHUIManagerCLI.subscriptions_list(CONNECTION, "registered", True)
     nose.tools.ok_(re.search(r'^[0-9a-f]+$', registered_pool) is not None)
     with open(REGISTERED_POOL_FILE, "w") as rpf:
         rpf.write(registered_pool)
Exemplo n.º 2
0
 def test_30_check_reg_pool_for_rhui(self):
     '''Check if the registered subscription's description is RHUI for CCSP'''
     list_reg = RHUIManagerCLI.subscriptions_list(CONNECTION)
     nose.tools.ok_(self.subscription_name_1 in list_reg,
                    msg="Expected subscription not registered in RHUI! Got: " + list_reg)
Exemplo n.º 3
0
 def test_26_fetch_available_pool():
     '''Fetch the available pool ID'''
     available_pool = RHUIManagerCLI.subscriptions_list(CONNECTION, "available", True)
     nose.tools.ok_(re.search(r'^[0-9a-f]+$', available_pool) is not None)
     with open(AVAILABLE_POOL_FILE, "w") as apf:
         apf.write(available_pool)