betamax fixture needs a custom serializer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
keystoneauth |
Fix Released
|
Wishlist
|
Yolanda Robla |
Bug Description
We cannot rely on native recorded fixtures with betamax, because of two reasons:
- betamax is recording cloud usernames and passwords. If we run this into real clouds, that's a security problem. We need to replace those by dummy users and passwords
- when keytone tokens are generated, they are recorded with a fixed expiration time. That means, that tests are passing until the token expire, but after that, tests are no longer valid because the recorded token is in the past.
So need to create a custom serializer. The serializer can be inherited from PrettyJSONSeria
- mask user and password for clouds
- set a token expiration date in the long future
This is definitely something we expected to expand on as betamax was used.