Commit d019d636 authored by Yann Garcia's avatar Yann Garcia
Browse files

Enhance dummy test case TC_CDM_CISE_SIMU_EI_NA_PULL_BV_01 to simulate peer Adapter

parent 57b89eda
Loading
Loading
Loading
Loading
+80 −44
Original line number Diff line number Diff line
@@ -265,8 +265,10 @@ module AtsCise_TestCases {
            // Send PullResponse
            f_init_default_headers_list(-, -, v_headers);
            httpPort_notif.send(
                                m_http_response(
                                                m_http_response_ok(
                                m_http_request(
                                               m_http_request_post(
                                                                   "/messages?messageId=" & v_message_id,
                                                                   v_headers,
                                                                   m_http_message_body_xml(
                                                                                           m_xml_body_pull_response(
                                                                                                                   m_pull_response(
@@ -281,9 +283,24 @@ module AtsCise_TestCases {
                                                                                                                                   v_request.request.body.xml_body.msg.pull_request.contextID,
                                                                                                                                   v_request.request.body.xml_body.msg.pull_request.correlationID,
                                                                                                                                   false
                                                                                            ))),
                                                                                            v_headers
                                )));
                                ))))));
            log("*** " & testcasename() & ": INFO: Sent PullResponse to the IUT ***");
            tc_ac.start;
            repeat;
          }
          [] httpPort_notif.receive(
                                    mw_http_response(
                                                     mw_http_response_ok(
                                                                         mw_http_message_body_xml(
                                                                                                  mw_xml_body_acknowledgement(
                                                                                                                              mw_acknowledgement(
                                                                                                                                                 -, -, -, -, 
                                                                                                                                                 success
                                    )))))) {
            tc_ac.stop;
            log("*** " & testcasename() & ": PASS: Received PullResponse Ack ***");
            f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
          }
          [] httpPort_notif.receive {
            tc_ac.stop;
@@ -17812,7 +17829,7 @@ module AtsCise_TestCases {
        f_selfOrClientSyncAndVerdict(c_prDone, e_success);
        // Test Body
        tc_ac.start;
        tc_wait.start;
        alt {
          [] httpPort_notif.receive(
                                    mw_http_request(
@@ -17822,7 +17839,7 @@ module AtsCise_TestCases {
                                                                         mw_http_message_body_xml(
                                                                                                  mw_xml_body_pull_request
                                   )))) -> value v_request {
            tc_ac.stop;
            tc_wait.stop;
            // Skip Securty
@@ -17849,8 +17866,10 @@ module AtsCise_TestCases {
            // Send PullResponse
            f_init_default_headers_list(-, -, v_headers);
            httpPort_notif.send(
                                m_http_response(
                                                m_http_response_ok(
                                m_http_request(
                                               m_http_request_post(
                                                                   "/messages?messageId=" & v_message_id,
                                                                   v_headers,
                                                                   m_http_message_body_xml(
                                                                                           m_xml_body_pull_response(
                                                                                                                   m_pull_response(
@@ -17865,20 +17884,37 @@ module AtsCise_TestCases {
                                                                                                                                   v_request.request.body.xml_body.msg.pull_request.contextID,
                                                                                                                                   v_request.request.body.xml_body.msg.pull_request.correlationID,
                                                                                                                                   false
                                                                                            ))),
                                                                                            v_headers
                                )));
                                ))))));
            log("*** " & testcasename() & ": INFO: Sent PullResponse to the IUT ***");
            tc_wait.start;
            repeat;
          }
          [] httpPort_notif.receive(
                                    mw_http_response(
                                                     mw_http_response_ok(
                                                                         mw_http_message_body_xml(
                                                                                                  mw_xml_body_acknowledgement(
                                                                                                                              mw_acknowledgement(
                                                                                                                                                 -, -, -, -, 
                                                                                                                                                 success
                                    )))))) {
            tc_wait.start;
            repeat;
          }
          [] httpPort_notif.receive {
            tc_ac.stop;
            log("*** " & testcasename() & ": FAIL: Unexpected message received ***");
            f_selfOrClientSyncAndVerdict(c_tbDone, e_error);           
            tc_wait.stop;
            log("*** " & testcasename() & ": DNG: Unexpected message received ***");
            tc_wait.start;
            repeat;
          }
          [] tc_ac.timeout {
            log("*** " & testcasename() & ": INCONC: Expected message not received ***");
            f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
          [] tc_wait.timeout {
            tc_wait.start;
            repeat;
          }
        } // End of 'alt' statement
        log("*** " & testcasename() & ": PASS: No more message received ***");
        f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
        // Postamble
        f_cf_02_down();
+8 −8

File changed.

Contains only whitespace changes.