From 5f1e7cca2f65a2ef2f6171da860761d8f008fb65 Mon Sep 17 00:00:00 2001 From: Iraq Jaber Date: Fri, 30 May 2025 18:55:32 +0200 Subject: [PATCH] fixup! Merge branch 'main' into org_api_merge --- .../api/grpc/org/v2beta/integration_test/org_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/internal/api/grpc/org/v2beta/integration_test/org_test.go b/internal/api/grpc/org/v2beta/integration_test/org_test.go index 576af13426..edceafa068 100644 --- a/internal/api/grpc/org/v2beta/integration_test/org_test.go +++ b/internal/api/grpc/org/v2beta/integration_test/org_test.go @@ -1009,6 +1009,7 @@ func TestServer_AddOerganizationDomain(t *testing.T) { } func TestServer_ListOrganizationDomain(t *testing.T) { + domain := gofakeit.URL() tests := []struct { name string ctx context.Context @@ -1018,7 +1019,7 @@ func TestServer_ListOrganizationDomain(t *testing.T) { }{ { name: "list org domain, happy path", - domain: gofakeit.URL(), + domain: domain, testFunc: func() string { // 1. create organization orgs, _, err := createOrgs(CTX, Client, 1) @@ -1027,8 +1028,6 @@ func TestServer_ListOrganizationDomain(t *testing.T) { return "" } orgId := orgs[0].Id - - domain := gofakeit.URL() // 2. add domain addOrgDomainRes, err := Client.AddOrganizationDomain(CTX, &v2beta_org.AddOrganizationDomainRequest{ OrganizationId: orgId, @@ -1073,6 +1072,7 @@ func TestServer_ListOrganizationDomain(t *testing.T) { } func TestServer_DeleteOerganizationDomain(t *testing.T) { + domain := gofakeit.URL() tests := []struct { name string ctx context.Context @@ -1082,7 +1082,7 @@ func TestServer_DeleteOerganizationDomain(t *testing.T) { }{ { name: "delete org domain, happy path", - domain: gofakeit.URL(), + domain: domain, testFunc: func() string { // 1. create organization orgs, _, err := createOrgs(CTX, Client, 1) @@ -1092,7 +1092,6 @@ func TestServer_DeleteOerganizationDomain(t *testing.T) { } orgId := orgs[0].Id - domain := gofakeit.URL() // 2. add domain addOrgDomainRes, err := Client.AddOrganizationDomain(CTX, &v2beta_org.AddOrganizationDomainRequest{ OrganizationId: orgId,