Commit 32dcd903 authored by Michael Proestler's avatar Michael Proestler
Browse files

add TC_ECRF_LOST_BI_02

parent fed4610e
Loading
Loading
Loading
Loading
+47 −3
Original line number Diff line number Diff line
@@ -214,14 +214,13 @@ module AtsECRF_TestCases {
    }

   /**
    * @desc "IUT successfully responds with a service URI for a Circle in the service boundary"
    * @desc "IUT successfully responds with an error response for unknown service URI in the service boundary
    */
    testcase TC_ECRF_LOST_BI_01() runs on HttpComponent system TestAdapter {
      
      // Test control
      f_check_statements({
        { name := "PICS_ECRF_FIND_SERVICE", val := PICS_ECRF_FIND_SERVICE },
        { name := "PICS_ECRF_GEOMETRY_CIRCLE", val := PICS_ECRF_GEOMETRY_CIRCLE }
        { name := "PICS_ECRF_FIND_SERVICE", val := PICS_ECRF_FIND_SERVICE }        
      })

      // Test component configuration
@@ -259,6 +258,51 @@ module AtsECRF_TestCases {
      f_cf_01_http_down();
    }

   /**
    * @desc "IUT successfully responds with an error response for an unrecognized location profile
    */
    testcase TC_ECRF_LOST_BI_02() runs on HttpComponent system TestAdapter {
      
      // Test control
      f_check_statements({
        { name := "PICS_ECRF_FIND_SERVICE", val := PICS_ECRF_FIND_SERVICE }        
      })

      // Test component configuration
      f_cf_01_http_up();

      // Preamble
      f_sendFindServiceRequest(
        m_find_service_request(
                                {
                                  m_location(
                                              PX_LOCATION_ID,
                                              { m_extension_point(encvalue_unichar(valueof(m_circle(m_center_group_pos(PX_CIRCLE_IN_V_POLICE_SERVICE_BOUNDARY_POS), m_radius(PX_CIRCLE_UOM, PX_CIRCLE_IN_V_POLICE_SERVICE_BOUNDARY_RADIUS), PX_SRS_NAME)))) },
                                              "unknown-location-profile" // TODO Use a Pixit
                                              )
                                },
                                { },
                                "urn:some:unknown:service",
                                true
                              )
      );

      f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);

      // Test Body
      tc_ac.start;
      f_receiveResponse(mw_http_find_service_response_error(
                                                            mw_exception_locationProfileUnrecognized(
                                                                                                      PX_V_POLICE_SOURCE,
                                                                                                      mw_location_profile_unrecognized
                                                                                                    )
                        )
      );

      // Postamble
      f_cf_01_http_down();
    }

  } // End of group LOST

} // End of module AtsECRF_TestCases