def test_multi_containers_multi_nodes(self):
        postgres_ports = [Port(internal_port=5432, external_port=54320)]
        mysql_ports = [Port(internal_port=3306, external_port=33060)]
        applications = {
            self.NODE_A: [
                Application(
                    name='postgres',
                    image=DockerImage.from_string('postgres'),
                    ports=postgres_ports
                ),
                Application(
                    name='webserver',
                    image=DockerImage.from_string('nginx:latest'),
                ),
            ],
            self.NODE_B: [
                Application(
                    name='mysql',
                    image=DockerImage.from_string('mysql:5.6.17'),
                    ports=mysql_ports,
                    cpu_shares=512,
                    memory_limit=524288000
                ),
            ]
        }
        deployment = Deployment(
            nodes={
                Node(
                    uuid=self.NODE_A_UUID,
                    applications=applications[self.NODE_A]
                ),
                Node(
                    uuid=self.NODE_B_UUID,
                    applications=applications[self.NODE_B]
                ),
            },
        )
        expected_a = [
            container_configuration_response(
                application, self.NODE_A
            ) for application in applications[self.NODE_A]
        ]
        expected_b = [
            container_configuration_response(
                application, self.NODE_B
            ) for application in applications[self.NODE_B]
        ]
        return self._containers_test(deployment, expected_a + expected_b)
Add Nimbus host/port arguments to the command parser.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/control/test/test_httpapi.py/GetContainerConfigurationTestsMixin.test_multi_containers_multi_nodes--crossover with--dataset/ETHPy150Open Yelp/pyleus/pyleus/cli/topologies.py/add_nimbus_arguments