def test_fig_configuration_format(self):
        self.cluster_state_service.apply_changes(
            self.DEPLOYMENT_STATE.nodes)

        fig_config = {
            u'wordpress': {
                u'environment': {u'WORDPRESS_ADMIN_PASSWORD': u'admin'},
                u'volumes': [u'/var/www/wordpress'],
                u'image': u'sample/wordpress',
                u'ports': [u'8080:80'],
                u'links': [u'mysql:db'],
            },
            u'mysql': {
                u'image': u'sample/mysql',
                u'ports': [u'3306:3306', u'3307:3307'],
            }
        }

        configuration = {u"applications": fig_config,
                         u"deployment": COMPLEX_DEPLOYMENT_YAML}
        setting = self.assertResponseCode(
            b"POST", b"/configuration/_compose", configuration, OK
        )

        def configuration_set(_):
            actual = self.persistence_service.get()
            apps = FigConfiguration(fig_config).applications()
            expected = model_from_configuration(
                self.DEPLOYMENT_STATE,
                applications=apps,
                deployment_configuration=COMPLEX_DEPLOYMENT_YAML)
            self.assertEqual(actual, expected)
        setting.addCallback(configuration_set)
        return setting
POSTing to ``/configuration/_compose`` in Fig/Docker Compose
dataset/ETHPy150Open ClusterHQ/flocker/flocker/control/test/test_httpapi.py/ConfigurationComposeTestsMixin.test_fig_configuration_format