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
8e68875c
Commit
8e68875c
authored
Oct 17, 2018
by
garciay
Browse files
STF545: Validate first test case
parent
1dc4458e
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
etc/AtsPki/AtsPki.cfg
View file @
8e68875c
...
...
@@ -114,8 +114,8 @@ system.utPort.params := "UT_CAM/UDP(dst_ip=172.23.0.1,dst_port=8000)"
[EXECUTE]
#ItsPki_TestCases.TC_SEC_PKI_ITSS_ENR_BV_01
#
ItsPki_TestCases.TC_SEC_PKI_SND_EA_BV_01
ItsPki_TestCases.TC_SEC_PKI_SND_EA_BV_02
ItsPki_TestCases.TC_SEC_PKI_SND_EA_BV_01
#
ItsPki_TestCases.TC_SEC_PKI_SND_EA_BV_02
[MAIN_CONTROLLER]
# The options herein control the behavior of MC.
...
...
etc/TestCodec/TestCodec.cfg
View file @
8e68875c
...
...
@@ -341,9 +341,9 @@ system.pkiPort.params := "PKI/HTTP(device_mode=1,uri=/its/inner_ec_request,host=
# Pki
#TestCodec_Pki.tc_inner_ec_request_1
#TestCodec_Pki.tc_inner_ec_request_2
#
TestCodec_Pki.tc_inner_ec_request_3
TestCodec_Pki.tc_inner_ec_request_3
#TestCodec_Pki.tc_inner_ec_response_1
TestCodec_Pki.tc_inner_ec_response_2
#
TestCodec_Pki.tc_inner_ec_response_2
[MAIN_CONTROLLER]
# The options herein control the behavior of MC.
...
...
ttcn/AtsPki/ItsPki_TestCases.ttcn
View file @
8e68875c
...
...
@@ -55,12 +55,13 @@ module ItsPki_TestCases {
import
from
LibItsHttp_BinaryTemplates
all
;
import
from
LibItsHttp_Functions
all
;
import
from
LibItsHttp_TestSystem
all
;
// LibItsPki
import
from
LibItsPki_Templates
all
;
import
from
LibItsPki_Functions
all
;
import
from
LibItsPki_TestSystem
all
;
import
from
LibItsPki_Pics
all
;
// AtsPki
import
from
ItsPki_Functions
all
;
...
...
@@ -98,6 +99,13 @@ module ItsPki_TestCases {
var
ItsPkiItss
v_itss
;
var
ItsPki
v_ea
;
// Test control
if
(
not
PICS_IUT_ITS_S_ROLE
)
{
log
(
"*** "
&
testcasename
()
&
": PICS_IUT_ITS_S_ROLE required for executing the TC ***"
);
setverdict
(
inconc
);
stop
;
}
// Test component configuration
//f_cfUp_itss();
...
...
@@ -288,21 +296,26 @@ module ItsPki_TestCases {
var
Oct32
v_publicKeyCompressed
;
var
integer
v_compressedMode
;
var
InnerEcRequest
v_inner_ec_request
;
// Test control
if
(
not
PICS_IUT_EA_ROLE
)
{
log
(
"*** "
&
testcasename
()
&
": PICS_IUT_EA_ROLE required for executing the TC ***"
);
setverdict
(
inconc
);
stop
;
}
// Test component configuration
LibItsPki_Functions
.
f_cfUp
();
// Test adapter configuration
// Preamble
// Generate InnerEcRequest
if
(
f_generate_inner_ec_request
(
v_private_key
,
v_publicKeyX
,
v_publicKeyY
,
v_publicKeyCompressed
,
v_compressedMode
,
v_inner_ec_request
)
==
false
)
{
log
(
"*** "
&
testcasename
()
&
": FAIL: Failed to setup InnerEcRequest message ***"
)
f_selfOrClientSyncAndVerdictPreamble
(
c_prDone
,
e_error
);
stop
;
}
f_sendAcPkiPrimitive
(
v_private_key
,
v_publicKeyCompressed
,
v_compressedMode
);
f_selfOrClientSyncAndVerdictPreamble
(
c_prDone
,
e_success
);
// Test Body
...
...
@@ -311,14 +324,14 @@ module ItsPki_TestCases {
alt
{
[]
pkiPort
.
receive
(
mw_innerEcResponse_ok
)
{
)
{
tc_ac
.
stop
;
log
(
"*** "
&
testcasename
()
&
": PASS: InnerEcReponse received ***"
);
f_selfOrClientSyncAndVerdictTestBody
(
c_tbDone
,
e_success
);
}
[]
pkiPort
.
receive
{
// FIXME Use altstep
tc_ac
.
stop
;
log
(
"*** "
&
testcasename
()
&
": FAIL:
HTTP error
***"
);
log
(
"*** "
&
testcasename
()
&
": FAIL:
Unexpected message received
***"
);
f_selfOrClientSyncAndVerdictTestBody
(
c_tbDone
,
e_error
);
}
[]
tc_ac
.
timeout
{
...
...
@@ -381,6 +394,11 @@ module ItsPki_TestCases {
var
HeaderLines
v_headers
;
// Test control
if
(
not
PICS_IUT_EA_ROLE
)
{
log
(
"*** "
&
testcasename
()
&
": PICS_IUT_EA_ROLE required for executing the TC ***"
);
setverdict
(
inconc
);
stop
;
}
// Test component configuration
f_cfHttpUp
();
// Default value: CERT_TS_A_EA
...
...
LibIts
@
2748f3ac
Compare
f18d6e12
...
2748f3ac
Subproject commit
f18d6e1245310ecab9e33e80c741d40694590ff
8
Subproject commit
2748f3acc66bbd563cb86df8d62b1bfab56e72d
8
validation/TC_SEC_PKI_SND_EA_BV_01.log
0 → 100644
View file @
8e68875c
This diff is collapsed.
Click to expand it.
validation/TC_SEC_PKI_SND_EA_BV_01.pcapng
0 → 100644
View file @
8e68875c
File added
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