1
0

test_gogrid.py 1008 B

1234567891011121314151617181920212223242526272829303132333435
  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. # Create the cloud instance name to be used throughout the tests
  8. from tests.integration.cloud.helpers.cloud_test_base import TIMEOUT, CloudTest
  9. # Import Salt Testing Libs
  10. from tests.support.unit import skipIf
  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(
  24. "-p gogrid-test {0}".format(self.instance_name), timeout=TIMEOUT
  25. )
  26. self.assertInstanceExists(ret_str)
  27. self.assertDestroyInstance()