new: validate groups when creating new test
authorEryu Guan <eguan@redhat.com>
Fri, 28 Jul 2017 05:24:51 +0000 (13:24 +0800)
committerEryu Guan <eguan@redhat.com>
Thu, 3 Aug 2017 12:44:04 +0000 (20:44 +0800)
commit9c129c6887eb109d1407a3342209c71997a98984
tree135a335b6dc6369b3a35715656957ffcb494223c
parentfed90418a77eb906462ee8410e4adcfd0562732f
new: validate groups when creating new test

Allow only lower case letters, digits, spaces and underscore when
adding groups, give prompt if there's any not-allowed characters.
Also remove redundant spaces between groups.

Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
new