'Don\'t add a custom instance user when not requested.'

def test_build_userdata_without_instance_user(self):

    cfg.CONF.set_override('heat_metadata_server_url', 'http://server.test:123')
    cfg.CONF.set_override('heat_watch_server_url', 'http://server.test:345')
    data = self.nova_plugin.build_userdata({}, instance_user=None)
    self.assertNotIn('user:    ', data)
    self.assertNotIn('useradd', data)
    self.assertNotIn('ec2-user', data)
