'``Configuration.applications`` raises a
``ConfigurationError`` if the application_configuration has a link
entry that is missing the local port.'

def test_links_missing_remote_port(self):

    config = dict(version=1, applications={u'mysql-hybridcluster': dict(image=u'busybox', links=[{u'local_port': 90, u'alias': u'mysql'}])})
    parser = FlockerConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser.applications)
    self.assertEqual(u"Application    'mysql-hybridcluster'    has    a    config    error.    Invalid    links    specification.    Missing    remote    port.", exception.message)
