Commit d4291f48 authored by Garcia's avatar Garcia
Browse files

Add TTCN-3 LibNg112 module

parent 7f46ef3e
Loading
Loading
Loading
Loading
+56 −0
Original line number Diff line number Diff line
module LibNg112_Functions {
    
    // Libcommon
    import from LibCommon_Time all;
    import from LibCommon_VerdictControl all;
    import from LibCommon_Sync all;
    
    // LibHttp
    import from LibItsHttp_TestSystem all;
    
    // LibNg112
    import from LibNg112_TypesAndValues all;
    import from LibNg112_TestSystem all;
    
    group preambles {
        
        function f_cf_01_http_up() runs on HttpComponent {
            
            // Map ports
            map(self:httpPort, system:httpPort);
            
            // Connect
            f_connect4SelfOrClientSync();
            activate(a_cf_01_http_down());
            
        } // End of function f_cf_01_http_up
        
        /**
         * @desc Default handling cf01 de-initialisation.
         */
        altstep a_cf_01_http_down() runs on HttpComponent {
            [] a_shutdown() {
                f_cf_01_http_down();
                log("*** a_cf_01_http_down: INFO: TEST COMPONENT NOW STOPPING ITSELF! ***");
                stop;
            }
        } // End of altstep a_cf_01_http_down
        
    } // End of group preambles
    
    group postambles {
        
        function f_cf_01_http_down() runs on HttpComponent {
            
            // Unmap ports
            unmap(self:httpPort, system:httpPort);
            
            // Disconnect ports
            f_disconnect4SelfOrClientSync();
        } // End of function f_cf_01_http_down
        
    } // End of group postambles
    
    
    
} // End of module LibNg112_Functions
+18 −0
Original line number Diff line number Diff line
module LibNg112_Pics {
    
    /**
     * @desc 
     */
    modulepar boolean PICS_HTTP_POST_REQUEST := true;
    
    /**
     * @desc 
     */
    modulepar boolean PICS_LOCATION_HELD := true;
    
    /**
     * @desc 
     */
    modulepar charstring PICS_LISP_URI := "http://www.lisp.com";
    
} // End of module LibNg112_Pics
+24 −0
Original line number Diff line number Diff line
module LibNg112_Templates {
    
    // RFC5985 Held
    import from XSD all;
    import from urn_ietf_params_xml_ns_geopriv_held language "XSD" all
    with {
        extension "File:./RFC5985_held.xsd";
    }
    
    // LibNg112
    
    group rfc5985_held {
        
        template LocationResponseType mw_locationResponse_dummy(
                                                                    template ReturnLocationType p_locationUriSet := *,
                                                                    template LocationResponseType.elem_list p_elem_list := *
        ) := {
            locationUriSet :=  p_locationUriSet,
            elem_list       := p_elem_list
        } // End of template mw_locationResponse_dummy
        
    } // End of group rfc5985_held
    
} // End of module LibNg112_Templates
+16 −0
Original line number Diff line number Diff line
module LibNg112_TestSystem {
    
    // LibCommon

    // LibHttp
    import from LibItsHttp_TestSystem all;
    
    // LibSip
    import from LibSip_Interface all;
    
    type component TestAdapter {
        port SipPort  SIPP;
        port HttpPort httpPort;
    } // End of component TestAdapter
    
} // End of module LibNg112_TestSystem
+3 −0
Original line number Diff line number Diff line
module LibNg112_TypesAndValues {

} // End of module LibNg112_TypesAndValues
Loading