Comment 30 for bug 1821594

Reviewed: https://review.opendev.org/658834
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=01bfb7863c80c43538632952ec9f1728f0b412d6
Submitter: Zuul
Branch: stable/rocky

commit 01bfb7863c80c43538632952ec9f1728f0b412d6
Author: Rodrigo Barbieri <email address hidden>
Date: Wed May 8 16:01:25 2019 -0300

    Add functional confirm_migration_error test

    This test checks if allocations have been
    successfully cleaned up upon the driver failing
    during "confirm_migration".

    This backport is not clean due to change
    If6aa37d9b6b48791e070799ab026c816fda4441c, which
    refactored the testing framework. Within the refactor,
    new assertion methods were added and method
    "assertFlavorMatchesAllocation" was modified.
    This backport needed to be adapted in order to
    be compatible with the testing framework prior to
    If6aa37d9b6b48791e070799ab026c816fda4441c.

    Change-Id: I9d6478f492351b58aa87b8f56e907ee633d6d1c6
    Related-bug: #1821594
    (cherry picked from commit 873ac499c50125adc2fb49728d936922f9acf4a9)
    (cherry picked from commit d7d7f115430c7ffeb88ec9dcd155ac69b29d7513)