Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ITS - Intelligent Transport Systems
ITS
Commits
6e49e225
Commit
6e49e225
authored
Nov 02, 2018
by
Yann Garcia
Browse files
Bug fixed in TestCodec_Pki
parent
46566577
Changes
1
Hide whitespace changes
Inline
Side-by-side
ttcn/AtsPki/ItsPki_TestCases.ttcn
View file @
6e49e225
...
...
@@ -96,7 +96,7 @@ module ItsPki_TestCases {
* @see ETSI TS ITS-00546v006 TP 2
* @reference ETSI TS 102 941 [2], clause 6.1.3
*/
testcase
TC_SEC_PKI_ITSS_ENR_BV_01
()
runs
on
ItsMtc
/*
system ItsPkiItssSystem
*/
{
testcase
TC_SEC_PKI_ITSS_ENR_BV_01
()
runs
on
ItsMtc
system
ItsPkiItssSystem
{
// Local variables
var
Oct32
v_private_key
;
var
Oct32
v_publicKeyX
;
...
...
@@ -175,11 +175,38 @@ module ItsPki_TestCases {
// Test Body
tc_ac
.
start
;
alt
{
[]
pkiPort
.
receive
(
mw_innerEcRequest
)
{
[
PICS_SEC_NIST_P256
and
p_compressedMode
==
0
]
pkiPort
.
receive
(
mw_innerEcRequest
(
PICS_ITS_S_CANONICAL_ID
,
mw_publicKeys
(
mw_publicVerificationKey_ecdsaNistP256
(
mw_eccP256CurvePoint_compressed_y_0
(
p_publicKeyCompressed
)
),
omit
)
)
)
{
log
(
"*** "
&
testcasename
()
&
": INFO: InnerEcRequest received ***"
);
// TODO Send InnerEcResponse;
log
(
"*** "
&
testcasename
()
&
": PASS: Message triggered ***"
);
f_selfOrClientSyncAndVerdictTestBody
(
c_tbDone
,
e_success
);
}
[
PICS_SEC_NIST_P256
and
p_compressedMode
==
1
]
pkiPort
.
receive
(
mw_innerEcRequest
(
PICS_ITS_S_CANONICAL_ID
,
mw_publicKeys
(
mw_publicVerificationKey_ecdsaNistP256
(
mw_eccP256CurvePoint_compressed_y_1
(
p_publicKeyCompressed
)
),
omit
)
)
)
{
log
(
"*** "
&
testcasename
()
&
": INFO: InnerEcRequest received ***"
);
// TODO Check message content
// TODO Send InnerEcResponse;
log
(
"*** "
&
testcasename
()
&
": PASS: Message triggered ***"
);
f_selfOrClientSyncAndVerdictTestBody
(
c_tbDone
,
e_success
);
...
...
@@ -227,7 +254,7 @@ module ItsPki_TestCases {
* @see ETSI TS ITS-00546v006 TP 3
* @reference ETSI TS 102 941, clause 6.1.3
*/
testcase
TC_SEC_PKI_ITSS_ENR_BV_02
()
runs
on
ItsMtc
/*
system ItsPkiItssSystem
*/
{
testcase
TC_SEC_PKI_ITSS_ENR_BV_02
()
runs
on
ItsMtc
system
ItsPkiItssSystem
{
// Local variables
var
Oct32
v_private_key
;
var
Oct32
v_publicKeyX
;
...
...
@@ -268,7 +295,7 @@ module ItsPki_TestCases {
in
octetstring
p_private_key
,
in
octetstring
p_publicKeyCompressed
,
in
integer
p_compressedMode
)
runs
on
ItsPkiItss
/*
system ItsPkiItssSystem
*/
{
)
runs
on
ItsPkiItss
system
ItsPkiItssSystem
{
// Local variables
// Test component configuration
...
...
@@ -292,7 +319,7 @@ module ItsPki_TestCases {
in
octetstring
p_private_key
,
in
octetstring
p_publicKeyCompressed
,
in
integer
p_compressedMode
)
runs
on
ItsPkiHttp
/*
system ItsPkiHttpSystem
*/
{
)
runs
on
ItsPkiHttp
system
ItsPkiHttpSystem
{
// Local variable
var
HttpMessage
v_response
;
var
EtsiTs102941Data
v_etsi_ts_102941_data
;
...
...
@@ -625,7 +652,7 @@ module ItsPki_TestCases {
}
// Test component configuration
LibItsPki_Functions
.
f_cfUp
();
LibItsPki_Functions
.
f_cfUp
(
PICS_TS_CERTIFICATE_ID
,
PICS_IUT_EA_CERTIFICATE_ID
);
// Test adapter configuration
...
...
@@ -635,7 +662,7 @@ module ItsPki_TestCases {
f_selfOrClientSyncAndVerdictPreamble
(
c_prDone
,
e_error
);
stop
;
}
f_sendAcPkiPrimitive
(
PICS_TS_
EA_
CERTIFICATE_ID
,
v_private_key
,
v_publicKeyCompressed
,
v_compressedMode
);
f_sendAcPkiPrimitive
(
PICS_TS_CERTIFICATE_ID
,
v_private_key
,
v_publicKeyCompressed
,
v_compressedMode
);
f_selfOrClientSyncAndVerdictPreamble
(
c_prDone
,
e_success
);
// Test Body
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment