'Get the definite user ec2 credential.'

@decorators.idempotent_id('cb284075-b613-440d-83ca-fe0b33b3c2b8')
def test_show_ec2_credential(self):

    resp = self.non_admin_users_client.create_user_ec2_credential(self.creds.user_id, tenant_id=self.creds.tenant_id)['credential']
    self.addCleanup(self.non_admin_users_client.delete_user_ec2_credential, self.creds.user_id, resp['access'])
    ec2_creds = self.non_admin_users_client.show_user_ec2_credential(self.creds.user_id, resp['access'])['credential']
    for key in ['access', 'secret', 'user_id', 'tenant_id']:
        self.assertEqual(ec2_creds[key], resp[key])
