-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.txt
51 lines (40 loc) · 1.43 KB
/
test.txt
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
43
44
45
46
47
48
49
50
51
End Valid Tests:
HT57 GHU
curl -i -H "Content-Type: application/json" -X POST localhost:7000/api/camera -d '{"road":1, "plate":"YS54 GBF","time": 1442862678}'
curl -i -H "Content-Type: application/json" -u cam_1:python -X POST localhost:7000/api/camera/1 -d '{"road":1, "plate":"YS54 GBF","time": 1442862678}'
curl -X POST localhost:7000/api/camera/2 -d '{"road":1, "plate":"YS54 GBF","time": 1442862695}'
curl -X POST www.domain.com/api/camera/1 -d '{"road":1, "plate":"YS54 GBF","time": 1442862678}'
curl -i -H "Content-Type: application/json" -u cam_1:python -X POST localhost:7000/api/camera/1 -d '{"road":1, "plate":"EY86 TTH","time": 1448722238}'
curl -i -H "Content-Type: application/json" -u cam_1:python -X POST localhost:7000/api/camera/2 -d '{"road":1, "plate":"EY86 TTH","time": 1448722245}'
Function Tests:
Valid:
1.
in: valid = validate()
print(valid.road('0'))
out: True
2.
in: valid = validate()
print(valid.road(5))
out: True
InValid:
1.
in: valid = validate()
print(valid.road('5 5'))
out: False
2.
in: valid = validate()
print(valid.road('5_u'))
out: False
3.
in: valid = validate()
print(valid.road('*5'))
out: False
Valid:
1.
in: sqli = database()
print(sqli.check_plate('KU46 KRQ'))
out: True
2.
in: sqli = database()
print(sqli.check_plate('KU46KRQ'))
out: True