mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 12:00:56 +01:00
added pcptext_infile(), used with pcp1 -t -I $file, which determines filetype
by content. minor debugging changes.
This commit is contained in:
@@ -209,6 +209,30 @@ dxmorg@florida.cops.gov
|
||||
</test>
|
||||
</test>
|
||||
|
||||
#
|
||||
# check usage of unencrypted secret key
|
||||
<test check-crypto-unencrypted-secret>
|
||||
cmd = (echo dau; echo foo; echo yes) | $pcp -V vcl -k -x ""
|
||||
expect = /added to/
|
||||
</test>
|
||||
|
||||
<test check-crypto-unencrypted-secret-yaml>
|
||||
cmd = $pcp -V vcl -y
|
||||
expect = /encrypted: no/
|
||||
</test>
|
||||
|
||||
<test check-crypto-unencrypted-secret-message>
|
||||
prepare = $pcp -V vcl -I key-bobby-pub -P
|
||||
cmd = echo HALLO | $pcp -V vcl -e -O testencrypted -i ${idbobby}
|
||||
expect = /success/
|
||||
</test>
|
||||
|
||||
<test check-crypto-unencrypted-secret-read>
|
||||
prepare = $pcp -V vcl -p | $pcp -V vb -P
|
||||
cmd = $pcp -V vb -d -I testencrypted -x b
|
||||
expect = /HALLO/
|
||||
</test>
|
||||
|
||||
#
|
||||
# signature test
|
||||
<test check-sign-to-bobby>
|
||||
|
||||
Reference in New Issue
Block a user