X-Git-Url: http://git.ganeti.org/?p=ganeti-github.git;a=blobdiff_plain;f=test%2Fpy%2Fcmdlib%2Fcluster_unittest.py;h=650d8e1648d8dc6d42c17227c5d23d66d81ef8f0;hp=ff0d0bb25dca2c9e4c3479d1e96fcdceca5ee8f2;hb=40c4e5d7154c96374e7a30c5aedc9b5f63063b08;hpb=096b394e1fea93622924af3c480e014f21e789eb diff --git a/test/py/cmdlib/cluster_unittest.py b/test/py/cmdlib/cluster_unittest.py index ff0d0bb..650d8e1 100644 --- a/test/py/cmdlib/cluster_unittest.py +++ b/test/py/cmdlib/cluster_unittest.py @@ -217,16 +217,7 @@ class TestLUClusterDestroy(CmdlibTestCase): class TestLUClusterPostInit(CmdlibTestCase): - @testutils.patch_object(cluster, "_UpdateMasterClientCert") - def testExecution(self, update_client_cert_mock): - # mock the client certificate creation as it is tested separately - update_client_cert_mock.return_value = None - # For the purpose of this test, return the same certificate digest for all - # nodes - self.rpc.call_node_crypto_tokens = \ - lambda node_uuid, _: self.RpcResultsBuilder() \ - .CreateSuccessfulNodeResult(node_uuid, - [(constants.CRYPTO_TYPE_SSL_DIGEST, "IA:MA:FA:KE:DI:GE:ST")]) + def testExecution(self): op = opcodes.OpClusterPostInit() self.ExecOpCode(op)