Skip to content

Commit fcc2bb7

Browse files
committed
update formatting
Signed-off-by: reubenmiller <[email protected]>
1 parent c313123 commit fcc2bb7

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

tests/RobotFramework/tests/pkcs11/private_key_storage.robot

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,24 +206,47 @@ tedge cert create-key-hsm should ask where to create keypair if multiple tokens
206206

207207
# unset key_uri so there there's no hint where to generate the keypair
208208
Execute Command cmd=tedge config unset device.key_uri
209-
${stderr}= Execute Command cmd=tedge cert create-key-hsm --type ecdsa --label my-key strip=True stdout=False stderr=True exp_exit_code=1
209+
${stderr}= Execute Command
210+
... cmd=tedge cert create-key-hsm --type ecdsa --label my-key
211+
... strip=True
212+
... stdout=False
213+
... stderr=True
214+
... exp_exit_code=1
210215
Should Contain ${stderr} No token URL was provided for this operation; the available tokens are:
211216
Should Contain ${stderr} token=create-key-token1
212217
Should Contain ${stderr} token=create-key-token2
213218

214219
tedge cert create-key-hsm can set chosen id and returns error if object with this id already exists
215-
${output}= Execute Command cmd=tedge cert create-key-hsm --type ecdsa --label my-key --id 010203 "pkcs11:token=tedge" strip=True stdout=False stderr=True
220+
${output}= Execute Command
221+
... cmd=tedge cert create-key-hsm --type ecdsa --label my-key --id 010203 "pkcs11:token=tedge"
222+
... strip=True
223+
... stdout=False
224+
... stderr=True
216225
Should Contain ${output} id=%01%02%03
217226

218-
${output}= Execute Command cmd=tedge cert create-key-hsm --type ecdsa --label my-key --id 010203 "pkcs11:token=tedge" strip=True stdout=False stderr=True exp_exit_code=!0
227+
${output}= Execute Command
228+
... cmd=tedge cert create-key-hsm --type ecdsa --label my-key --id 010203 "pkcs11:token=tedge"
229+
... strip=True
230+
... stdout=False
231+
... stderr=True
232+
... exp_exit_code=!0
219233
Should Contain ${output} Object with this id already exists on the token
220234

221235
tedge cert create-key-hsm can set pin per request
222-
${output}= Execute Command cmd=tedge cert create-key-hsm --label my-key --pin 000000 "pkcs11:token=tedge" strip=True stdout=False stderr=True exp_exit_code=!0
236+
${output}= Execute Command
237+
... cmd=tedge cert create-key-hsm --label my-key --pin 000000 "pkcs11:token=tedge"
238+
... strip=True
239+
... stdout=False
240+
... stderr=True
241+
... exp_exit_code=!0
223242
Should Contain ${output} The specified PIN is incorrect
224243

225244
tedge cert create-key-hsm can save public key to file
226-
${output}= Execute Command cmd=tedge cert create-key-hsm --label my-key --outfile-pubkey pubkey.pem "pkcs11:token=tedge" strip=True stdout=False stderr=True
245+
${output}= Execute Command
246+
... cmd=tedge cert create-key-hsm --label my-key --outfile-pubkey pubkey.pem "pkcs11:token=tedge"
247+
... strip=True
248+
... stdout=False
249+
... stderr=True
227250
${pubkey}= Execute Command cat pubkey.pem strip=True
228251
Should Contain ${output} ${pubkey}
229252

0 commit comments

Comments
 (0)