1 # Important: It seems that data driven approach is much more appropriate for implementation
2 # of TCs described by tables in this file.
4 # TODO implement negative and positive TCs for L0 security level
5 # TODO according to this table
6 # TODO There are described correct reasons of failures which needs to be verified in TCs
8 # --------------------------------------------------------------------------------------------------------------------
9 # | Table 1: security level L0 configured at IoTDM core AND used OneM2M protocol provider module
10 # --------------------------------------------------------------------------------------------------------------------
11 # | TC | Target CSE | Originator | Originator | Registration | Result | Notes
12 # | | | entity type | is registered | of entity | |
13 # ---------------------------------------------------------------------------------------------------------------------
14 # | | Local | AE | No | - | Pass |
15 # | | Local | AE | No | AE | Pass |
16 # | | Local | AE | No | another AE | Pass |
17 # | | Local | AE | No | CSE | Pass | IoTDM doesn't know if it's AE or not
18 # | | Local | AE | Yes | - | Pass |
19 # | | Local | AE | Yes | AE | Fail | already registered
20 # | | Local | AE | Yes | another AE | Pass |
21 # | | Local | AE | Yes | CSE | Fail | AE can't register CSE
22 # | | Local | CSE | No | - | Pass |
23 # | | Local | CSE | No | AE | Pass | IoTDM doesn't know if it's CSE or not
24 # | | Local | CSE | No | CSE | Pass |
25 # | | Local | CSE | No | another CSE | Pass | IoTDM doesn't know right CSE-ID
26 # | | Local | CSE | Yes | - | Pass |
27 # | | Local | CSE | Yes | AE | Fail | CSE can't register AE
28 # | | Local | CSE | Yes | another CSE | Fail | CSE can't register another CSE
29 # | | Local | CSE | Yes | CSE | Fail | already registered
30 # | | Remote | AE, C-AE-ID | No | - | Pass | IoTDM doesn't know if it's AE or not
31 # | | Remote | AE, C-AE-ID | No | AE | Fail | registration can't be forwarded
32 # | | Remote | AE, C-AE-ID | No | another AE | Fail | registration can't be forwarded
33 # | | Remote | AE, C-AE-ID | No | CSE | Fail | registration can't be forwarded
34 # | | Remote | AE, C-AE-ID | Yes | - | Fail | request with originator set to C-AE-ID must not be forwarded
35 # | | Remote | AE, C-AE-ID | Yes | AE | Fail | registration can't be forwarded
36 # | | Remote | AE, C-AE-ID | Yes | another AE | Fail | registration can't be forwarded
37 # | | Remote | AE, C-AE-ID | Yes | CSE | Fail | registration can't be forwarded
38 # | | Remote | AE | No | - | Pass |
39 # | | Remote | AE | No | AE | Fail | registration can't be forwarded
40 # | | Remote | AE | No | another AE | Fail | registration can't be forwarded
41 # | | Remote | AE | No | CSE | Fail | registration can't be forwarded
42 # | | Remote | AE | Yes | - | Pass |
43 # | | Remote | AE | Yes | AE | Fail | registration can't be forwarded
44 # | | Remote | AE | Yes | another AE | Fail | registration can't be forwarded
45 # | | Remote | AE | Yes | CSE | Fail | registration can't be forwarded
46 # | | Remote | CSE | No | - | Pass |
47 # | | Remote | CSE | No | AE | Fail | registration can't be forwarded
48 # | | Remote | CSE | No | CSE | Fail | registration can't be forwarded
49 # | | Remote | CSE | No | another CSE | Fail | registration can't be forwarded
50 # | | Remote | CSE | Yes | - | Pass |
51 # | | Remote | CSE | Yes | AE | Fail | registration can't be forwarded
52 # | | Remote | CSE | Yes | CSE | Fail | registration can't be forwarded
53 # | | Remote | CSE | Yes | another CSE | Fail | registration can't be forwarded
56 # TODO implement negative and positive TCs for L1 security level configured
57 # TODO at IoTDM core and at protocol provider modules
58 # TODO according to this table
59 # TODO There are described correct reasons of failures which needs to be verified in TCs
61 # --------------------------------------------------------------------------------------------------------------------
62 # | Table 2: security level L1 configured at IoTDM core OR used OneM2M protocol provider module (need to test both cases)
63 # --------------------------------------------------------------------------------------------------------------------
64 # | TC | Target CSE | Originator | Originator | Registration | Result | Notes
65 # | | | entity type | is registered | of entity | |
66 # ---------------------------------------------------------------------------------------------------------------------
67 # | | Local | AE | No | - | Fail | originator not registered
68 # | | Local | AE | No | AE | Pass |
69 # | | Local | AE | No | another AE | Pass |
70 # | | Local | AE | No | CSE | Pass | IoTDM doesn't know if it's AE or not
71 # | | Local | AE | Yes | - | Pass |
72 # | | Local | AE | Yes | AE | Fail | already registered
73 # | | Local | AE | Yes | another AE | Pass |
74 # | | Local | AE | Yes | CSE | Fail | AE can't register CSE
75 # | | Local | CSE | No | - | Fail | originator not registered
76 # | | Local | CSE | No | AE | Pass | IoTDM doesn't know if it's CSE or not
77 # | | Local | CSE | No | CSE | Pass |
78 # | | Local | CSE | No | another CSE | Pass | IoTDM doesn't know right CSE-ID
79 # | | Local | CSE | Yes | - | Pass |
80 # | | Local | CSE | Yes | AE | Fail | CSE can't register AE
81 # | | Local | CSE | Yes | another CSE | Fail | CSE can't register another CSE
82 # | | Local | CSE | Yes | CSE | Fail | already registered
83 # | | Remote | AE, C-AE-ID | No | - | Fail | originator not registered
84 # | | Remote | AE, C-AE-ID | No | AE | Fail | registration can't be forwarded
85 # | | Remote | AE, C-AE-ID | No | another AE | Fail | registration can't be forwarded
86 # | | Remote | AE, C-AE-ID | No | CSE | Fail | registration can't be forwarded
87 # | | Remote | AE, C-AE-ID | Yes | - | Fail | request with originator set to C-AE-ID must not be forwarded
88 # | | Remote | AE, C-AE-ID | Yes | AE | Fail | registration can't be forwarded
89 # | | Remote | AE, C-AE-ID | Yes | another AE | Fail | registration can't be forwarded
90 # | | Remote | AE, C-AE-ID | Yes | CSE | Fail | registration can't be forwarded
91 # | | Remote | AE | No | - | Fail | originator not registered
92 # | | Remote | AE | No | AE | Fail | registration can't be forwarded
93 # | | Remote | AE | No | another AE | Fail | registration can't be forwarded
94 # | | Remote | AE | No | CSE | Fail | registration can't be forwarded
95 # | | Remote | AE | Yes | - | Pass |
96 # | | Remote | AE | Yes | AE | Fail | registration can't be forwarded
97 # | | Remote | AE | Yes | another AE | Fail | registration can't be forwarded
98 # | | Remote | AE | Yes | CSE | Fail | registration can't be forwarded
99 # | | Remote | CSE | No | - | Fail | originator not registered
100 # | | Remote | CSE | No | AE | Fail | registration can't be forwarded
101 # | | Remote | CSE | No | CSE | Fail | registration can't be forwarded
102 # | | Remote | CSE | No | another CSE | Fail | registration can't be forwarded
103 # | | Remote | CSE | Yes | - | Pass |
104 # | | Remote | CSE | Yes | AE | Fail | registration can't be forwarded
105 # | | Remote | CSE | Yes | CSE | Fail | registration can't be forwarded
106 # | | Remote | CSE | Yes | another CSE | Fail | registration can't be forwarded