67 lines
1.5 KiB
Go
67 lines
1.5 KiB
Go
/*
|
|
Anthrove Orchestrator API
|
|
|
|
Testing PlugAPIService
|
|
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
|
|
|
package openapi
|
|
|
|
import (
|
|
"context"
|
|
openapiclient "git.dragse.it/anthrove/orchestrator-swagger-go-client/v0.0.8"
|
|
"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)
|
|
|
|
})
|
|
|
|
}
|