api: add test definition validate api

Signed-off-by: Chase Qi <chase.qi@linaro.org>
17 jobs for validate-testdef in 17 minutes and 21 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #129922
amd64
dispatcher-debian-10

00:02:28

passed #129924
amd64
dispatcher-debian-11

00:02:48

passed #129923
amd64
server-debian-10

00:02:59

passed #129925
amd64
server-debian-11

00:05:33

 
  Analyze
passed #129926
amd64-dind
bandit-sast

00:00:54

passed #129927
amd64
black

00:00:34

passed #129928
amd64
code_quality

00:00:21

passed #129933
amd64
codespell

00:00:16

passed #129929
amd64
coverage

00:06:39

61.04%
passed #129930
amd64
dockerfiles

00:00:14

passed #129932
amd64
pylint

00:03:03

passed #129931
amd64
schemas

00:00:28

 
  Build
passed #129935
amd64
debian/10

00:01:45

passed #129934
amd64
doc

00:00:35

passed #129936
amd64-dind
docker-amd64-dispatcher

00:02:04

passed #129947
amd64-dind
docker-amd64-server

00:03:00

failed #129937
amd64-dind
docker-amd64-server

01:00:10