redhat-cip / openstack-serverspec

The serverspec tests for the puppet-openstack-cloud module
Apache License 2.0
12 stars 13 forks source link

Do not use mysql commands on API tests #30

Closed EmilienM closed 10 years ago

EmilienM commented 10 years ago

Example with: https://github.com/enovance/puppet-cloud-serverspec/blob/master/spec/tests/identity/identity_spec.rb

If MySQL server is not on Keystone server, the test will fail. It's the same for some other tests. It's not a good way to test Keystone by using simple mysql command, but maybe it could be good to use Keystone API directly?

Spredzy commented 10 years ago

@EmilienM you are correct ;)

I agree with your solution just one things concerns me, we need to have OS_AUTHURL, OS_USERNAME, etc... to be exported so we could use the keystone-client. Beyond that point I agree.

EmilienM commented 10 years ago

@Spredzy you can give all parameters: http://docs.openstack.org/user-guide/content/keystone_client_commands.html So there is no need to export them. Just add them in the arch.yaml as params and consume it from tests.