mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 21:00:06 +01:00
89 lines
1.9 KiB
Go
89 lines
1.9 KiB
Go
/*
|
|
AutoGlue API
|
|
|
|
Testing AuthAPIService
|
|
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
|
|
|
package autoglue
|
|
|
|
import (
|
|
"context"
|
|
openapiclient "github.com/glueops/autoglue-sdk-go"
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
"testing"
|
|
)
|
|
|
|
func Test_autoglue_AuthAPIService(t *testing.T) {
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
|
|
t.Run("Test AuthAPIService AuthCallback", func(t *testing.T) {
|
|
|
|
t.Skip("skip test") // remove to run test
|
|
|
|
var provider string
|
|
|
|
resp, httpRes, err := apiClient.AuthAPI.AuthCallback(context.Background(), provider).Execute()
|
|
|
|
require.Nil(t, err)
|
|
require.NotNil(t, resp)
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
})
|
|
|
|
t.Run("Test AuthAPIService AuthStart", func(t *testing.T) {
|
|
|
|
t.Skip("skip test") // remove to run test
|
|
|
|
var provider string
|
|
|
|
resp, httpRes, err := apiClient.AuthAPI.AuthStart(context.Background(), provider).Execute()
|
|
|
|
require.Nil(t, err)
|
|
require.NotNil(t, resp)
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
})
|
|
|
|
t.Run("Test AuthAPIService GetJWKS", func(t *testing.T) {
|
|
|
|
t.Skip("skip test") // remove to run test
|
|
|
|
resp, httpRes, err := apiClient.AuthAPI.GetJWKS(context.Background()).Execute()
|
|
|
|
require.Nil(t, err)
|
|
require.NotNil(t, resp)
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
})
|
|
|
|
t.Run("Test AuthAPIService Logout", func(t *testing.T) {
|
|
|
|
t.Skip("skip test") // remove to run test
|
|
|
|
httpRes, err := apiClient.AuthAPI.Logout(context.Background()).Execute()
|
|
|
|
require.Nil(t, err)
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
})
|
|
|
|
t.Run("Test AuthAPIService Refresh", func(t *testing.T) {
|
|
|
|
t.Skip("skip test") // remove to run test
|
|
|
|
resp, httpRes, err := apiClient.AuthAPI.Refresh(context.Background()).Execute()
|
|
|
|
require.Nil(t, err)
|
|
require.NotNil(t, resp)
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
})
|
|
|
|
}
|