"""
    :codeauthor: Nicole Thomas <nicole@saltstack.com>
"""

import pytest

from tests.integration.cloud.helpers.cloud_test_base import TIMEOUT, CloudTest


@pytest.mark.skip(reason="waiting on bug report fixes from #13365")
class GoGridTest(CloudTest):
    """
    Integration tests for the GoGrid cloud provider in Salt-Cloud
    """

    PROVIDER = "gogrid"
    REQUIRED_PROVIDER_CONFIG_ITEMS = ("apikey", "sharedsecret")

    def test_instance(self):
        """
        Test creating an instance on GoGrid
        """
        # check if instance with salt installed returned
        ret_str = self.run_cloud(
            f"-p gogrid-test {self.instance_name}", timeout=TIMEOUT
        )
        self.assertInstanceExists(ret_str)

        self.assertDestroyInstance()
