'``Configuration._parse_link_configuration`` raises a
``ConfigurationError`` if a configured link has an remote port that is
not of type ``int``.'

def test_error_on_link_remote_port_not_int(self):

    links = [{u'alias': u'some-service', u'local_port': 1234, u'remote_port': 56.78}]
    config = dict()
    parser = FlockerConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser._parse_link_configuration, u'mysql-hybridcluster', links)
    self.assertEqual(u"Application    'mysql-hybridcluster'    has    a    config    error.    Link's    remote    port    must    be    an    int;    got    type    'float'.", exception.message)
