puppet-keystone/spec/unit/provider/keystone_role
Sofer Athlan-Guyot 42d918040d Fix leaking environment variables in tests
In rspec provider tests the environment variables are used to
authenticate the calls.  The environment was set in a shared example.
The problem is that rspec read all those environment variables when it
compile the tests.  Then the last shared environment red by rspec was
setting the environment for all the test.  This was leading to
unpredictable behavior.

This fix this problem by setting the environment variables before each
test at rspec run time.

Change-Id: I28c952273d6f981c953cb3e2c960a98609ece263
Closes-Bug: 1482243
2015-09-22 11:11:37 +10:00
..
openstack_spec.rb Fix leaking environment variables in tests 2015-09-22 11:11:37 +10:00