fix: rename sdk to match repo & introduce git subtree

This commit is contained in:
allanice001
2025-11-02 22:30:34 +00:00
parent 43f8549320
commit e313d5fc4f
242 changed files with 183 additions and 39458 deletions

View File

@@ -1,62 +0,0 @@
/*
AutoGlue API
Testing MeAPIKeysAPIService
*/
// 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_MeAPIKeysAPIService(t *testing.T) {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
t.Run("Test MeAPIKeysAPIService CreateUserAPIKey", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.MeAPIKeysAPI.CreateUserAPIKey(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test MeAPIKeysAPIService DeleteUserAPIKey", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var id string
httpRes, err := apiClient.MeAPIKeysAPI.DeleteUserAPIKey(context.Background(), id).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test MeAPIKeysAPIService ListUserAPIKeys", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.MeAPIKeysAPI.ListUserAPIKeys(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
}