Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: Ifd0d1b8aa419e39361e76a4f846cb4eeaf0d46ca
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
The repo is Python 3 now, so update hacking to version 3.0.1 which
supports Python 3.
Fix problems found.
Remove hacking and friends from lower-constraints, they are not needed
for installation.
Change-Id: I6691687f0cd2fe4c9e7f2a76d333ca9eacb0cbf3
When using karbor to restore server to another openstack
cluster(cross keystone), and if the another cluster do not
have the same flavor id, the restore will fail. We should
add support for adding flavor id as a parameter to rewrite
the flavor id in checkpoint metadata.
Change-Id: Ie5c7a1adf07b7f9b1225ee4a5e16000a3453a7cc
Closes-Bug: #1811090
Add optional content parameter for checkpoint interface, so that other
checkpoint bank plugin like database bank plugin can be introduced to
Karbor.
Change-Id: I4eaad0b3fe38cb95a668b83acba39cd831bbb7df
Closes-Bug: #1745909
Some tests used incorrect order of arguments in
assertEqual(observed, expected). The correct order expected
by testtool is assertEqual(expected, observed).
Change-Id: I2f5d59b1115c82c2811aeb753404ac2c99d2746d
Using list_objects with a prefix didn't work unless the prefix ended
with a slash. As a result, using list_objects on a BankSection with
prefix gives empty result.
Refactor the validations (and make them stricter) in order for bank
list_objects to work correctly:
- limit the allowed characters (alpha-numeric, dots, slashes, dashes,
at-sign, and underscores
- keys must not end in a slash
Change-Id: I553d74af3b44fee49e1baef055239e47921bde0f
Object store interface has no difference between create and update.
Remove create_object from any Bank or BankSection. update_object can be
used instead in order to create and/or update objects.
Change-Id: I70bf5b7b4ffcc5ac43281d1be7f8ff10e5451b39