更新文档内容
This commit is contained in:
@@ -1,32 +1,31 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing ActivityApiService
|
||||
Testing ActivityAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_ActivityApiService(t *testing.T) {
|
||||
func Test_answer_sdk_ActivityAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test ActivityApiService AnswerApiV1FollowPost", func(t *testing.T) {
|
||||
t.Run("Test ActivityAPIService AnswerApiV1FollowPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ActivityApi.AnswerApiV1FollowPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ActivityAPI.AnswerApiV1FollowPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -34,11 +33,11 @@ func Test_openapi_ActivityApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test ActivityApiService AnswerApiV1FollowTagsPut", func(t *testing.T) {
|
||||
t.Run("Test ActivityAPIService AnswerApiV1FollowTagsPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ActivityApi.AnswerApiV1FollowTagsPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ActivityAPI.AnswerApiV1FollowTagsPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -46,11 +45,11 @@ func Test_openapi_ActivityApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test ActivityApiService AnswerApiV1PersonalVotePageGet", func(t *testing.T) {
|
||||
t.Run("Test ActivityAPIService AnswerApiV1PersonalVotePageGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ActivityApi.AnswerApiV1PersonalVotePageGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ActivityAPI.AnswerApiV1PersonalVotePageGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -58,11 +57,11 @@ func Test_openapi_ActivityApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test ActivityApiService AnswerApiV1VoteDownPost", func(t *testing.T) {
|
||||
t.Run("Test ActivityAPIService AnswerApiV1VoteDownPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ActivityApi.AnswerApiV1VoteDownPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ActivityAPI.AnswerApiV1VoteDownPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -70,11 +69,11 @@ func Test_openapi_ActivityApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test ActivityApiService AnswerApiV1VoteUpPost", func(t *testing.T) {
|
||||
t.Run("Test ActivityAPIService AnswerApiV1VoteUpPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ActivityApi.AnswerApiV1VoteUpPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ActivityAPI.AnswerApiV1VoteUpPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
/*
|
||||
|
||||
Testing AdminPluginApiService
|
||||
Testing AdminPluginAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_AdminPluginApiService(t *testing.T) {
|
||||
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.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()
|
||||
resp, httpRes, err := apiClient.AdminPluginAPI.AnswerAdminApiPluginConfigGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -33,11 +33,11 @@ func Test_openapi_AdminPluginApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminPluginApiService AnswerAdminApiPluginConfigPut", func(t *testing.T) {
|
||||
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()
|
||||
resp, httpRes, err := apiClient.AdminPluginAPI.AnswerAdminApiPluginConfigPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -45,11 +45,11 @@ func Test_openapi_AdminPluginApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminPluginApiService AnswerAdminApiPluginStatusPut", func(t *testing.T) {
|
||||
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()
|
||||
resp, httpRes, err := apiClient.AdminPluginAPI.AnswerAdminApiPluginStatusPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -57,11 +57,11 @@ func Test_openapi_AdminPluginApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminPluginApiService AnswerAdminApiPluginsGet", func(t *testing.T) {
|
||||
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()
|
||||
resp, httpRes, err := apiClient.AdminPluginAPI.AnswerAdminApiPluginsGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing AdminApiService
|
||||
Testing AdminAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_AdminApiService(t *testing.T) {
|
||||
func Test_answer_sdk_AdminAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiAnswerPageGet", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiAnswerPageGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiAnswerPageGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiAnswerPageGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -34,11 +33,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiAnswerStatusPut", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiAnswerStatusPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiAnswerStatusPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiAnswerStatusPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -46,11 +45,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiDashboardGet", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiDashboardGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiDashboardGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiDashboardGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -58,11 +57,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiQuestionPageGet", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiQuestionPageGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiQuestionPageGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiQuestionPageGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -70,11 +69,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiQuestionStatusPut", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiQuestionStatusPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiQuestionStatusPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiQuestionStatusPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -82,11 +81,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiReportPut", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiReportPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiReportPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiReportPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -94,11 +93,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiReportsPageGet", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiReportsPageGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiReportsPageGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiReportsPageGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -106,11 +105,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiRolesGet", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiRolesGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiRolesGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiRolesGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -118,11 +117,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSettingSmtpGet", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSettingPrivilegesGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSettingSmtpGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSettingPrivilegesGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -130,11 +129,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSettingSmtpPut", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSettingPrivilegesPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSettingSmtpPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSettingPrivilegesPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -142,11 +141,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSiteinfoBrandingGet", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSettingSmtpGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoBrandingGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSettingSmtpGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -154,11 +153,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSiteinfoBrandingPut", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSettingSmtpPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoBrandingPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSettingSmtpPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -166,11 +165,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSiteinfoCustomCssHtmlGet", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoBrandingGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoBrandingGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -178,11 +177,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSiteinfoCustomCssHtmlPut", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoBrandingPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoBrandingPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -190,11 +189,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSiteinfoGeneralGet", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoCustomCssHtmlGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoGeneralGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoCustomCssHtmlGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -202,11 +201,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSiteinfoGeneralPut", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoCustomCssHtmlPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoGeneralPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoCustomCssHtmlPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -214,11 +213,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSiteinfoInterfaceGet", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoGeneralGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoInterfaceGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoGeneralGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -226,11 +225,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSiteinfoInterfacePut", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoGeneralPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoInterfacePut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoGeneralPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -238,11 +237,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSiteinfoLegalGet", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoInterfaceGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLegalGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoInterfaceGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -250,11 +249,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSiteinfoLegalPut", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoInterfacePut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLegalPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoInterfacePut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -262,11 +261,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSiteinfoLoginGet", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoLegalGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLoginGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoLegalGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -274,11 +273,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSiteinfoLoginPut", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoLegalPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLoginPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoLegalPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -286,11 +285,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSiteinfoSeoGet", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoLoginGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoSeoGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoLoginGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -298,11 +297,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSiteinfoSeoPut", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoLoginPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoSeoPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoLoginPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -310,11 +309,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSiteinfoThemeGet", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoSeoGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoThemeGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoSeoGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -322,11 +321,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSiteinfoThemePut", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoSeoPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoThemePut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoSeoPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -334,11 +333,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSiteinfoWriteGet", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoThemeGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoWriteGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoThemeGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -346,11 +345,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiSiteinfoWritePut", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoThemePut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoWritePut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoThemePut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -358,11 +357,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiThemeOptionsGet", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoUsersGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiThemeOptionsGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoUsersGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -370,11 +369,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiUserPasswordPut", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoUsersPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiUserPasswordPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoUsersPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -382,11 +381,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiUserPost", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoWriteGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiUserPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoWriteGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -394,11 +393,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiUserRolePut", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiSiteinfoWritePut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiUserRolePut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoWritePut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -406,11 +405,11 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiUserStatusPut", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiThemeOptionsGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiUserStatusPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiThemeOptionsGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -418,11 +417,95 @@ func Test_openapi_AdminApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminApiService AnswerAdminApiUsersPageGet", func(t *testing.T) {
|
||||
t.Run("Test AdminAPIService AnswerAdminApiUserActivationGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiUsersPageGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiUserActivationGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminAPIService AnswerAdminApiUserPasswordPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiUserPasswordPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminAPIService AnswerAdminApiUserPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiUserPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminAPIService AnswerAdminApiUserRolePut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiUserRolePut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminAPIService AnswerAdminApiUserStatusPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiUserStatusPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminAPIService AnswerAdminApiUsersActivationPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiUsersActivationPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminAPIService AnswerAdminApiUsersPageGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiUsersPageGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test AdminAPIService AnswerAdminApiUsersPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiUsersPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing ApiAnswerApiService
|
||||
Testing ApiAnswerAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_ApiAnswerApiService(t *testing.T) {
|
||||
func Test_answer_sdk_ApiAnswerAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test ApiAnswerApiService AnswerApiV1AnswerAcceptancePost", func(t *testing.T) {
|
||||
t.Run("Test ApiAnswerAPIService AnswerApiV1AnswerAcceptancePost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerAcceptancePost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerAcceptancePost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -34,11 +33,11 @@ func Test_openapi_ApiAnswerApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test ApiAnswerApiService AnswerApiV1AnswerDelete", func(t *testing.T) {
|
||||
t.Run("Test ApiAnswerAPIService AnswerApiV1AnswerDelete", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerDelete(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerDelete(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -46,11 +45,11 @@ func Test_openapi_ApiAnswerApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test ApiAnswerApiService AnswerApiV1AnswerInfoGet", func(t *testing.T) {
|
||||
t.Run("Test ApiAnswerAPIService AnswerApiV1AnswerInfoGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerInfoGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerInfoGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -58,11 +57,11 @@ func Test_openapi_ApiAnswerApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test ApiAnswerApiService AnswerApiV1AnswerPageGet", func(t *testing.T) {
|
||||
t.Run("Test ApiAnswerAPIService AnswerApiV1AnswerPageGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPageGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerPageGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -70,11 +69,11 @@ func Test_openapi_ApiAnswerApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test ApiAnswerApiService AnswerApiV1AnswerPost", func(t *testing.T) {
|
||||
t.Run("Test ApiAnswerAPIService AnswerApiV1AnswerPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -82,23 +81,11 @@ func Test_openapi_ApiAnswerApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test ApiAnswerApiService AnswerApiV1AnswerPut", func(t *testing.T) {
|
||||
t.Run("Test ApiAnswerAPIService AnswerApiV1AnswerPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test ApiAnswerApiService AnswerApiV1PersonalAnswerPageGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1PersonalAnswerPageGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing CollectionApiService
|
||||
Testing CollectionAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_CollectionApiService(t *testing.T) {
|
||||
func Test_answer_sdk_CollectionAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test CollectionApiService AnswerApiV1CollectionSwitchPost", func(t *testing.T) {
|
||||
t.Run("Test CollectionAPIService AnswerApiV1CollectionSwitchPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.CollectionApi.AnswerApiV1CollectionSwitchPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.CollectionAPI.AnswerApiV1CollectionSwitchPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -34,11 +33,11 @@ func Test_openapi_CollectionApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test CollectionApiService AnswerApiV1PersonalCollectionPageGet", func(t *testing.T) {
|
||||
t.Run("Test CollectionAPIService AnswerApiV1PersonalCollectionPageGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.CollectionApi.AnswerApiV1PersonalCollectionPageGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.CollectionAPI.AnswerApiV1PersonalCollectionPageGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing CommentApiService
|
||||
Testing CommentAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_CommentApiService(t *testing.T) {
|
||||
func Test_answer_sdk_CommentAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test CommentApiService AnswerApiV1ActivityTimelineDetailGet", func(t *testing.T) {
|
||||
t.Run("Test CommentAPIService AnswerApiV1ActivityTimelineDetailGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.CommentApi.AnswerApiV1ActivityTimelineDetailGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.CommentAPI.AnswerApiV1ActivityTimelineDetailGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -34,11 +33,11 @@ func Test_openapi_CommentApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test CommentApiService AnswerApiV1ActivityTimelineGet", func(t *testing.T) {
|
||||
t.Run("Test CommentAPIService AnswerApiV1ActivityTimelineGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.CommentApi.AnswerApiV1ActivityTimelineGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.CommentAPI.AnswerApiV1ActivityTimelineGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -46,11 +45,11 @@ func Test_openapi_CommentApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test CommentApiService AnswerApiV1CommentDelete", func(t *testing.T) {
|
||||
t.Run("Test CommentAPIService AnswerApiV1CommentDelete", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentDelete(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.CommentAPI.AnswerApiV1CommentDelete(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -58,11 +57,11 @@ func Test_openapi_CommentApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test CommentApiService AnswerApiV1CommentGet", func(t *testing.T) {
|
||||
t.Run("Test CommentAPIService AnswerApiV1CommentGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.CommentAPI.AnswerApiV1CommentGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -70,11 +69,11 @@ func Test_openapi_CommentApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test CommentApiService AnswerApiV1CommentPageGet", func(t *testing.T) {
|
||||
t.Run("Test CommentAPIService AnswerApiV1CommentPageGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentPageGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.CommentAPI.AnswerApiV1CommentPageGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -82,11 +81,11 @@ func Test_openapi_CommentApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test CommentApiService AnswerApiV1CommentPost", func(t *testing.T) {
|
||||
t.Run("Test CommentAPIService AnswerApiV1CommentPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.CommentAPI.AnswerApiV1CommentPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -94,11 +93,11 @@ func Test_openapi_CommentApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test CommentApiService AnswerApiV1CommentPut", func(t *testing.T) {
|
||||
t.Run("Test CommentAPIService AnswerApiV1CommentPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.CommentAPI.AnswerApiV1CommentPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -106,11 +105,11 @@ func Test_openapi_CommentApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test CommentApiService AnswerApiV1PersonalCommentPageGet", func(t *testing.T) {
|
||||
t.Run("Test CommentAPIService AnswerApiV1PersonalCommentPageGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.CommentApi.AnswerApiV1PersonalCommentPageGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.CommentAPI.AnswerApiV1PersonalCommentPageGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing InstallationApiService
|
||||
Testing InstallationAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_InstallationApiService(t *testing.T) {
|
||||
func Test_answer_sdk_InstallationAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test InstallationApiService InstallationBaseInfoPost", func(t *testing.T) {
|
||||
t.Run("Test InstallationAPIService InstallationBaseInfoPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.InstallationApi.InstallationBaseInfoPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.InstallationAPI.InstallationBaseInfoPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -34,11 +33,11 @@ func Test_openapi_InstallationApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test InstallationApiService InstallationConfigFileCheckPost", func(t *testing.T) {
|
||||
t.Run("Test InstallationAPIService InstallationConfigFileCheckPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.InstallationApi.InstallationConfigFileCheckPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.InstallationAPI.InstallationConfigFileCheckPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -46,11 +45,11 @@ func Test_openapi_InstallationApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test InstallationApiService InstallationDbCheckPost", func(t *testing.T) {
|
||||
t.Run("Test InstallationAPIService InstallationDbCheckPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.InstallationApi.InstallationDbCheckPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.InstallationAPI.InstallationDbCheckPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -58,11 +57,11 @@ func Test_openapi_InstallationApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test InstallationApiService InstallationInitPost", func(t *testing.T) {
|
||||
t.Run("Test InstallationAPIService InstallationInitPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.InstallationApi.InstallationInitPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.InstallationAPI.InstallationInitPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -70,11 +69,11 @@ func Test_openapi_InstallationApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test InstallationApiService RootGet", func(t *testing.T) {
|
||||
t.Run("Test InstallationAPIService RootGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
httpRes, err := apiClient.InstallationApi.RootGet(context.Background()).Execute()
|
||||
httpRes, err := apiClient.InstallationAPI.RootGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing LangApiService
|
||||
Testing LangAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_LangApiService(t *testing.T) {
|
||||
func Test_answer_sdk_LangAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test LangApiService AnswerAdminApiLanguageOptionsGet", func(t *testing.T) {
|
||||
t.Run("Test LangAPIService AnswerAdminApiLanguageOptionsGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.LangApi.AnswerAdminApiLanguageOptionsGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.LangAPI.AnswerAdminApiLanguageOptionsGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -34,11 +33,11 @@ func Test_openapi_LangApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test LangApiService AnswerApiV1LanguageConfigGet", func(t *testing.T) {
|
||||
t.Run("Test LangAPIService AnswerApiV1LanguageConfigGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.LangApi.AnswerApiV1LanguageConfigGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.LangAPI.AnswerApiV1LanguageConfigGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -46,11 +45,11 @@ func Test_openapi_LangApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test LangApiService AnswerApiV1LanguageOptionsGet", func(t *testing.T) {
|
||||
t.Run("Test LangAPIService AnswerApiV1LanguageOptionsGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.LangApi.AnswerApiV1LanguageOptionsGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.LangAPI.AnswerApiV1LanguageOptionsGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -58,11 +57,11 @@ func Test_openapi_LangApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test LangApiService InstallationLanguageOptionsGet", func(t *testing.T) {
|
||||
t.Run("Test LangAPIService InstallationLanguageOptionsGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.LangApi.InstallationLanguageOptionsGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.LangAPI.InstallationLanguageOptionsGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing NotificationApiService
|
||||
Testing NotificationAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_NotificationApiService(t *testing.T) {
|
||||
func Test_answer_sdk_NotificationAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test NotificationApiService AnswerApiV1NotificationPageGet", func(t *testing.T) {
|
||||
t.Run("Test NotificationAPIService AnswerApiV1NotificationPageGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.NotificationApi.AnswerApiV1NotificationPageGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.NotificationAPI.AnswerApiV1NotificationPageGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -34,11 +33,11 @@ func Test_openapi_NotificationApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NotificationApiService AnswerApiV1NotificationReadStateAllPut", func(t *testing.T) {
|
||||
t.Run("Test NotificationAPIService AnswerApiV1NotificationReadStateAllPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.NotificationApi.AnswerApiV1NotificationReadStateAllPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.NotificationAPI.AnswerApiV1NotificationReadStateAllPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -46,11 +45,11 @@ func Test_openapi_NotificationApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NotificationApiService AnswerApiV1NotificationReadStatePut", func(t *testing.T) {
|
||||
t.Run("Test NotificationAPIService AnswerApiV1NotificationReadStatePut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.NotificationApi.AnswerApiV1NotificationReadStatePut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.NotificationAPI.AnswerApiV1NotificationReadStatePut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -58,11 +57,11 @@ func Test_openapi_NotificationApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NotificationApiService AnswerApiV1NotificationStatusGet", func(t *testing.T) {
|
||||
t.Run("Test NotificationAPIService AnswerApiV1NotificationStatusGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.NotificationApi.AnswerApiV1NotificationStatusGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.NotificationAPI.AnswerApiV1NotificationStatusGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -70,11 +69,11 @@ func Test_openapi_NotificationApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NotificationApiService AnswerApiV1NotificationStatusPut", func(t *testing.T) {
|
||||
t.Run("Test NotificationAPIService AnswerApiV1NotificationStatusPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.NotificationApi.AnswerApiV1NotificationStatusPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.NotificationAPI.AnswerApiV1NotificationStatusPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
/*
|
||||
|
||||
Testing PermissionApiService
|
||||
Testing PermissionAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_PermissionApiService(t *testing.T) {
|
||||
func Test_answer_sdk_PermissionAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test PermissionApiService AnswerApiV1PermissionGet", func(t *testing.T) {
|
||||
t.Run("Test PermissionAPIService AnswerApiV1PermissionGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.PermissionApi.AnswerApiV1PermissionGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.PermissionAPI.AnswerApiV1PermissionGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
/*
|
||||
|
||||
Testing PersonalApiService
|
||||
Testing PersonalAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_PersonalApiService(t *testing.T) {
|
||||
func Test_answer_sdk_PersonalAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test PersonalApiService AnswerApiV1PersonalAnswerPageGet", func(t *testing.T) {
|
||||
t.Run("Test PersonalAPIService AnswerApiV1PersonalAnswerPageGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.PersonalApi.AnswerApiV1PersonalAnswerPageGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.PersonalAPI.AnswerApiV1PersonalAnswerPageGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -33,11 +33,11 @@ func Test_openapi_PersonalApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test PersonalApiService PersonalQuestionPageGet", func(t *testing.T) {
|
||||
t.Run("Test PersonalAPIService PersonalQuestionPageGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.PersonalApi.PersonalQuestionPageGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.PersonalAPI.PersonalQuestionPageGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
/*
|
||||
|
||||
Testing PluginConnectorApiService
|
||||
Testing PluginConnectorAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_PluginConnectorApiService(t *testing.T) {
|
||||
func Test_answer_sdk_PluginConnectorAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test PluginConnectorApiService AnswerApiV1ConnectorBindingEmailPost", func(t *testing.T) {
|
||||
t.Run("Test PluginConnectorAPIService AnswerApiV1ConnectorBindingEmailPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.PluginConnectorApi.AnswerApiV1ConnectorBindingEmailPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.PluginConnectorAPI.AnswerApiV1ConnectorBindingEmailPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -33,11 +33,11 @@ func Test_openapi_PluginConnectorApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test PluginConnectorApiService AnswerApiV1ConnectorInfoGet", func(t *testing.T) {
|
||||
t.Run("Test PluginConnectorAPIService AnswerApiV1ConnectorInfoGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.PluginConnectorApi.AnswerApiV1ConnectorInfoGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.PluginConnectorAPI.AnswerApiV1ConnectorInfoGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -45,11 +45,11 @@ func Test_openapi_PluginConnectorApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test PluginConnectorApiService AnswerApiV1ConnectorUserInfoGet", func(t *testing.T) {
|
||||
t.Run("Test PluginConnectorAPIService AnswerApiV1ConnectorUserInfoGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.PluginConnectorApi.AnswerApiV1ConnectorUserInfoGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.PluginConnectorAPI.AnswerApiV1ConnectorUserInfoGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -57,11 +57,11 @@ func Test_openapi_PluginConnectorApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test PluginConnectorApiService AnswerApiV1ConnectorUserUnbindingDelete", func(t *testing.T) {
|
||||
t.Run("Test PluginConnectorAPIService AnswerApiV1ConnectorUserUnbindingDelete", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.PluginConnectorApi.AnswerApiV1ConnectorUserUnbindingDelete(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.PluginConnectorAPI.AnswerApiV1ConnectorUserUnbindingDelete(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing QuestionApiService
|
||||
Testing QuestionAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_QuestionApiService(t *testing.T) {
|
||||
func Test_answer_sdk_QuestionAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test QuestionApiService AnswerApiV1PersonalQaTopGet", func(t *testing.T) {
|
||||
t.Run("Test QuestionAPIService AnswerApiV1PersonalQaTopGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1PersonalQaTopGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1PersonalQaTopGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -34,11 +33,11 @@ func Test_openapi_QuestionApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test QuestionApiService AnswerApiV1QuestionAnswerPost", func(t *testing.T) {
|
||||
t.Run("Test QuestionAPIService AnswerApiV1QuestionAnswerPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionAnswerPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionAnswerPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -46,11 +45,11 @@ func Test_openapi_QuestionApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test QuestionApiService AnswerApiV1QuestionClosemsglistGet", func(t *testing.T) {
|
||||
t.Run("Test QuestionAPIService AnswerApiV1QuestionDelete", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionClosemsglistGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionDelete(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -58,11 +57,11 @@ func Test_openapi_QuestionApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test QuestionApiService AnswerApiV1QuestionDelete", func(t *testing.T) {
|
||||
t.Run("Test QuestionAPIService AnswerApiV1QuestionInfoGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionDelete(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionInfoGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -70,11 +69,11 @@ func Test_openapi_QuestionApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test QuestionApiService AnswerApiV1QuestionInfoGet", func(t *testing.T) {
|
||||
t.Run("Test QuestionAPIService AnswerApiV1QuestionInviteGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionInfoGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionInviteGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -82,11 +81,11 @@ func Test_openapi_QuestionApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test QuestionApiService AnswerApiV1QuestionOperationPut", func(t *testing.T) {
|
||||
t.Run("Test QuestionAPIService AnswerApiV1QuestionInvitePut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionOperationPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionInvitePut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -94,11 +93,11 @@ func Test_openapi_QuestionApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test QuestionApiService AnswerApiV1QuestionPageGet", func(t *testing.T) {
|
||||
t.Run("Test QuestionAPIService AnswerApiV1QuestionOperationPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionPageGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionOperationPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -106,11 +105,11 @@ func Test_openapi_QuestionApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test QuestionApiService AnswerApiV1QuestionPost", func(t *testing.T) {
|
||||
t.Run("Test QuestionAPIService AnswerApiV1QuestionPageGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionPageGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -118,11 +117,11 @@ func Test_openapi_QuestionApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test QuestionApiService AnswerApiV1QuestionPut", func(t *testing.T) {
|
||||
t.Run("Test QuestionAPIService AnswerApiV1QuestionPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -130,11 +129,11 @@ func Test_openapi_QuestionApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test QuestionApiService AnswerApiV1QuestionReopenPut", func(t *testing.T) {
|
||||
t.Run("Test QuestionAPIService AnswerApiV1QuestionPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionReopenPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -142,11 +141,11 @@ func Test_openapi_QuestionApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test QuestionApiService AnswerApiV1QuestionSimilarGet", func(t *testing.T) {
|
||||
t.Run("Test QuestionAPIService AnswerApiV1QuestionReopenPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionSimilarGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionReopenPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -154,11 +153,11 @@ func Test_openapi_QuestionApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test QuestionApiService AnswerApiV1QuestionSimilarTagGet", func(t *testing.T) {
|
||||
t.Run("Test QuestionAPIService AnswerApiV1QuestionSimilarGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionSimilarTagGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionSimilarGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -166,11 +165,11 @@ func Test_openapi_QuestionApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test QuestionApiService AnswerApiV1QuestionStatusPut", func(t *testing.T) {
|
||||
t.Run("Test QuestionAPIService AnswerApiV1QuestionSimilarTagGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionStatusPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionSimilarTagGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -178,11 +177,11 @@ func Test_openapi_QuestionApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test QuestionApiService PersonalQuestionPageGet", func(t *testing.T) {
|
||||
t.Run("Test QuestionAPIService AnswerApiV1QuestionStatusPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.QuestionApi.PersonalQuestionPageGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionStatusPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing RankApiService
|
||||
Testing RankAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_RankApiService(t *testing.T) {
|
||||
func Test_answer_sdk_RankAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test RankApiService AnswerApiV1PersonalRankPageGet", func(t *testing.T) {
|
||||
t.Run("Test RankAPIService AnswerApiV1PersonalRankPageGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.RankApi.AnswerApiV1PersonalRankPageGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.RankAPI.AnswerApiV1PersonalRankPageGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing ReasonApiService
|
||||
Testing ReasonAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_ReasonApiService(t *testing.T) {
|
||||
func Test_answer_sdk_ReasonAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test ReasonApiService AnswerAdminApiReasonsGet", func(t *testing.T) {
|
||||
t.Run("Test ReasonAPIService AnswerAdminApiReasonsGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ReasonApi.AnswerAdminApiReasonsGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ReasonAPI.AnswerAdminApiReasonsGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -34,11 +33,11 @@ func Test_openapi_ReasonApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test ReasonApiService AnswerApiV1ReasonsGet", func(t *testing.T) {
|
||||
t.Run("Test ReasonAPIService AnswerApiV1ReasonsGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ReasonApi.AnswerApiV1ReasonsGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ReasonAPI.AnswerApiV1ReasonsGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,44 +1,31 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing ReportApiService
|
||||
Testing ReportAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_ReportApiService(t *testing.T) {
|
||||
func Test_answer_sdk_ReportAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test ReportApiService AnswerApiV1ReportPost", func(t *testing.T) {
|
||||
t.Run("Test ReportAPIService AnswerApiV1ReportPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ReportApi.AnswerApiV1ReportPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test ReportApiService AnswerApiV1ReportTypeListGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ReportApi.AnswerApiV1ReportTypeListGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ReportAPI.AnswerApiV1ReportPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing RevisionApiService
|
||||
Testing RevisionAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_RevisionApiService(t *testing.T) {
|
||||
func Test_answer_sdk_RevisionAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test RevisionApiService AnswerApiV1RevisionsAuditPut", func(t *testing.T) {
|
||||
t.Run("Test RevisionAPIService AnswerApiV1RevisionsAuditPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.RevisionApi.AnswerApiV1RevisionsAuditPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.RevisionAPI.AnswerApiV1RevisionsAuditPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -34,11 +33,11 @@ func Test_openapi_RevisionApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test RevisionApiService AnswerApiV1RevisionsEditCheckGet", func(t *testing.T) {
|
||||
t.Run("Test RevisionAPIService AnswerApiV1RevisionsEditCheckGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.RevisionApi.AnswerApiV1RevisionsEditCheckGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.RevisionAPI.AnswerApiV1RevisionsEditCheckGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -46,11 +45,11 @@ func Test_openapi_RevisionApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test RevisionApiService AnswerApiV1RevisionsGet", func(t *testing.T) {
|
||||
t.Run("Test RevisionAPIService AnswerApiV1RevisionsGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.RevisionApi.AnswerApiV1RevisionsGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.RevisionAPI.AnswerApiV1RevisionsGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -58,11 +57,11 @@ func Test_openapi_RevisionApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test RevisionApiService AnswerApiV1RevisionsUnreviewedGet", func(t *testing.T) {
|
||||
t.Run("Test RevisionAPIService AnswerApiV1RevisionsUnreviewedGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.RevisionApi.AnswerApiV1RevisionsUnreviewedGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.RevisionAPI.AnswerApiV1RevisionsUnreviewedGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,32 +1,43 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing SearchApiService
|
||||
Testing SearchAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_SearchApiService(t *testing.T) {
|
||||
func Test_answer_sdk_SearchAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test SearchApiService AnswerApiV1SearchGet", func(t *testing.T) {
|
||||
t.Run("Test SearchAPIService AnswerApiV1SearchDescGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.SearchApi.AnswerApiV1SearchGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.SearchAPI.AnswerApiV1SearchDescGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test SearchAPIService AnswerApiV1SearchGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.SearchAPI.AnswerApiV1SearchGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing SiteApiService
|
||||
Testing SiteAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_SiteApiService(t *testing.T) {
|
||||
func Test_answer_sdk_SiteAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test SiteApiService AnswerApiV1SiteinfoGet", func(t *testing.T) {
|
||||
t.Run("Test SiteAPIService AnswerApiV1SiteinfoGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.SiteApi.AnswerApiV1SiteinfoGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.SiteAPI.AnswerApiV1SiteinfoGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -34,11 +33,11 @@ func Test_openapi_SiteApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test SiteApiService AnswerApiV1SiteinfoLegalGet", func(t *testing.T) {
|
||||
t.Run("Test SiteAPIService AnswerApiV1SiteinfoLegalGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.SiteApi.AnswerApiV1SiteinfoLegalGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.SiteAPI.AnswerApiV1SiteinfoLegalGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -46,11 +45,11 @@ func Test_openapi_SiteApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test SiteApiService CustomCssGet", func(t *testing.T) {
|
||||
t.Run("Test SiteAPIService CustomCssGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.SiteApi.CustomCssGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.SiteAPI.CustomCssGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -58,11 +57,11 @@ func Test_openapi_SiteApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test SiteApiService RobotsTxtGet", func(t *testing.T) {
|
||||
t.Run("Test SiteAPIService RobotsTxtGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.SiteApi.RobotsTxtGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.SiteAPI.RobotsTxtGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing TagApiService
|
||||
Testing TagAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_TagApiService(t *testing.T) {
|
||||
func Test_answer_sdk_TagAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test TagApiService AnswerApiV1QuestionTagsGet", func(t *testing.T) {
|
||||
t.Run("Test TagAPIService AnswerApiV1QuestionTagsGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.TagApi.AnswerApiV1QuestionTagsGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.TagAPI.AnswerApiV1QuestionTagsGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -34,11 +33,11 @@ func Test_openapi_TagApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test TagApiService AnswerApiV1TagDelete", func(t *testing.T) {
|
||||
t.Run("Test TagAPIService AnswerApiV1TagDelete", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagDelete(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.TagAPI.AnswerApiV1TagDelete(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -46,11 +45,11 @@ func Test_openapi_TagApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test TagApiService AnswerApiV1TagGet", func(t *testing.T) {
|
||||
t.Run("Test TagAPIService AnswerApiV1TagGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.TagAPI.AnswerApiV1TagGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -58,11 +57,11 @@ func Test_openapi_TagApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test TagApiService AnswerApiV1TagPost", func(t *testing.T) {
|
||||
t.Run("Test TagAPIService AnswerApiV1TagPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.TagAPI.AnswerApiV1TagPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -70,11 +69,11 @@ func Test_openapi_TagApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test TagApiService AnswerApiV1TagPut", func(t *testing.T) {
|
||||
t.Run("Test TagAPIService AnswerApiV1TagPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.TagAPI.AnswerApiV1TagPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -82,11 +81,11 @@ func Test_openapi_TagApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test TagApiService AnswerApiV1TagSynonymPut", func(t *testing.T) {
|
||||
t.Run("Test TagAPIService AnswerApiV1TagSynonymPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagSynonymPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.TagAPI.AnswerApiV1TagSynonymPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -94,11 +93,11 @@ func Test_openapi_TagApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test TagApiService AnswerApiV1TagSynonymsGet", func(t *testing.T) {
|
||||
t.Run("Test TagAPIService AnswerApiV1TagSynonymsGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagSynonymsGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.TagAPI.AnswerApiV1TagSynonymsGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -106,11 +105,11 @@ func Test_openapi_TagApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test TagApiService AnswerApiV1TagsFollowingGet", func(t *testing.T) {
|
||||
t.Run("Test TagAPIService AnswerApiV1TagsFollowingGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagsFollowingGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.TagAPI.AnswerApiV1TagsFollowingGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -118,11 +117,11 @@ func Test_openapi_TagApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test TagApiService AnswerApiV1TagsGet", func(t *testing.T) {
|
||||
t.Run("Test TagAPIService AnswerApiV1TagsGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagsGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.TagAPI.AnswerApiV1TagsGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -130,11 +129,11 @@ func Test_openapi_TagApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test TagApiService AnswerApiV1TagsPageGet", func(t *testing.T) {
|
||||
t.Run("Test TagAPIService AnswerApiV1TagsPageGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagsPageGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.TagAPI.AnswerApiV1TagsPageGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing UploadApiService
|
||||
Testing UploadAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_UploadApiService(t *testing.T) {
|
||||
func Test_answer_sdk_UploadAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test UploadApiService AnswerApiV1FilePost", func(t *testing.T) {
|
||||
t.Run("Test UploadAPIService AnswerApiV1FilePost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UploadApi.AnswerApiV1FilePost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UploadAPI.AnswerApiV1FilePost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -34,11 +33,11 @@ func Test_openapi_UploadApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UploadApiService AnswerApiV1PostRenderPost", func(t *testing.T) {
|
||||
t.Run("Test UploadAPIService AnswerApiV1PostRenderPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UploadApi.AnswerApiV1PostRenderPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UploadAPI.AnswerApiV1PostRenderPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing UserApiService
|
||||
Testing UserAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_UserApiService(t *testing.T) {
|
||||
func Test_answer_sdk_UserAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test UserApiService AnswerApiV1PersonalUserInfoGet", func(t *testing.T) {
|
||||
t.Run("Test UserAPIService AnswerApiV1PersonalUserInfoGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserApi.AnswerApiV1PersonalUserInfoGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1PersonalUserInfoGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -34,11 +33,11 @@ func Test_openapi_UserApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserApiService AnswerApiV1UserActionRecordGet", func(t *testing.T) {
|
||||
t.Run("Test UserAPIService AnswerApiV1UserActionRecordGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserActionRecordGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserActionRecordGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -46,11 +45,11 @@ func Test_openapi_UserApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserApiService AnswerApiV1UserEmailChangeCodePost", func(t *testing.T) {
|
||||
t.Run("Test UserAPIService AnswerApiV1UserEmailChangeCodePost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailChangeCodePost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserEmailChangeCodePost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -58,11 +57,11 @@ func Test_openapi_UserApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserApiService AnswerApiV1UserEmailNotificationPut", func(t *testing.T) {
|
||||
t.Run("Test UserAPIService AnswerApiV1UserEmailPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailNotificationPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserEmailPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -70,11 +69,11 @@ func Test_openapi_UserApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserApiService AnswerApiV1UserEmailPut", func(t *testing.T) {
|
||||
t.Run("Test UserAPIService AnswerApiV1UserEmailVerificationPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserEmailVerificationPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -82,11 +81,11 @@ func Test_openapi_UserApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserApiService AnswerApiV1UserEmailVerificationPost", func(t *testing.T) {
|
||||
t.Run("Test UserAPIService AnswerApiV1UserEmailVerificationSendPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailVerificationPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserEmailVerificationSendPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -94,11 +93,11 @@ func Test_openapi_UserApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserApiService AnswerApiV1UserEmailVerificationSendPost", func(t *testing.T) {
|
||||
t.Run("Test UserAPIService AnswerApiV1UserInfoGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailVerificationSendPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserInfoGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -106,11 +105,11 @@ func Test_openapi_UserApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserApiService AnswerApiV1UserInfoGet", func(t *testing.T) {
|
||||
t.Run("Test UserAPIService AnswerApiV1UserInfoPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserInfoGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserInfoPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -118,11 +117,11 @@ func Test_openapi_UserApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserApiService AnswerApiV1UserInfoPut", func(t *testing.T) {
|
||||
t.Run("Test UserAPIService AnswerApiV1UserInfoSearchGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserInfoPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserInfoSearchGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -130,11 +129,11 @@ func Test_openapi_UserApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserApiService AnswerApiV1UserInterfacePut", func(t *testing.T) {
|
||||
t.Run("Test UserAPIService AnswerApiV1UserInterfacePut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserInterfacePut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserInterfacePut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -142,11 +141,11 @@ func Test_openapi_UserApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserApiService AnswerApiV1UserLoginEmailPost", func(t *testing.T) {
|
||||
t.Run("Test UserAPIService AnswerApiV1UserLoginEmailPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserLoginEmailPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserLoginEmailPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -154,11 +153,11 @@ func Test_openapi_UserApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserApiService AnswerApiV1UserLogoutGet", func(t *testing.T) {
|
||||
t.Run("Test UserAPIService AnswerApiV1UserLogoutGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserLogoutGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserLogoutGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -166,11 +165,11 @@ func Test_openapi_UserApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserApiService AnswerApiV1UserNoticeSetPost", func(t *testing.T) {
|
||||
t.Run("Test UserAPIService AnswerApiV1UserNotificationConfigPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserNoticeSetPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserNotificationConfigPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -178,11 +177,11 @@ func Test_openapi_UserApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserApiService AnswerApiV1UserPasswordPut", func(t *testing.T) {
|
||||
t.Run("Test UserAPIService AnswerApiV1UserNotificationConfigPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserPasswordPut(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserNotificationConfigPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -190,11 +189,11 @@ func Test_openapi_UserApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserApiService AnswerApiV1UserPasswordReplacementPost", func(t *testing.T) {
|
||||
t.Run("Test UserAPIService AnswerApiV1UserNotificationUnsubscribePut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserPasswordReplacementPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserNotificationUnsubscribePut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -202,11 +201,11 @@ func Test_openapi_UserApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserApiService AnswerApiV1UserPasswordResetPost", func(t *testing.T) {
|
||||
t.Run("Test UserAPIService AnswerApiV1UserPasswordPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserPasswordResetPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserPasswordPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -214,11 +213,11 @@ func Test_openapi_UserApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserApiService AnswerApiV1UserRankingGet", func(t *testing.T) {
|
||||
t.Run("Test UserAPIService AnswerApiV1UserPasswordReplacementPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserRankingGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserPasswordReplacementPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -226,11 +225,11 @@ func Test_openapi_UserApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserApiService AnswerApiV1UserRegisterCaptchaGet", func(t *testing.T) {
|
||||
t.Run("Test UserAPIService AnswerApiV1UserPasswordResetPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserRegisterCaptchaGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserPasswordResetPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -238,11 +237,35 @@ func Test_openapi_UserApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserApiService AnswerApiV1UserRegisterEmailPost", func(t *testing.T) {
|
||||
t.Run("Test UserAPIService AnswerApiV1UserRankingGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserRegisterEmailPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserRankingGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserAPIService AnswerApiV1UserRegisterCaptchaGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserRegisterCaptchaGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test UserAPIService AnswerApiV1UserRegisterEmailPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserRegisterEmailPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
Reference in New Issue
Block a user