Compare Revisions

The credentials to download the source code are:
 Username: svnusers
 Password: svnusers

Ignore whitespace Rev 2206 → Rev 2207

/branches/STF484_VALIDATION/unittests/codec/ttcn/test_LibItsCam_TypesAndValues.ttcn
34,17 → 34,17
generationDeltaTime := p_generationTime,
camParameters := {
basicContainer := {
stationType := c_stationType_passengerCar,
stationType := StationType_passengerCar_,
referencePosition := {
latitude := f_integer2Latitude(f_getTsLatitude()),
longitude := f_integer2Longitude(f_getTsLongitude()),
positionConfidenceEllipse := {
semiMajorConfidence := c_semiAxisLengthOneCentimeter,
semiMinorConfidence := c_semiAxisLengthOneCentimeter,
semiMajorOrientation := c_headingValue_wgs84North
semiMajorConfidence := SemiAxisLength_oneCentimeter_,
semiMinorConfidence := SemiAxisLength_oneCentimeter_,
semiMajorOrientation := HeadingValue_wgs84North_
},
altitude := {
altitudeValue := c_altitudeValue_seaLevel,
altitudeValue := AltitudeValue_referenceEllipsoidSurface_,
altitudeConfidence := unavailable
}
}
52,7 → 52,7
highFrequencyContainer := {
basicVehicleContainerHighFrequency := {
heading := {
headingValue := c_headingValue_wgs84North, //0
headingValue := HeadingValue_wgs84North_, //0
headingConfidence := 10
},
speed := {
66,16 → 66,16
},
vehicleWidth := 21,
longitudinalAcceleration := {
longitudinalAccelerationValue := c_longitudinalAccelerationValue_unavailable,
longitudinalAccelerationConfidence := c_accelerationConfidence_unavailable
longitudinalAccelerationValue := LongitudinalAccelerationValue_unavailable_,
longitudinalAccelerationConfidence := AccelerationConfidence_unavailable_
},
curvature := {
curvatureValue := c_curvatureValue_straight,
curvatureValue := CurvatureValue_straight_,
curvatureConfidence := unavailable
},
curvatureCalculationMode := yawRateUsed,
yawRate := {
yawRateValue := c_yawRateValue_straight,
yawRateValue := YawRateValue_straight_,
yawRateConfidence := unavailable
},
accelerationControl := omit,
/branches/STF484_VALIDATION/unittests/codec/ttcn/test_LibItsDenm_TypesAndValues.ttcn
22,7 → 22,7
group testDenmPrimitiveMessages {
testcase tc_DenmReq() runs on TCType system TCType {
var template (value) SituationContainer v_situation := m_situation(c_causeVehicleBreakdown, c_subCauseCode_Unavailable);
var template (value) SituationContainer v_situation := m_situation(CauseCodeType_vehicleBreakdown_, VehicleBreakdownSubCauseCode_unavailable_);
test_PDU<DenmReq>(
m_denmReq(
57,7 → 57,7
}
testcase tc_eventSituation() runs on TCType system TCType {
var template (value) SituationContainer v_situation := m_situation(c_causeVehicleBreakdown, c_subCauseCode_Unavailable);
var template (value) SituationContainer v_situation := m_situation(CauseCodeType_vehicleBreakdown_, VehicleBreakdownSubCauseCode_unavailable_);
test_PDU<UtDenmTrigger>(
m_utTriggerEvent(
71,8 → 71,8
test_PDU<UtDenmTrigger>(
m_utTriggerEvent(
m_situation(
c_causeVehicleBreakdown,
c_subCauseCode_Unavailable
CauseCodeType_vehicleBreakdown_,
VehicleBreakdownSubCauseCode_unavailable_
)
),
false
84,12 → 84,12
const ValidityDuration c_validityDuration := c_duration_10sec; // DURATION_2
const ValidityDuration c_repetitionDuration := c_validityDuration; // DURATION_1
// Local variables
var template (value) SituationContainer v_situation := m_situation ( c_causeVehicleBreakdown, c_subCauseCode_Unavailable );
var template (value) SituationContainer v_situation := m_situation ( CauseCodeType_vehicleBreakdown_, VehicleBreakdownSubCauseCode_unavailable_ );
test_PDU<UtDenmTrigger>(
m_utTriggerEvent(
m_situation(
c_causeVehicleBreakdown,
c_subCauseCode_Unavailable
CauseCodeType_vehicleBreakdown_,
VehicleBreakdownSubCauseCode_unavailable_
),
c_validityDuration,
c_repetitionDuration,
103,7 → 103,7
test_PDU<UtDenmUpdate>(
m_utUpdateEvent(
m_tsActionId(10),
m_situation(c_causeVehicleBreakdown, c_subCauseCode_Unavailable)
m_situation(CauseCodeType_vehicleBreakdown_, VehicleBreakdownSubCauseCode_unavailable_)
),
false
);
/branches/STF484_VALIDATION/unittests/codec/ttcn/test_LibItsGeoNetworking_TypesAndValues.ttcn
204,17 → 204,17
generationDeltaTime := p_generationTime,
camParameters := {
basicContainer := {
stationType := c_stationType_passengerCar,
stationType := StationType_passengerCar_,
referencePosition := {
latitude := f_integer2Latitude(f_getTsLatitude()),
longitude := f_integer2Longitude(f_getTsLongitude()),
positionConfidenceEllipse := {
semiMajorConfidence := c_semiAxisLengthOneCentimeter,
semiMinorConfidence := c_semiAxisLengthOneCentimeter,
semiMajorOrientation := c_headingValue_wgs84North
semiMajorConfidence := SemiAxisLength_oneCentimeter_,
semiMinorConfidence := SemiAxisLength_oneCentimeter_,
semiMajorOrientation := HeadingValue_wgs84North_
},
altitude := {
altitudeValue := c_altitudeValue_seaLevel,
altitudeValue := AltitudeValue_referenceEllipsoidSurface_,
altitudeConfidence := unavailable
}
}
222,7 → 222,7
highFrequencyContainer := {
basicVehicleContainerHighFrequency := {
heading := {
headingValue := c_headingValue_wgs84North, //0
headingValue := HeadingValue_wgs84North_, //0
headingConfidence := 10
},
speed := {
236,16 → 236,16
},
vehicleWidth := 21,
longitudinalAcceleration := {
longitudinalAccelerationValue := c_longitudinalAccelerationValue_unavailable,
longitudinalAccelerationConfidence := c_accelerationConfidence_unavailable
longitudinalAccelerationValue := LongitudinalAccelerationValue_unavailable_,
longitudinalAccelerationConfidence := AccelerationConfidence_unavailable_
},
curvature := {
curvatureValue := c_curvatureValue_straight,
curvatureValue := CurvatureValue_straight_,
curvatureConfidence := unavailable
},
curvatureCalculationMode := yawRateUsed,
yawRate := {
yawRateValue := c_yawRateValue_straight,
yawRateValue := YawRateValue_straight_,
yawRateConfidence := unavailable
},
accelerationControl := omit,
395,7 → 395,7
}
// Setup certificates memory cache
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
520,7 → 520,7
var template (omit) charstring p_certificateName := cc_taCert_EC;
var boolean p_addMissingHeaders := true;
f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY);
f_loadCertificates(PX_IUT_SEC_CONFIG_NAME);
// Build signed SecuredMessage
v_gnNonSecuredPacket := m_geoNwShbPacket(
607,7 → 607,7
stop;
}
f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY);
f_loadCertificates(PX_IUT_SEC_CONFIG_NAME);
// Build signed SecuredMessage
v_gnPayload := bit2oct( // Create GN payload
712,7 → 712,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
791,7 → 791,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
870,7 → 870,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
993,7 → 993,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
1107,7 → 1107,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
1251,7 → 1251,7
* @verdict Pass on success, Fail otherwise
*/
testcase tc_GeoNetReq_NwShbPacketWithBtpPayloadDenm() runs on TCType system TCType {
var template (value) SituationContainer v_situation := m_situation(c_causeVehicleBreakdown, c_subCauseCode_Unavailable);
var template (value) SituationContainer v_situation := m_situation(CauseCodeType_vehicleBreakdown_, VehicleBreakdownSubCauseCode_unavailable_);
var GeoNetworkingReq v_gnReq;
var octetstring v_buffer := '01002B0A20508000003C0A00BC21A4FEDECABEEF0001E240000012F8000002A3803726940000000007D2000001010001B207C70000D90380000A0843ABBBE28210EAF534FA46CAE6F7E4630001001000186A000009600C05B00000DFFFF7FFFD8CE40400FFFFFFFFFFFF'O;
1311,7 → 1311,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
1392,7 → 1392,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
1486,7 → 1486,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
1588,7 → 1588,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
1693,7 → 1693,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
1802,7 → 1802,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
1897,7 → 1897,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
1979,7 → 1979,7
* @verdict Pass on success, Fail otherwise
*/
testcase tc_GeoNetReq_SecuredDigestNwShbPacketWithBtpPayloadDenm() runs on TCType system TCType {
var template (value) SituationContainer v_situation := m_situation(c_causeVehicleBreakdown, c_subCauseCode_Unavailable);
var template (value) SituationContainer v_situation := m_situation(CauseCodeType_vehicleBreakdown_, VehicleBreakdownSubCauseCode_unavailable_);
var GeoNetworkingReq v_gnReq;
var GnNonSecuredPacket v_gnNonSecuredPacket;
var octetstring v_gnPayload, v_encMsg;
1993,7 → 1993,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
2144,7 → 2144,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
2267,7 → 2267,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
2383,7 → 2383,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
2500,7 → 2500,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
2617,7 → 2617,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
2734,7 → 2734,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
2852,7 → 2852,7
var GeoNetworkingReq v_gnReq;
var GnNonSecuredPacket v_gnNonSecuredPacket;
var GeoNetworkingPacket v_geoNetworkingPacket;
var template (value) SituationContainer v_situation := m_situation(c_causeVehicleBreakdown, c_subCauseCode_Unavailable);
var template (value) SituationContainer v_situation := m_situation(CauseCodeType_vehicleBreakdown_, VehicleBreakdownSubCauseCode_unavailable_);
var octetstring v_buffer := '01002B0A20418000003C0A000D800000A832A40102030405000011E90000007E0000007B002D007D00048D8800007FE904D217BE23A3000007D2000001010001B207C70000D90380000A0843F2F2828210FCBCACFA46CAE6F7E4630001001000186A000009600C05B00000DFFFF7FFFD8CE40400FFFFFFFFFFFF'O;
if (PX_GN_UPPER_LAYER != e_btpB) {
2916,7 → 2916,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
2999,7 → 2999,7
var GnNonSecuredPacket v_gnNonSecuredPacket;
var GeoNetworkingPacket v_geoNetworkingPacket;
var octetstring v_gnPayload, v_encMsg;
var template (value) SituationContainer v_situation := m_situation(c_causeVehicleBreakdown, c_subCauseCode_Unavailable);
var template (value) SituationContainer v_situation := m_situation(CauseCodeType_vehicleBreakdown_, VehicleBreakdownSubCauseCode_unavailable_);
var octetstring v_buffer := '01002B0A2041800000390A000D800000A832A40102030405000011E90000007E0000007B002D007D00048D8800007FE904D2162E23A300000000000001010001B207C0000D903800000000006072000000188593E91B2B9BDF918BC00400400000C35000C16C0010E0000800018CE00000FFFFFFFFFFFF'O;
var template (value) ToBeSignedSecuredMessage v_toBeSignedSecuredMessage;
var template (value) SecuredMessage v_securedMessageBeacon;
3010,7 → 3010,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
3108,7 → 3108,7
var GnNonSecuredPacket v_gnNonSecuredPacket;
var GeoNetworkingPacket v_geoNetworkingPacket;
var octetstring v_gnPayload, v_encMsg;
var template (value) SituationContainer v_situation := m_situation(c_causeVehicleBreakdown, c_subCauseCode_Unavailable);
var template (value) SituationContainer v_situation := m_situation(CauseCodeType_vehicleBreakdown_, VehicleBreakdownSubCauseCode_unavailable_);
var template (value) ToBeSignedSecuredMessage v_toBeSignedSecuredMessage;
var template (value) SecuredMessage v_securedMessageBeacon;
3118,7 → 3118,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
3245,7 → 3245,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
3317,7 → 3317,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
3383,7 → 3383,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
3412,7 → 3412,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
3441,7 → 3441,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
3477,7 → 3477,7
}
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
3513,7 → 3513,7
testcase tc_UtSecGnInitialize() runs on TCType system TCType {
// Load certificates & keys
if (f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) == false) {
if (f_loadCertificates(PX_IUT_SEC_CONFIG_NAME) == false) {
setverdict(fail);
stop;
}
/branches/STF484_VALIDATION/unittests/codec/ttcn/test_LibItsSecurity_TypesAndValues.ttcn3
22,7 → 22,7
*/
testcase tc_acEnableSecurity() runs on TCType system TCType {
f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY);
f_loadCertificates(PX_IUT_SEC_CONFIG_NAME);
vc_location := {
22345,
54321,
2103,7 → 2103,7
testcase tc_profileCertificates_01() runs on TCType system TCType {
var boolean v_result;
f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY);
f_loadCertificates(PX_IUT_SEC_CONFIG_NAME);
log (vc_aaCertificate);
log (vc_atCertificate);
2132,7 → 2132,7
var HashedId8 v_hashedId8;
var boolean v_result;
f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY);
f_loadCertificates(PX_IUT_SEC_CONFIG_NAME);
if(f_readCertificate(cc_iutCert_A, v_atCertificate)){
f_readCertificate(oct2str(v_atCertificate.signer_info.signerInfo.digest), v_aaCertificate);
2194,7 → 2194,7
var HashedId8 v_hashedId8;
var boolean v_result;
f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY);
f_loadCertificates(PX_IUT_SEC_CONFIG_NAME);
if(f_readCertificate(cc_iutCert_A, v_atCertificate)){
f_readCertificate(oct2str(v_atCertificate.signer_info.signerInfo.digest), v_aaCertificate);