def METHOD_NAME(self):
    """Test List Pod Api with cluster CPU and Memory OverProvisioning
 """
    podlist = Pod.list(self.apiclient)
    for pod in podlist:
        clusterlist = Cluster.list(self.apiclient, podid=pod.id)
        if len(clusterlist) > 1:
            updateCpuOvercommitCmd = updateConfiguration.updateConfigurationCmd()
            updateCpuOvercommitCmd.clusterid = clusterlist[0].id
            updateCpuOvercommitCmd.name="cpu.overprovisioning.factor"
            if clusterlist[0].cpuovercommitratio == clusterlist[1].cpuovercommitratio and clusterlist[0].cpuovercommitratio == "1.0":
                cpuovercommit = "1.0"
                updateCpuOvercommitCmd.value="2.0"
                self.apiclient.updateConfiguration(updateCpuOvercommitCmd)
            elif clusterlist[0].cpuovercommitratio != clusterlist[1].cpuovercommitratio:
                cpuovercommit = clusterlist[0].cpuovercommitratio
            else:
                cpuovercommit = clusterlist[0].cpuovercommitratio
                updateCpuOvercommitCmd.value="1.0"
                self.apiclient.updateConfiguration(updateCpuOvercommitCmd)
            updateMemoryOvercommitCmd = updateConfiguration.updateConfigurationCmd()
            updateMemoryOvercommitCmd.clusterid = clusterlist[0].id
            updateMemoryOvercommitCmd.name="mem.overprovisioning.factor"
            if clusterlist[0].memoryovercommitratio == clusterlist[1].memoryovercommitratio and clusterlist[0].memoryovercommitratio == "1.0":
                memoryovercommit = "1.0"
                updateMemoryOvercommitCmd.value="2.0"
                self.apiclient.updateConfiguration(updateMemoryOvercommitCmd)
            elif clusterlist[0].memoryovercommitratio != clusterlist[1].memoryovercommitratio:
                memoryovercommit = clusterlist[0].memoryovercommitratio
            else:
                memoryovercommit = clusterlist[0].memoryovercommitratio
                updateMemoryOvercommitCmd.value="1.0"
                self.apiclient.updateConfiguration(updateMemoryOvercommitCmd)
            podWithCap = Pod.list(self.apiclient, id=pod.id, showcapacities=True)
            cpucapacity = Capacities.list(self.apiclient, podid=pod.id, type=1)
            memorycapacity = Capacities.list(self.apiclient, podid=pod.id, type=0)
            updateCpuOvercommitCmd.value = cpuovercommit
            updateMemoryOvercommitCmd.value = memoryovercommit
            self.apiclient.updateConfiguration(updateCpuOvercommitCmd)
            self.apiclient.updateConfiguration(updateMemoryOvercommitCmd)
            self.assertEqual(
                [cap for cap in podWithCap[0].capacity if cap.type == 1][0].capacitytotal,
                cpucapacity[0].capacitytotal,
                "listPods api returns wrong CPU capacity "
            )
            self.assertEqual(
                [cap for cap in podWithCap[0].capacity if cap.type == 0][0].capacitytotal,
                memorycapacity[0].capacitytotal,
                "listPods api returns wrong memory capacity"
            )