mirror of
https://github.com/zitadel/zitadel.git
synced 2025-11-14 17:53:46 +00:00
derive e2e orgs domain from baseurl
This commit is contained in:
@@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"context"
|
||||
"io/ioutil"
|
||||
"net/url"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
@@ -22,9 +23,14 @@ func execute(ctx context.Context, cmd *command.Commands, cfg E2EConfig, users []
|
||||
|
||||
orgOwner := newHuman(users[0])
|
||||
|
||||
baseUrl, err := url.Parse(cfg.BaseURL)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
orgOwnerID, org, err := cmd.SetUpOrg(ctx, &command.OrgSetup{
|
||||
Name: cfg.Org,
|
||||
CustomDomain: "localhost",
|
||||
CustomDomain: baseUrl.Host,
|
||||
Human: *orgOwner,
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user