-
Miguel Angel Reina Ortega authored
Signed-off-by:
reinaortega <miguelangel.reinaortega@etsi.org>
Miguel Angel Reina Ortega authoredSigned-off-by:
reinaortega <miguelangel.reinaortega@etsi.org>
OneM2M_Pixits.ttcn 14.64 KiB
/**
* Copyright Notification
* No part of this document may be reproduced, in an electronic retrieval system or otherwise, except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* © 2016, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, TSDSI, TTA, TTC).
* All rights reserved.
*
* @author oneM2M/ETSI
* @desc Module containing Pixits for oneM2M
*
*/
module OneM2M_Pixits {
import from XSD all;
import from OneM2M_Types all;
import from OneM2M_TypesAndValues all;
group TestAdapterParameters {}
group IutParameters {
/**
* @desc IUT CSE IN role
*/
modulepar boolean PX_IN_CSE := true;
/**
* @desc IUT CSE MN role
*/
modulepar boolean PX_MN_CSE := false;
/**
* @desc IUT CSE ASN role
*/
modulepar boolean PX_ASN_CSE:= false;
/**
* @desc IUT Upper Tester interface support
*/
modulepar boolean PX_UT_IMPLEMENTED := true;
/**
* @desc IUT CSE Name
*/
modulepar XSD.ID PX_CSE_NAME := "cse-in";
/**
* @desc IUT CSE-ID with SP-relative-CSE-ID format (relative) according to TS-0001-7.2-1
*/
modulepar XSD.ID PX_CSE_ID := "/id-in";
/**
* @desc IUT CSE resource ID with Unstructured-CSE-relative-Resource-ID (relative) format according to TS-0001-7.2-1
*/
modulepar XSD.ID PX_CSE_RESOURCE_ID := "id-in";
/**
* @desc IUT M2M-SP-ID with M2M-SP-ID format (absolute) according to TS-0001-7.2-1 Unstructured-CSE-relative -Resource-ID
*/
modulepar XSD.ID PX_SP_ID := "//acme.example.com";
/**
* @desc AE-ID with privileges to CREATE at the IUT CSEBase with AE-ID-Stem format (relative) according to TS-0001-7.2-1
*/
modulepar XSD.ID PX_SUPER_AE_ID := "CAdmin";
/**
* @desc CSE-ID with privileges to CREATE at the IUT CSEBase with SP-relative-CSE-ID format (relative) according to TS-0001-7.2-1
*/
modulepar XSD.ID PX_SUPER_CSE_ID := "CAdmin";
/**
* @desc Allowed AE-IDs starting with C
*/
modulepar ListOfM2MID PX_ALLOWED_C_AE_IDS := {"C-AllowedAeId", "C-AllowedAeId2"};
/**
* @desc Not allowed AE-IDs starting with C
*/
modulepar XSD.IDREFS PX_NOT_ALLOWED_C_AE_IDS := {"C-NotAllowedAeId"};
/**
* @desc Allowed AE-IDs starting with S
*/
modulepar XSD.IDREFS PX_ALLOWED_S_AE_IDS := {"S-AllowedAeId"};
/**
* @desc Not allowed AE-IDs starting with S
*/
modulepar XSD.IDREFS PX_NOT_ALLOWED_S_AE_IDS := {"S-NotAllowedAeId"};
/**
* @desc Not allowed App-ID
*/
modulepar XSD.ID PX_NOT_ALLOWED_APP_ID := "NotAllowedAppId";
/**
* @desc Addressing method to use during test execution
*/
modulepar AddressingMethod PX_ADDRESSING_METHOD := e_hierarchical;
/**
* @desc Primitive scope to use during test execution
*/
modulepar PrimitiveScope PX_PRIMITIVE_SCOPE := e_cseRelative;
/**
* @desc Protocol binding to use during test execution
*/
modulepar charstring PX_PROTOCOL_BINDING_DAS := "HTTP";
/**
* @desc Namespace composed of "prefix" = "xml namespace" to use during test execution
*/
modulepar charstring PX_XML_NAMESPACE := "m2m=""http://www.onem2m.org/xml/protocols""";
/**
* @desc Character to indicate "all originators" for AccessControlOriginators element
*/
modulepar ListOfURIs PX_ACOR := {"all"};
/**
* @desc Time given for configuring IUT when required (i.e. when UT not implemented)
*/
modulepar float PX_TCONFIG_IUT := 10.0;
/**
* @desc Uniquely identifies a M2M Service Subscription within the M2M Service Provider Domain of the M2M Service Subscriber.
*/
modulepar XSD.ID PX_M2M_SUB_ID := "/subscription8459302";
/**
* @desc On the Mca and Mcc reference points: Uniquely identifies a M2M Service Subscriber within the M2M Service Provider Domain of the M2M Service Subscriber.
*/
modulepar XSD.ID PX_M2M_SS_ID := "";
/**
* @desc On the Mca and Mcc reference points: Uniquely identifies a M2M Service user within the M2M Service Provider Domain of the M2M Service Subscriber.
*/
modulepar XSD.ID PX_M2M_USER_ID := "/allowedM2MUserID";
modulepar XSD.ID PX_NOT_ALLOWED_M2M_USER_ID := "/NotAllowedM2MUserID";
/**
* @desc Release version of IUT to be used. Any available release backwards from actual ATS release till 2a
*/
modulepar ReleaseVersion PX_RELEASE_VERSION := "3";
modulepar ResourceTypeList_1 PX_SRT := {int1, int2, int3, int4};
group flexContainerContainerDefinitions {
/**
* @desc These contain the identifier reference (URI) to the <flexContainer> schema definition which is used by the CSE to validate the syntax of the <flexContainer> resource
*/
modulepar XSD.AnyURI PX_CND_GENERIC_INTERWORKING_SERVICE := "urn:m2m:CDT-gis-v2_21_0.xsd";
modulepar XSD.AnyURI PX_CND_GENERIC_INTERWORKING_OPERATION_INSTANCE := "urn:m2m:CDT-gio-v2_21_0.xsd";
}
}
group TesterParameters {
/**
* @desc Port numbering convention
*
* "3" = mca interface, "4" = mcc interface & CseSimu = "1", AeSimu = "0" & "3" = client, "4" server" & "2" = Primary/secondary AE/CSE components or "3" for DAS
*/
/**
* @desc Test System settings
*/
modulepar AeSimuComponentDesc PX_TS_AE1 := { // AE1 component settings
aeIdStem := "",
appId := "NMyApp1Id",
mcaPort := {
binding := {
httpBindingDesc := {
bindingProtocol := e_http,
bindingDesc := {
tsAddress := "127.0.0.1",
remotePort := 8080, // SUT CoAP/HTTP port
localPort := 3031, // Test Adapter client port (for debug purpose only)
sutAddress := "127.0.0.1",
useTls := false
}
}
},
security := omit,
serialization := "json"
},
mcaPortIn := {
binding := {
httpBindingDesc := {
bindingProtocol := e_http,
bindingDesc := {
tsAddress := "127.0.0.1",
remotePort := omit,
localPort := 3041, // Test Adapter listener port (AeSimu acts as server)
sutAddress := "127.0.0.1",
useTls := false
}
}
},
security := omit,
serialization := "json"
}
};
modulepar AeSimuComponentDesc PX_TS_AE2 := { // AE2 component settings
aeIdStem := "",
appId := "NMyApp2Id",
mcaPort := {
binding := {
httpBindingDesc := {
bindingProtocol := e_http,
bindingDesc := {
tsAddress := "127.0.0.1",
remotePort := 8080, // SUT CoAP/HTTP port
localPort := 3032, // Test Adapter client port (for debug purpose only)
sutAddress := "127.0.0.1",
useTls := false
}
}
},
security := omit,
serialization := "json"
},
mcaPortIn := {
binding := {
httpBindingDesc := {
bindingProtocol := e_http,
bindingDesc := {
tsAddress := "127.0.0.1",
remotePort := omit,
localPort := 3042, // Test Adapter listener port (AeSimu acts as server)
sutAddress := "127.0.0.1",
useTls := false
}
}
},
security := omit,
serialization := "json"
}
};
modulepar CseSimuComponentDesc PX_TS_CSE1 := { // CSE1 component settings
cseName := "CSE1_NAME",
cseId := "/CSE1_ID",
cseResourceId := "CSE1_RESOURCE_ID",
spId := "//onem2m.org",
supportedResourceType := {int1, int2, int3, int16},
mcaPort := {
binding := {
httpBindingDesc := {
bindingProtocol := e_http,
bindingDesc := {
tsAddress := "127.0.0.1",
remotePort:= 8080,
localPort := 3131,
sutAddress := "127.0.0.1",
useTls := false
}
}
},
security := omit,
serialization := "json"
},
mcaPortIn := {
binding := {
httpBindingDesc := {
bindingProtocol := e_http,
bindingDesc := {
tsAddress := "127.0.0.1",
remotePort:= omit,
localPort := 3141,
sutAddress := "127.0.0.1",
useTls := false
}
}
},
security := omit,
serialization := "json"
},
mccPort := {
binding := {
httpBindingDesc := {
bindingProtocol := e_http,
bindingDesc := {
tsAddress := "127.0.0.1",
remotePort:= 8080,
localPort := 4131,
sutAddress := "127.0.0.1",
useTls := false
}
}
},
security := omit,
serialization := "json"
},
mccPortIn := {
binding := {
httpBindingDesc := {
bindingProtocol := e_http ,
bindingDesc := {
tsAddress := "127.0.0.1",
remotePort:= omit,
localPort := 4141,
sutAddress := "127.0.0.1",
useTls := false
}
}
},
security := omit,
serialization := "json"
}
};
modulepar CseSimuComponentDesc PX_TS_CSE2 := { // CSE2 component settings
cseName := "CSE2_NAME",
cseId := "/CSE2_ID",
cseResourceId := "CSE2_RESOURCE_ID",
spId := "//onem2m.org",
supportedResourceType := {int1, int2, int3, int16},
mcaPort := {
binding := {
httpBindingDesc := {
bindingProtocol := e_http,
bindingDesc := {
tsAddress := "127.0.0.1",
remotePort:= 8080,
localPort := 3132,
sutAddress := "127.0.0.1",
useTls := false
}
}
},
security := omit,
serialization := "json"
},
mcaPortIn := {
binding := {
httpBindingDesc := {
bindingProtocol := e_http,
bindingDesc := {
tsAddress := "127.0.0.1",
remotePort:= 8080,
localPort := 3142,
sutAddress := "127.0.0.1",
useTls := false
}
}
},
security := omit,
serialization := "json"
},
mccPort := {
binding := {
httpBindingDesc := {
bindingProtocol := e_http,
bindingDesc := {
tsAddress := "127.0.0.1",
remotePort:= 8080,
localPort := 4132,
sutAddress := "127.0.0.1",
useTls := false
}
}
},
security := omit,
serialization := "json"
},
mccPortIn := {
binding := {
httpBindingDesc := {
bindingProtocol := e_http ,
bindingDesc := {
tsAddress := "127.0.0.1",
remotePort:= 8080,
localPort := 4142,
sutAddress := "127.0.0.1",
useTls := false
}
}
},
security := omit,
serialization := "json"
}
};
modulepar UrlDesc PX_TS_UT := { url := "http://127.0.0.1:8080/__ut__" };
modulepar AeSimuComponentDesc PX_TS_DAS := { // DAS component settings
aeIdStem := "",
appId := "",
mcaPort := {
binding := {
httpBindingDesc := {
bindingProtocol := e_http,
bindingDesc := {
tsAddress := "127.0.0.1",
remotePort := 8080, // SUT CoAP/HTTP port
localPort := 3033, // Test Adapter client port (for debug purpose only)
sutAddress := "127.0.0.1",
useTls := false
}
}
},
security := omit,
serialization := "xml"
},
mcaPortIn := {
binding := {
httpBindingDesc := {
bindingProtocol := e_http,
bindingDesc := {
tsAddress := "127.0.0.1",
remotePort := omit,
localPort := 3043, // Test Adapter listener port (AeSimu acts as server)
sutAddress := "127.0.0.1",
useTls := false
}
}
},
security := omit,
serialization := "xml"
}
};
modulepar ScefSimuComponentDesc PX_T8_SCEF := {
scefId := "scs_as_id_01",
mcnPort := {
t8PortDesc := {
binding := {
httpBindingDesc := {
bindingProtocol := e_http,
bindingDesc := {
tsAddress := "127.0.0.1",
remotePort := 30180,
localPort := omit,
sutAddress := "127.0.0.1",
useTls := false
}
}
},
serialization := "json"
}
},
mcnPortIn := {
t8PortDesc := {
binding := {
httpBindingDesc := {
bindingProtocol := e_http,
bindingDesc := {
tsAddress := "127.0.0.1",
remotePort := 30180, // SUT HTTP port
localPort := 30181,
sutAddress := "127.0.0.1",
useTls := false
}
}
},
serialization := "json"
}
}
};
/**
* @desc Simulated Ontology Server IP address and listening port
*/
modulepar UrlDesc PX_TS_ONTOLOGY_SERVER := { url := "http://127.0.0.1:80/" };
}
group ExecutionParameters {
/**
* @desc Resources to be deleted by TC_DELETE_RESOURCES
*/
modulepar XSD.IDREFS PX_RESOURCES_TO_BE_DELETED := { "MyAe", "MyAccessControlPolicyResource", "SubscriptionVerificationAcp", "MyAcp", "MyRemoteCSEResource" };
/**
* @desc To enable run postamble (for debugging)
*/
modulepar boolean PX_RUN_POSTAMBLE := true;
group SecurityParameters {
modulepar charstring PX_CERTIFICATE_PATH := "" ;
modulepar charstring PX_CERTIFICATE_NAME := "" ;
modulepar PairwiseKeyMethod PX_PAIRWISEKEY_METHOD := e_establish;
modulepar Provisioned PX_KEY_PROVISION := e_preProvisioning;
}
}
//constant parameters for LOC
modulepar LocationTargetID PX_LOCATION_TARGET_ID := {alt_ := "{LOCATION-TARGET-ID}"}; //SUPPOSE TO BE RECEIVED FROM LOCATION SERVER
modulepar XSD.AnyURI PX_LOCATION_SERVER_ADDRESS := "{LOCATION-SERVER-ADDRESS}";
modulepar XSD.AnyURI PX_UNREACHABLE_LOCATION_SERVER_ADDRESS := "{LOCATION-SERVER-ADDRESS_UNREACHABLE}";
modulepar ListOfDuration PX_LOCATION_UPDATE_PERIOD := {"PT10M10S"} ;//10 Minute 10 Seconds
modulepar charstring PX_LOCATION_CONTAINER_NAME := "myLoContainer";
modulepar Labels PX_LABELS := {"VALUE_1"};
modulepar boolean PX_IS_LOC_CONTAINER := false;//default //set it to true when the container is created to store location information
} // end of module