summaryrefslogtreecommitdiff
path: root/other/data/system/hsms_data.yaml
blob: 59f1a4ca6159d4d7eba7bf5b4b61b90778a1572e (plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
#hsms正向用例
hsms_data:
#创建HSM
   -         
      -
         operatingType: create
         Name: test-1111
         HSMServerType:
            -
               CERTEXHSM: click
         ServerIP: 192.168.50.12
         PartitionPassword: '111111'
         DataCenter:
            -
                GROUP 华严: click
         searchCriteria: Name
#创建HSM并修改
   -         
      -
         operatingType: create
         Name: test-1111
         HSMServerType:
            -
               CERTEXHSM: click
         ServerIP: 192.168.50.12
         PartitionPassword: '111111'
         DataCenter:
            -
                GROUP 华严: click
         searchCriteria: Name
      -
         operatingType: edit
         Name: test-2222
         HSMServerType:
            -
               CERTEXHSM: click
         ServerIP: 192.168.50.33
         PartitionPassword: '222222'
         searchCriteria: Name
#4位Name
   -         
      -
         operatingType: create
         Name: test
         HSMServerType:
            -
               CERTEXHSM: click
         ServerIP: 192.168.50.12
         PartitionPassword: '111111'
         DataCenter:
            -
                GROUP 华严: click
         searchCriteria: Name
#128位Name
   -         
      -
         operatingType: create
         Name: test-4444test-4444test-4444test-4444test-4444test-4444test-4444test-4444test-4444test-4444test-4444test-4444test-4444test-4444te
         HSMServerType:
            -
               CERTEXHSM: click
         ServerIP: 192.168.50.9
         PartitionPassword: '111111'
         DataCenter:
            -
               GROUP 信息港: click
         searchCriteria: Name
#特殊字符Name
   -         
      -
         operatingType: create
         Name: '1!@#$%^&*():{}|?><,./中文русскийEnglish'
         HSMServerType:
            -
               CERTEXHSM: click
         ServerIP: 192.168.50.12
         PartitionPassword: '111111'
         DataCenter:
            -
                GROUP 华严: click
         searchCriteria: Name
#ipv4
   -         
      -
         operatingType: create
         Name: test-1111
         HSMServerType:
            -
               CERTEXHSM: click
         ServerIP: 192.168.50.12
         PartitionPassword: '111111'
         DataCenter:
            -
                GROUP 华严: click
         searchCriteria: Name
#ipv6
   -         
      -
         operatingType: create
         Name: test-2222
         HSMServerType:
            -
               CERTEXHSM: click
         ServerIP: fc00::2:103
         PartitionPassword: '111111'
         DataCenter:
            -
               GROUP 华严1楼: click
         searchCriteria: Name
#PartitionPassword含字母、数字、下划线、减号、英文点(.)&16位密码
   -         
      -
         operatingType: create
         Name: test-3333
         HSMServerType:
            -
               CERTEXHSM: click
         ServerIP: 192.168.50.9
         PartitionPassword: 'test3333_1-2.311'
         DataCenter:
            -
               GROUP 香山: click
         searchCriteria: Name

#hsms反向用例
hsms_negative_data:
#Name少于4位
   -         
      -
         operatingType: create
         Name: 555
         HSMServerType:
            -
               CERTEXHSM: click
         ServerIP: fc00::2:103
         PartitionPassword: '111111'
         DataCenter:
            -
               GROUP 香山: click
         assertText: 
            - The length of the name is at most 128 characters and cannot be less than 4 characters
#不输入必要数据
   -         
      -
         operatingType: create
         assertText: 
            - The length of the name is at most 128 characters and cannot be less than 4 characters
            - Cannot be empty

#错误的IPv4格式
   -         
      -
         operatingType: create
         Name: Name
         HSMServerType:
            -
               CERTEXHSM: click
         ServerIP: 1.1.1.1.1
         PartitionPassword: '111111'
         DataCenter:
            -
               GROUP 马甸: click
         assertText: 
            - IP can only be IPv4 or IPv6
#错误的IPv6格式
   -         
      -
         operatingType: create
         Name: Name
         HSMServerType:
            -
               CERTEXHSM: click
         ServerIP: fc00::2:103::2
         PartitionPassword: '111111'
         DataCenter:
            -
               GROUP 马甸: click
         assertText: 
            - IP can only be IPv4 or IPv6
#密码含有非法字符
   -         
      -
         operatingType: create
         Name: Name
         HSMServerType:
            -
               CERTEXHSM: click
         ServerIP: fc00::2:103
         PartitionPassword: '<>{}()'
         DataCenter:
            -
               GROUP 马甸: click
         assertText: 
            - Only English letters, numbers, underscore _, minus sign -, English dot (.) and its minimum 6 bits, maximum 16 bits.