
This change allows the Betamax default workflow to be used via the fixture. That workflow is: - Write a test that uses Betamax but for which no cassette presently exists - Run test which causes Betamax to create the cassette and record the interactions - Re-run tests and ensure that no network activity has actually happened Keystoneauth1's YamlJsonSerializer relied on yaml.safe_load to return something other than None if a file was loaded. Unfortunately, if the file is zero-length then it will return None which breaks the above workflow. Instead, let's check the return value and if it is not None, return it, otherwise, simply return an empty dictionary as Betamax expects. Change-Id: I5b7d01439f391e2ecb589850e90573c74cd38080 Closes-bug: #1670697
Team and repository tags
keystoneauth
This package contains tools for authenticating to an OpenStack-based cloud. These tools include:
- Authentication plugins (password, token, and federation based)
- Discovery mechanisms to determine API version support
- A session that is used to maintain client settings across requests (based on the requests Python library)
Further information:
- Free software: Apache license
- Documentation: https://docs.openstack.org/developer/keystoneauth
- Source: https://git.openstack.org/cgit/openstack/keystoneauth
- Bugs: https://bugs.launchpad.net/keystoneauth
Description
Languages
Python
100%