def test_configuration_updated_new_node(self):
        d = self.assertResponseCode(
            b"POST", b"/configuration/containers",
            {
                u"node_uuid": self.NODE_B, u"name": u"postgres",
                u"image": u"postgres"
            }, CREATED
        )

        def created(_):
            deployment = self.persistence_service.get()
            expected = Deployment(
                nodes={
                    Node(
                        uuid=self.NODE_B_UUID,
                        applications=[
                            Application(
                                name='postgres',
                                image=DockerImage.from_string('postgres')
                            ),
                        ]
                    ),
                }
            )
            self.assertEqual(deployment, expected)

        d.addCallback(created)
        return d
A valid API request to create a container on a new node results
dataset/ETHPy150Open ClusterHQ/flocker/flocker/control/test/test_httpapi.py/CreateContainerTestsMixin.test_configuration_updated_new_node