Fuel CCP - Tests sub-project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_keystone.py 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Copyright 2016 Mirantis, Inc.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License"); you may
  4. # not use this file except in compliance with the License. You may obtain
  5. # a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. # License for the specific language governing permissions and limitations
  13. # under the License.
  14. import pytest
  15. from fuel_ccp_tests import settings
  16. from fuel_ccp_tests.helpers import post_os_deploy_checks
  17. class TestPreCommitKeystone(object):
  18. """docstring for TestPreCommitKeystone
  19. """
  20. @pytest.mark.keystone_test
  21. @pytest.mark.keystone_component
  22. @pytest.mark.revert_snapshot(settings.PRECOMMIT_SNAPSHOT_NAME)
  23. def test_deploy_os_with_custom_keystone(
  24. self, ccpcluster, k8s_actions, underlay, rally):
  25. """
  26. Scenario:
  27. 1. Install k8s
  28. 2. Install fuel-ccp
  29. 3. Fetch all repositories
  30. 4. Fetch keystone from review
  31. 5. Fetch containers from external registry
  32. 6. Build keytone container
  33. 7. Deploy Openstack
  34. 8. Run tempest
  35. """
  36. if settings.REGISTRY == '127.0.0.1:31500':
  37. k8s_actions.create_registry()
  38. ccpcluster.fetch()
  39. ccpcluster.update_service('keystone')
  40. ccpcluster.build('base-tools', suppress_output=False)
  41. ccpcluster.build(suppress_output=False)
  42. ccpcluster.deploy()
  43. rally.prepare()
  44. rally.pull_image()
  45. rally.run()
  46. post_os_deploy_checks.check_jobs_status(k8s_actions.api, timeout=1500,
  47. namespace='ccp')
  48. post_os_deploy_checks.check_pods_status(k8s_actions.api, timeout=2500,
  49. namespace='ccp')
  50. rally.run_tempest('--regex ^tempest.api.identity.*')