1
0
Fork 0
forked from lthn/blockchain
blockchain/utils/sdk/client/go/test/api_info_test.go
Snider 884958b0c7 Add Go SDK client for Lethean Blockchain API
Introduces a generated Go SDK client for the Lethean Blockchain API, including OpenAPI spec, models, API interfaces, documentation, and tests. This enables Go applications to interact with Lethean blockchain endpoints for block, info, and transaction operations.
2025-10-19 14:49:39 +01:00

49 lines
1 KiB
Go
Generated

/*
Lethean Blockchain API
Testing InfoAPIService
*/
// 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/lthn"
)
func Test_lthn_InfoAPIService(t *testing.T) {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
t.Run("Test InfoAPIService GetInfo", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.InfoAPI.GetInfo(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test InfoAPIService Version", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.InfoAPI.Version(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
}