mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:47:32 +00:00

# Which Problems Are Solved Flakiness in integration tests regarding gofakeit functions, which provided the same names on 2 different occasions. # How the Problems Are Solved Attach a random string to the provided names, so that they are not dependent on the gofakeit code. # Additional Changes None # Additional Context None --------- Co-authored-by: Marco A. <marco@zitadel.com>
42 lines
729 B
Go
42 lines
729 B
Go
package integration
|
|
|
|
import "github.com/brianvoe/gofakeit/v6"
|
|
|
|
// company private function to add a random string to the gofakeit.Company function
|
|
func company() string {
|
|
return gofakeit.Company() + "-" + RandString(5)
|
|
}
|
|
|
|
func OrganizationName() string {
|
|
return company()
|
|
}
|
|
|
|
// appName private function to add a random string to the gofakeit.AppName function
|
|
func appName() string {
|
|
return gofakeit.AppName() + "-" + RandString(5)
|
|
}
|
|
|
|
func TargetName() string {
|
|
return appName()
|
|
}
|
|
|
|
func ApplicationName() string {
|
|
return appName()
|
|
}
|
|
|
|
func ProjectName() string {
|
|
return appName()
|
|
}
|
|
|
|
func IDPName() string {
|
|
return appName()
|
|
}
|
|
|
|
func RoleKey() string {
|
|
return appName()
|
|
}
|
|
|
|
func RoleDisplayName() string {
|
|
return appName()
|
|
}
|