Files
autoglue/sdk/go/test/api_orgs_test.go
2025-11-02 13:19:30 +00:00

50 lines
1.0 KiB
Go

/*
AutoGlue API
Testing OrgsAPIService
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
package autoglue
import (
"context"
openapiclient "github.com/glueops/autoglue-sdk"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
)
func Test_autoglue_OrgsAPIService(t *testing.T) {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
t.Run("Test OrgsAPIService CreateOrg", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.OrgsAPI.CreateOrg(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test OrgsAPIService ListMyOrgs", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.OrgsAPI.ListMyOrgs(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
}