/*
Intelligent DNS

Testing RecordsApiService

*/

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

package idns

import (
	"context"
	openapiclient "github.com/aziontech/azionapi-go-sdk"
	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/require"
	"testing"
)

func Test_idns_RecordsApiService(t *testing.T) {

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

	t.Run("Test RecordsApiService DeleteZoneRecord", func(t *testing.T) {

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

		var zoneId int32
		var recordId int32

		resp, httpRes, err := apiClient.RecordsApi.DeleteZoneRecord(context.Background(), zoneId, recordId).Execute()

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

	})

	t.Run("Test RecordsApiService GetZoneRecords", func(t *testing.T) {

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

		var zoneId int32

		resp, httpRes, err := apiClient.RecordsApi.GetZoneRecords(context.Background(), zoneId).Execute()

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

	})

	t.Run("Test RecordsApiService PostZoneRecord", func(t *testing.T) {

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

		var zoneId int32

		resp, httpRes, err := apiClient.RecordsApi.PostZoneRecord(context.Background(), zoneId).Execute()

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

	})

	t.Run("Test RecordsApiService PutZoneRecord", func(t *testing.T) {

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

		var zoneId int32
		var recordId int32

		resp, httpRes, err := apiClient.RecordsApi.PutZoneRecord(context.Background(), zoneId, recordId).Execute()

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

	})

}
