From daf83fac8c614686bf67e512eb60e9f98ac978b8 Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Fri, 2 Feb 2024 15:00:02 +0100 Subject: [PATCH] chore: synchronize workspaces --- selfservice/strategy/password/op_helpers_test.go | 6 +++--- selfservice/strategy/password/op_registration_test.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/selfservice/strategy/password/op_helpers_test.go b/selfservice/strategy/password/op_helpers_test.go index 17422063207b..6eaf95fccd4e 100644 --- a/selfservice/strategy/password/op_helpers_test.go +++ b/selfservice/strategy/password/op_helpers_test.go @@ -70,13 +70,13 @@ type testConfig struct { browserClient *http.Client kratosPublicTS *httptest.Server clientAppTS *httptest.Server - hydraAdminClient hydraclientgo.OAuth2Api + hydraAdminClient *hydraclientgo.OAuth2ApiService consentRemember bool requestedScope []string callTrace *[]callTrace } -func createHydraOAuth2ApiClient(url string) hydraclientgo.OAuth2Api { +func createHydraOAuth2ApiClient(url string) *hydraclientgo.OAuth2ApiService { configuration := hydraclientgo.NewConfiguration() configuration.Host = urlx.ParseOrPanic(url).Host configuration.Servers = hydraclientgo.ServerConfigurations{{URL: url}} @@ -84,7 +84,7 @@ func createHydraOAuth2ApiClient(url string) hydraclientgo.OAuth2Api { return hydraclientgo.NewAPIClient(configuration).OAuth2Api } -func createOAuth2Client(t *testing.T, ctx context.Context, hydraAdmin hydraclientgo.OAuth2Api, redirectURIs []string, scope string, skipConsent bool) string { +func createOAuth2Client(t *testing.T, ctx context.Context, hydraAdmin *hydraclientgo.OAuth2ApiService, redirectURIs []string, scope string, skipConsent bool) string { t.Helper() clientName := "kratos-hydra-integration-test-client-1" diff --git a/selfservice/strategy/password/op_registration_test.go b/selfservice/strategy/password/op_registration_test.go index 77f91cfb1ee3..7c0b05c81e5a 100644 --- a/selfservice/strategy/password/op_registration_test.go +++ b/selfservice/strategy/password/op_registration_test.go @@ -39,7 +39,7 @@ func TestOAuth2ProviderRegistration(t *testing.T) { errTS := testhelpers.NewErrorTestServer(t, reg) redirTS := testhelpers.NewRedirSessionEchoTS(t, reg) - var hydraAdminClient hydraclientgo.OAuth2Api + var hydraAdminClient *hydraclientgo.OAuth2ApiService router := x.NewRouterPublic()