ec2-api/ec2api
Stephen Finucane 7b7c2d9f21 tests: Avoid using mock wraps
It looks like something has changed in mock 3.x, resulting in some
functions that are wrapped by mock not being called or being called
incorrectly. This breaks some of the assertions we have. There is almost
certainly a bug (or is it a feature, who knows) but the fact is these
tests were extremely tightly coupled to the implementation and probably
didn't need to be. Stop attempting to spy on them and resolve the issue.

We also start using 'assert_not_called' since that's available in mock
3.x.

Change-Id: I06dddc4eba36f80398732ab4f2b7cbc4d7717a00
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Closes-Bug: #1831870
2019-06-06 14:23:18 +01:00
..
api Ignore floating ips not attached to instances 2018-12-17 10:52:09 +11:00
cmd Don't attempt to escalate ec2-api-manage privileges 2016-10-24 09:56:07 +00:00
db fix DB migration for MySQL 2018-01-10 05:25:43 +00:00
hacking Delete log translation functions and add hacking rule 2017-07-03 04:14:44 -04:00
metadata fix ec2-api-metadata memcached overlap with nova-api 2017-09-15 13:42:20 +02:00
s3 Replace six.iteritems() with .items() 2017-04-20 09:42:45 +00:00
tests tests: Avoid using mock wraps 2019-06-06 14:23:18 +01:00
__init__.py py34: fix gettext installing 2015-09-09 16:44:28 +03:00
clients.py remove deprecated options 2018-01-18 14:45:37 +03:00
config.py Drop all qpid related explanations 2018-03-13 09:46:00 +08:00
context.py Remove log translations 2017-05-11 13:43:05 +07:00
exception.py Delete log translation functions and add hacking rule 2017-07-03 04:14:44 -04:00
i18n.py Remove log translations 2017-05-11 13:43:05 +07:00
opts.py synchronize default vpc creation across threads 2018-03-24 00:49:01 +03:00
paths.py remove unused configuration options 2017-10-20 13:48:00 +03:00
service.py remove unused configuration options 2017-10-20 13:48:00 +03:00
utils.py remove unused configuration options 2017-10-20 13:48:00 +03:00
version.py Update copyright 2014-11-11 21:02:39 +04:00
wsgi.py add ssl_ca_cert option to check client cert 2018-01-18 14:49:08 +03:00