Files
openapi-go-answer/test/api_installation_test.go
2023-08-18 10:03:31 +08:00

85 lines
2.0 KiB
Go

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