'Test failure when wrong credentials are specified or service user
doesn\'t exist.
Replicate in devstack: start devstack with or without
placement engine, specify random credentials in auth section
from the [placement] block in nova.conf.'

@mock.patch.object(status.UpgradeCommands, '_placement_get')
def test_invalid_auth(self, get):

    get.side_effect = ks_exc.Unauthorized()
    res = self.cmd._check_placement()
    self.assertEqual(status.UpgradeCheckCode.FAILURE, res.code)
    self.assertIn('Placement    service    credentials    do    not    work', res.details)
