forked from lthn/blockchain
50 lines
1.1 KiB
Go
50 lines
1.1 KiB
Go
|
|
/*
|
||
|
|
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)
|
||
|
|
|
||
|
|
})
|
||
|
|
|
||
|
|
}
|