Commit Graph

2 Commits

Author SHA1 Message Date
Vu Cong Tuan f348bfeb18 Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I7eaadde83243afed1929bd29fff63272e58e072b
2018-07-12 14:13:12 +07:00
Paul Glass 471df92f96 Assert with integer status codes to avoid hidden errors
We are using `resp['status']` which is a string ('202').
Instead, use `resp.status` which is an int. This is a problem
because `self.expected_success(202, '201')` doesn't raise an
error.

This also adds an `expected_success` method to the proper base
class to intercept calls to this method. This lets us warn about
this and cast to int.

And:
- check for 202 (not 200) on a zone update.
- add a .testr.conf so `ostestr` runs all the tests in the
current dir

Change-Id: I102c35eb6da0c5f99fd548b169ce490027fdb981
2016-04-15 22:05:41 +00:00