/*
Domain

Testing DomainsApiService

*/

// Code generated by OpenAPI Generator (https://openapi-generator.tech);

package domains

import (
	"context"
	"testing"

	openapiclient "github.com/aziontech/azionapi-go-sdk/domains"
	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/require"
)

func Test_domains_DomainsApiService(t *testing.T) {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)

	t.Run("Test DomainsApiService CreateDomain", func(t *testing.T) {

		t.Skip("skip test") // remove to run test

		resp, httpRes, err := apiClient.DomainsApi.CreateDomain(context.Background()).Execute()

		require.Nil(t, err)
		require.NotNil(t, resp)
		assert.Equal(t, 200, httpRes.StatusCode)

	})

	t.Run("Test DomainsApiService DelDomain", func(t *testing.T) {

		t.Skip("skip test") // remove to run test

		var id string

		httpRes, err := apiClient.DomainsApi.DelDomain(context.Background(), id).Execute()

		require.Nil(t, err)
		assert.Equal(t, 200, httpRes.StatusCode)

	})

	t.Run("Test DomainsApiService GetDomain", func(t *testing.T) {

		t.Skip("skip test") // remove to run test

		var id string

		resp, httpRes, err := apiClient.DomainsApi.GetDomain(context.Background(), id).Execute()

		require.Nil(t, err)
		require.NotNil(t, resp)
		assert.Equal(t, 200, httpRes.StatusCode)

	})

	t.Run("Test DomainsApiService GetDomains", func(t *testing.T) {

		t.Skip("skip test") // remove to run test

		resp, httpRes, err := apiClient.DomainsApi.GetDomains(context.Background()).Execute()

		require.Nil(t, err)
		require.NotNil(t, resp)
		assert.Equal(t, 200, httpRes.StatusCode)

	})

	t.Run("Test DomainsApiService PutDomain", func(t *testing.T) {

		t.Skip("skip test") // remove to run test

		var domainId string

		resp, httpRes, err := apiClient.DomainsApi.PutDomain(context.Background(), domainId).Execute()

		require.Nil(t, err)
		require.NotNil(t, resp)
		assert.Equal(t, 200, httpRes.StatusCode)

	})

	t.Run("Test DomainsApiService UpdateDomain", func(t *testing.T) {

		t.Skip("skip test") // remove to run test

		var domainId string

		resp, httpRes, err := apiClient.DomainsApi.UpdateDomain(context.Background(), domainId).Execute()

		require.Nil(t, err)
		require.NotNil(t, resp)
		assert.Equal(t, 200, httpRes.StatusCode)

	})

}
