This patch fixes the test_volume_create_after_thin_creation test
to mock execute instead of defining an execute method inside
the test. Since the unit test is run twice with different options,
the unit test asserts different things depending on the configuration
of how the test is being run.
Reviewed: https:/ /review. openstack. org/486870 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=438b3e8fc2a f1882d1df21eaf9 4331c2b0836490
Committed: https:/
Submitter: Jenkins
Branch: master
commit 438b3e8fc2af188 2d1df21eaf94331 c2b0836490
Author: Kendall Nelson <email address hidden>
Date: Mon Jul 24 22:15:01 2017 -0700
Mock execute in unit test
This patch fixes the test_volume_ create_ after_thin_ creation test
to mock execute instead of defining an execute method inside
the test. Since the unit test is run twice with different options,
the unit test asserts different things depending on the configuration
of how the test is being run.
Change-Id: Ia841ca55b36aa1 9d4d6b174239f4d 4200793d4e5
Closes-bug: 1676646