예제 #1
0
 def test_probe_hmcz_and_enlist_commissions(self):
     rpc = yield self.create_fake_rpc_service()
     yield hmcz_module.probe_hmcz_and_enlist(
         self.user,
         self.hostname,
         self.username,
         self.password,
         accept_all=True,
         domain=self.domain,
     )
     self.assertRPC(rpc, "commissioning")
예제 #2
0
 def test_probe_hmcz_and_enlist_filters(self):
     rpc = yield self.create_fake_rpc_service()
     partition_name = random.choice(list(self.partitions.keys()))
     yield hmcz_module.probe_hmcz_and_enlist(
         self.user,
         self.hostname,
         self.username,
         self.password,
         accept_all=False,
         domain=self.domain,
         prefix_filter=partition_name,
     )
     self.assertRPC(rpc, "new", [partition_name])