'Test the following operations :
1. associate_qos
2. get_association_qos
3. disassociate_qos
4. disassociate_all_qos'

@decorators.idempotent_id('1dd93c76-6420-485d-a771-874044c416ac')
def test_associate_disassociate_qos(self):

    vol_type = []
    for _ in range(0, 3):
        vol_type.append(self.create_volume_type())
    for i in range(0, 3):
        self._test_associate_qos(vol_type[i]['id'])
    body = self.admin_volume_qos_client.show_association_qos(self.created_qos['id'])['qos_associations']
    associations = [association['id'] for association in body]
    for i in range(0, 3):
        self.assertIn(vol_type[i]['id'], associations)
    self.admin_volume_qos_client.disassociate_qos(self.created_qos['id'], vol_type[0]['id'])
    operation = 'disassociate'
    waiters.wait_for_qos_operations(self.admin_volume_qos_client, self.created_qos['id'], operation, vol_type[0]['id'])
    self.admin_volume_qos_client.disassociate_all_qos(self.created_qos['id'])
    operation = 'disassociate-all'
    waiters.wait_for_qos_operations(self.admin_volume_qos_client, self.created_qos['id'], operation)
