Commit 94c52a90 authored by Michael Proestler's avatar Michael Proestler
Browse files

Add TC_ECRF_LOST_BI_02

parent a28aa137
Loading
Loading
Loading
Loading
+46 −1
Original line number Diff line number Diff line
@@ -1043,6 +1043,51 @@ module AtsECRF_TestCases {
      f_cf_01_http_down();
    }

    /**
    * @desc "IUT responds to a listServiceByLocation with a loop error response"
     */
    testcase TC_ECRF_LOST_BI_02() runs on HttpComponent system TestAdapter {
      // Test control
      f_check_statements({
        { name := "PICS_ECRF_LIST_SERVICES_BY_LOCATION", val := PICS_ECRF_LIST_SERVICES_BY_LOCATION },
        { name := "PICS_ECRF_LOOP_DETECTION", val := PICS_ECRF_LOOP_DETECTION }        
      })
        
        // Test component configuration
        f_cf_01_http_up();
        
        
      // Preamble
      f_sendListServicesByLocationRequest(
                                            m_list_services_by_location(
                                                                          {
                                                                            m_location(
                                                                                        PX_LOCATION_ID,
                                                                                        { m_extension_point(encvalue_unichar(valueof(m_point(PX_POINT_IN_G1, PX_SRS_NAME, "point1")))) },
                                                                                        "geodetic-2d" // TODO Use a Pixit
                                                                                        )
                                                                            },
                                                                          LibItsHttp_XmlTemplates.m_path({LibItsHttp_XmlTemplates.m_via(PX_ECRF_NAPTR)}),
                                                                          "urn:service:sos"
                                                                        )
                                          );

      
      f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
        
      // Test Body
      tc_ac.start;
      f_receiveResponse(mw_http_find_service_response_error(
                                                            mw_exception_loop(
                                                                PX_ECRF_NAPTR,
                                                                mw_basic_exception
                                                            )
                        )
      );     
        // Postamble
        f_cf_01_http_down();
    } // End of testcase TC_ECRF_LOST_BV_10

  }

} // End of module AtsECRF_TestCases