Commit d8d96777 authored by garciay's avatar garciay
Browse files

Add BR role TCs

parent 25ef9194
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ module Ats6RD_Functions {
    import from LibIpv6_CommonRfcsDhcp_Functions all;
    
    // AtsCommon
    import from AtsCommon_TypesAndValues all;
    import from AtsCommon_DNS_CommonRfcs_TypesAndValues all;
    import from AtsCommon_Interfaces all;
    import from AtsCommon_Functions all;
@@ -252,8 +253,8 @@ module Ats6RD_Functions {
        return FncRetCode {
            var FncRetCode v_result := e_success;
            
            httpPort.call (s_httpv4SendData:{p_srcAddress, p_httpServerAddress, p_noOfDataRequests, p_withHugePayload}, PX_TAC) {
                [] httpPort.getreply (s_httpv4SendData:{-, -, -, -} value true) {
            httpPort.call (s_httpSendDataV4:{p_srcAddress, p_httpServerAddress, p_noOfDataRequests, p_withHugePayload}, PX_TAC) {
                [] httpPort.getreply (s_httpSendDataV4:{-, -, -, -} value true) {
                    log("*** " & __SCOPE__ & ": Successfully sent HTTP data. ***");
                    v_result := e_success;
                }
@@ -282,8 +283,8 @@ module Ats6RD_Functions {
        return FncRetCode {
            var FncRetCode v_result := e_success;
            
            httpPort.call (s_httpv6SendData:{p_srcAddress, p_httpServerAddress, p_noOfDataRequests, p_withHugePayload}, PX_TAC) {
                [] httpPort.getreply (s_httpv6SendData:{-, -, -, -} value true) {
            httpPort.call (s_httpSendDataV6:{p_srcAddress, p_httpServerAddress, p_noOfDataRequests, p_withHugePayload}, PX_TAC) {
                [] httpPort.getreply (s_httpSendDataV6:{-, -, -, -} value true) {
                    log("*** " & __SCOPE__ & ": Successfully sent HTTP data. ***");
                    v_result := e_success;
                }
+3 −13
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ module Ats6RD_Interfaces {
    // AtsCommon
    import from AtsCommon_Interfaces {
        type 
            DHCPv4Port, DHCPv6Port, InterCompDataPort,
            DHCPv4Port, DHCPv6Port, HttpPort, InterCompDataPort,
            DHCPv4Component, DHCPv6Component,
            UtComponent
    };
@@ -60,16 +60,6 @@ module Ats6RD_Interfaces {
        
        group componentPorts {
            
            type port HttpV4Port mixed {
                out s_httpv4SendData; //initiate actions
                in Ipv4Packet; //monitors traffic
            }
            
            type port HttpV6Port mixed {
                out s_httpv6SendData; //initiate actions
                in Ipv6Packet; //monitors traffic
            }
            
            type component HostComponent extends UtComponent, SelfSyncComp {
                /** IPv6 message port */
                port Ipv6Port ipv6Port;
@@ -100,7 +90,7 @@ module Ats6RD_Interfaces {
            
            type component HostHTTPv4Component extends UtComponent, SelfSyncComp {
                /** HTTP message port */
                port HttpV4Port httpPort;
                port HttpPort httpPort;
                /** Timer used for expected received message */
                timer tc_ac:= PX_TAC;
                /** Timer used for unexpected received message */
@@ -111,7 +101,7 @@ module Ats6RD_Interfaces {
            
            type component HostHTTPv6Component extends UtComponent, SelfSyncComp {
                /** HTTP message port */
                port HttpV6Port httpPort;
                port HttpPort httpPort;
                /** Inter-component communication port */
                port InterCompDataPort dataPort;
                /** Timer used for expected received message */
+16 −0
Original line number Diff line number Diff line
@@ -2946,6 +2946,22 @@ module Ats6RD_TestCases {
            
        } // End of group addressWithdrawal 
        
        /**
         * @desc Routing Tables
         * @reference ETSI TS xxx xxx-x V0.0.1 (2013-12) Clause 5.2.8
         */
        group routingTables {
            
            group validBehaviour {
                
            } // End of group validBehaviour
            
            group invalidBehaviour {
                
            } // End of group invalidBehaviour
            
        } // End of group routingTables
        
    } // End of group brRole 
    
} // End of Ats6RD_TestCases
 No newline at end of file
+0 −24
Original line number Diff line number Diff line
@@ -95,28 +95,4 @@ module Ats6RD_TypesAndValues {
    
    type set of Ipv6Packet SentIpv6Messages;
    
    group httpTypes {
        
        /**
         * @desc Send multiple native V4 HTTP requests to the specified HTTP server
         * @param p_srcAddress          The host HTTP address
         * @param p_httpServerAddress   The HTTP server address
         * @param p_noOfDataRequests    The number of HTTP request to be sent
         * @param p_withHugePayload     Set to true if huge packet is required
         * @return true on success, false otherwise
         */
        signature s_httpv4SendData(in Ipv4Address p_srcAddress, in Ipv4Address p_httpServerAddress, in UInt p_noOfDataRequests, in boolean p_withHugePayload) return boolean; // TODO To be continued
        
        /**
         * @desc Send multiple native V6 HTTP requests to the specified HTTP server
         * @param p_srcAddress          The host HTTP address
         * @param p_httpServerAddress   The HTTP server address
         * @param p_noOfDataRequests    The number of HTTP request to be sent
         * @param p_withHugePayload     Set to true if huge packet is required
         * @return true on success, false otherwise
         */
        signature s_httpv6SendData(in Ipv6Address p_srcAddress, in Ipv6Address p_httpServerAddress, in UInt p_noOfDataRequests, in boolean p_withHugePayload) return boolean; // TODO To be continued
        
    } // End of group httpTypes
    
} // End of module Ats6RD_TypesAndValues