'Test the addition of a specs key to qos-specs'

@decorators.idempotent_id('ed00fd85-4494-45f2-8ceb-9e2048919aed')
def test_set_unset_qos_key(self):

    args = {'iops_bytes': '500'}
    body = self.admin_volume_qos_client.set_qos_key(self.created_qos['id'], iops_bytes='500')['qos_specs']
    self.assertEqual(args, body)
    body = self.admin_volume_qos_client.show_qos(self.created_qos['id'])['qos_specs']
    self.assertEqual(args['iops_bytes'], body['specs']['iops_bytes'])
    keys = ['iops_bytes']
    self.admin_volume_qos_client.unset_qos_key(self.created_qos['id'], keys)
    operation = 'qos-key-unset'
    waiters.wait_for_qos_operations(self.admin_volume_qos_client, self.created_qos['id'], operation, keys)
    body = self.admin_volume_qos_client.show_qos(self.created_qos['id'])['qos_specs']
    self.assertNotIn(keys[0], body['specs'])
