github.com/docker/compose-on-kubernetes@v0.5.0/install/installer_test.go (about) 1 package install 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 ) 8 9 func TestGenTagShouldOuptutAtMost63Chars(t *testing.T) { 10 res := tagForCustomImages("foo", "bar") 11 assert.True(t, len(res) <= 63, "%d is too long for a kubernetes label", len(res)) 12 }