-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgonjacreqs.py
42 lines (36 loc) · 1.19 KB
/
gonjacreqs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
GENERIC_KEY_TYPE = "type"
GENERIC_KEY_IP = "ip"
GENERIC_KEY_PLATFORM = "platform"
GENERIC_KEY_TESTCONN = "testconn"
GENERIC_JOBDONE = "jobdone"
GENERIC_BUILD_ID = "buildid"
GENERIC_BRANCH = "branch"
GENERIC_REPO = "repo"
GENERIC_FLAGS = "flags"
GENERIC_URL = "url"
GENERIC_CUSTOMID = "customid"
LOCAL_REGISTER = "register"
LOCAL_UNREGISTER = "unregister"
LOCAL_TESTCONN = "testconn"
REMOTE_REGACK = "regack"
REMOTE_NEWJOB = "newjob"
REMOTE_JOBSTART = "jobstart"
REMOTE_TESTCONNDENY = "testconndeny"
REMOTE_TESTCONNACK = "testconnack"
VALID_LOCAL_REQ_KEYS=[GENERIC_KEY_TYPE,
GENERIC_KEY_IP,
GENERIC_KEY_PLATFORM]
VALID_LOCAL_REQ_TYPES=[LOCAL_REGISTER,
LOCAL_UNREGISTER,
LOCAL_TESTCONN]
VALID_REMOTE_REQ_KEYS=[GENERIC_KEY_TYPE,
GENERIC_BRANCH,
GENERIC_REPO,
GENERIC_FLAGS,
GENERIC_BUILD_ID,
GENERIC_URL,
GENERIC_CUSTOMID]
VALID_REMOTE_REQ_TYPES=[REMOTE_REGACK,
REMOTE_NEWJOB,
REMOTE_TESTCONNDENY,
REMOTE_TESTCONNACK]