Open imriz opened 8 years ago
Seems mocking is just not implemented yet for V3?
This had me stumped for a good while too...
It appears that the new default is to use identity v3 unless the url provided contains v2.0. There is a call when creating servers that in compute that goes through and tries to list_servers and fails with the 'undefined method body' error. It fails in this way because there is a mock implementation for that method with identity V3, but it returns nil instead of the excon response.
At the very least, the mock should return a 'not implemented' error (so users can easier understand the issue) or a valid response of some kind. Ideally it would behave similarly to the V2 mock and return based on mocked data.
Correct, it comes down to the fact that https://github.com/fog/fog-openstack/blob/master/lib/fog/identity/openstack/v3/requests/list_users.rb#L17 does not return the mocked users
I would be happy to review if someone provides a PR for that :)
Since version 0.1.6, my tests fails with the following error:
If I set the URL to v2.0, it works fine.
What am I doing wrong?