39 lines
792 B
Go
39 lines
792 B
Go
|
/*
|
||
|
Anthrove Orchestrator API
|
||
|
|
||
|
Testing UserAPIService
|
||
|
|
||
|
*/
|
||
|
|
||
|
// 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_UserAPIService(t *testing.T) {
|
||
|
|
||
|
configuration := openapiclient.NewConfiguration()
|
||
|
apiClient := openapiclient.NewAPIClient(configuration)
|
||
|
|
||
|
t.Run("Test UserAPIService UserUserIdPut", func(t *testing.T) {
|
||
|
|
||
|
t.Skip("skip test") // remove to run test
|
||
|
|
||
|
var userId string
|
||
|
|
||
|
httpRes, err := apiClient.UserAPI.UserUserIdPut(context.Background(), userId).Execute()
|
||
|
|
||
|
require.Nil(t, err)
|
||
|
assert.Equal(t, 200, httpRes.StatusCode)
|
||
|
|
||
|
})
|
||
|
|
||
|
}
|