ItsPki_TestControl.ttcn 1.89 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
module ItsPki_TestControl {
  
  // LibItsPki
  import from LibItsPki_Pics all;
  
  // AtsPki
  import from ItsPki_TestCases all;
  
  control {
    
    if (PICS_IUT_ITS_S_ROLE) {
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
      if (PICS_SECPKI_ENROLMENT) {
        execute(TC_SECPKI_ITSS_ENR_01_BV());
        execute(TC_SECPKI_ITSS_ENR_02_BV());
        if (PICS_SECPKI_REENROLMENT) {
          execute(TC_SECPKI_ITSS_ENR_03_BV());
          execute(TC_SECPKI_ITSS_ENR_06_BV());
          execute(TC_SECPKI_ITSS_ENR_12_BV());
        }
        if (PICS_SECPKI_CRL) {
          execute(TC_SECPKI_ITSS_ENR_04_BV())
          }
        execute(TC_SECPKI_ITSS_ENR_05_BV());
        execute(TC_SECPKI_ITSS_ENR_07_BV());
        execute(TC_SECPKI_ITSS_ENR_08_BV());
        execute(TC_SECPKI_ITSS_ENR_09_BV());
        execute(TC_SECPKI_ITSS_ENR_10_BV());
        execute(TC_SECPKI_ITSS_ENR_11_BV());
        
        execute(TC_SECPKI_ITSS_ENR_RECV_01_BV());
        execute(TC_SECPKI_ITSS_ENR_RECV_02_BV());
      }

      if (PICS_SECPKI_AUTHORIZATION) {
        // TODO
      }
37
38
    }
    
Yann Garcia's avatar
Yann Garcia committed
39
    if (PICS_IUT_EA_ROLE) {
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
      execute(TC_SECPKI_EA_ENR_RCV_01_BV());
      execute(TC_SECPKI_EA_ENR_RCV_02_BI());
      
      execute(TC_SECPKI_EA_ENR_01_BV());
      execute(TC_SECPKI_EA_ENR_02_BV());
      execute(TC_SECPKI_EA_ENR_03_BV());
      execute(TC_SECPKI_EA_ENR_04_BV());
      execute(TC_SECPKI_EA_ENR_05_BV());
      execute(TC_SECPKI_EA_ENR_06_BV());
      execute(TC_SECPKI_EA_ENR_07_BV());
      execute(TC_SECPKI_EA_ENR_08_BV());
      execute(TC_SECPKI_EA_ENR_09_BV());
      execute(TC_SECPKI_EA_ENR_10_BV());
      execute(TC_SECPKI_EA_ENR_11_BV());
      execute(TC_SECPKI_EA_ENR_12_BV());

Yann Garcia's avatar
Yann Garcia committed
56
57
      execute(TC_SECPKI_EA_AUTHVAL_RCV_01_BV());
      execute(TC_SECPKI_EA_AUTHVAL_RCV_02_BI());
58
   }
Yann Garcia's avatar
Yann Garcia committed
59
60
   
   if (PICS_IUT_AA_ROLE) {
Yann Garcia's avatar
Yann Garcia committed
61
62
     execute(TC_SECPKI_AA_AUTH_RCV_01_BV());
   }
63
64
65
66
    
  } // End of 'control' statement
  
}  // End of module module ItsPki_TestControl