Recent changes in tenacity have broken how we mock the wait call for
the test. This change mocks out the inspect.getargspec call that is
used in tenacity to fix our unit tests for now. I think it might be
beneficial to not actually test the retry functionality in the paunch
unit tests as it seems to be more of a test for tenacity than paunch.
Change-Id: I37b09694de3ec9f31a7b945d19a83527c915b759
Related-Bug: #1788802
(cherry picked from commit e2093fb7fc0a0d35d5b3ac6a8b5d4a8c373d79c7)
Reviewed: https:/ /review. openstack. org/606865 /git.openstack. org/cgit/ openstack/ paunch/ commit/ ?id=dbac03bf5f4 92d4f0a1f2b2db8 0f06589180b499
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit dbac03bf5f492d4 f0a1f2b2db80f06 589180b499
Author: Emilien Macchi <email address hidden>
Date: Mon Aug 27 11:34:34 2018 -0400
Adjust tenacity mock
Recent changes in tenacity have broken how we mock the wait call for
the test. This change mocks out the inspect.getargspec call that is
used in tenacity to fix our unit tests for now. I think it might be
beneficial to not actually test the retry functionality in the paunch
unit tests as it seems to be more of a test for tenacity than paunch.
Change-Id: I37b09694de3ec9 f31a7b945d19a83 527c915b759 5d5b3ac6a8b5d4a 8c373d79c7)
Related-Bug: #1788802
(cherry picked from commit e2093fb7fc0a0d3