Class TestNames
java.lang.Object
io.github.flink.gcp.connector.testutils.TestNames
Random resource-name helpers for tests whose resources share a namespace — the gated real-GCP
suites above all, where concurrent runs must not collide on resource names and a crashed run must
leave behind names that identify it, but also an emulator harness giving each test a database of
its own.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringrunId()Returns a short random run id (eight hex characters) to suffix onto several related resource names, so one run's resources group together — for names built with underscores where dashes are unwelcome.static StringReturnsprefixplus a full random UUID, dash-separated — for resources whose names allow dashes.
-
Method Details
-
unique
Returnsprefixplus a full random UUID, dash-separated — for resources whose names allow dashes. -
runId
Returns a short random run id (eight hex characters) to suffix onto several related resource names, so one run's resources group together — for names built with underscores where dashes are unwelcome.
-