Files
openapi-go-answer/test/api_admin_plugin_test.go
2023-09-26 16:20:01 +08:00

73 lines
1.8 KiB
Go

/*
Testing AdminPluginAPIService
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
package answer_sdk
import (
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "git.ncc.cx/package/openapi-go-answer"
)
func Test_answer_sdk_AdminPluginAPIService(t *testing.T) {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
t.Run("Test AdminPluginAPIService AnswerAdminApiPluginConfigGet", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.AdminPluginAPI.AnswerAdminApiPluginConfigGet(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test AdminPluginAPIService AnswerAdminApiPluginConfigPut", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.AdminPluginAPI.AnswerAdminApiPluginConfigPut(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test AdminPluginAPIService AnswerAdminApiPluginStatusPut", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.AdminPluginAPI.AnswerAdminApiPluginStatusPut(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test AdminPluginAPIService AnswerAdminApiPluginsGet", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.AdminPluginAPI.AnswerAdminApiPluginsGet(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
}