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