Ian Cordasco 6da2d42137 Allow new cassettes to be recorded via fixture
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
2017-03-07 08:16:23 -06:00
2017-01-18 20:41:16 +00:00
2016-12-21 11:24:09 +11:00
2015-12-09 11:46:00 +11:00
2015-11-29 20:05:16 -05:00
2014-05-07 12:12:43 -07:00
2015-09-17 12:12:42 +00:00
2017-01-05 15:27:51 -08:00

Team and repository tags

image

keystoneauth

Latest Version

Downloads

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:

Description
OpenStack Identity Authentication Library
Readme 12 MiB
Languages
Python 100%