test_gogrid.py 985 B

1234567891011121314151617181920212223242526272829303132
  1. # -*- coding: utf-8 -*-
  2. '''
  3. :codeauthor: Nicole Thomas <nicole@saltstack.com>
  4. '''
  5. # Import Python Libs
  6. from __future__ import absolute_import, print_function, unicode_literals
  7. # Import Salt Testing Libs
  8. from tests.support.unit import skipIf
  9. # Create the cloud instance name to be used throughout the tests
  10. from tests.integration.cloud.helpers.cloud_test_base import CloudTest, TIMEOUT
  11. @skipIf(True, 'waiting on bug report fixes from #13365')
  12. class GoGridTest(CloudTest):
  13. '''
  14. Integration tests for the GoGrid cloud provider in Salt-Cloud
  15. '''
  16. PROVIDER = 'gogrid'
  17. REQUIRED_PROVIDER_CONFIG_ITEMS = ('apikey', 'sharedsecret')
  18. def test_instance(self):
  19. '''
  20. Test creating an instance on GoGrid
  21. '''
  22. # check if instance with salt installed returned
  23. ret_str = self.run_cloud('-p gogrid-test {0}'.format(self.instance_name), timeout=TIMEOUT)
  24. self.assertInstanceExists(ret_str)
  25. self.assertDestroyInstance()