orchestrator-swagger-go-client/test/api_plug_test.go

67 lines
1.5 KiB
Go
Raw Normal View History

/*
Anthrove Orchestrator API
Testing PlugAPIService
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
package openapi
import (
"context"
2024-09-01 17:09:40 +00:00
openapiclient "git.anthrove.art/Anthrove/orchestrator-swagger-go-client"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
)
func Test_openapi_PlugAPIService(t *testing.T) {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
t.Run("Test PlugAPIService PlugPlugTypePut", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var plugType string
httpRes, err := apiClient.PlugAPI.PlugPlugTypePut(context.Background(), plugType).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test PlugAPIService PlugPlugTypeTaskIdDelete", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var plugType string
var taskId string
httpRes, err := apiClient.PlugAPI.PlugPlugTypeTaskIdDelete(context.Background(), plugType, taskId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test PlugAPIService PlugPlugTypeTaskIdGet", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var plugType string
var taskId string
httpRes, err := apiClient.PlugAPI.PlugPlugTypeTaskIdGet(context.Background(), plugType, taskId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
}