1
0
Fork 0
forked from lthn/blockchain
blockchain/utils/sdk/client/go/test/api_info_test.go

50 lines
1.1 KiB
Go
Raw Permalink Normal View History

/*
Lethean Blockchain API
Testing InfoUtilsSdkClientGoService
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
package lthn
import (
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "github.com/letheanVPN/blockchain/utils/sdk/client/go"
)
func Test_lthn_InfoUtilsSdkClientGoService(t *testing.T) {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
t.Run("Test InfoUtilsSdkClientGoService GetInfo", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.InfoUtilsSdkClientGo.GetInfo(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test InfoUtilsSdkClientGoService Version", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.InfoUtilsSdkClientGo.Version(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
}