Cleanup
Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
a6496e5b41
commit
9b79cbe713
1 changed files with 0 additions and 18 deletions
|
@ -5,14 +5,6 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Make sure the generated names are awesome
|
|
||||||
func TestGenerateAwesomeNames(t *testing.T) {
|
|
||||||
name := GetRandomName(0)
|
|
||||||
if !isAwesome(name) {
|
|
||||||
t.Fatalf("Generated name '%s' is not awesome.", name)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestNameFormat(t *testing.T) {
|
func TestNameFormat(t *testing.T) {
|
||||||
name := GetRandomName(0)
|
name := GetRandomName(0)
|
||||||
if !strings.Contains(name, "_") {
|
if !strings.Contains(name, "_") {
|
||||||
|
@ -33,13 +25,3 @@ func TestNameRetries(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// To be awesome, a container name must involve cool inventors, be easy to remember,
|
|
||||||
// be at least mildly funny, and always be politically correct for enterprise adoption.
|
|
||||||
func isAwesome(name string) bool {
|
|
||||||
coolInventorNames := true
|
|
||||||
easyToRemember := true
|
|
||||||
mildlyFunnyOnOccasion := true
|
|
||||||
politicallyCorrect := true
|
|
||||||
return coolInventorNames && easyToRemember && mildlyFunnyOnOccasion && politicallyCorrect
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue