Commit 8f8a14f6 authored by Michael Proestler's avatar Michael Proestler
Browse files

Add TC_ECRF_LOST_BV_17

parent 7aaeecac
Loading
Loading
Loading
Loading
+45 −1
Original line number Diff line number Diff line
@@ -902,7 +902,7 @@ module AtsECRF_TestCases {
    }

    /**
    * @desc "IUT successfully responds with a service URI for a Point in the service boundary"
    * @desc "IUT successfully responds with a redirect for findServiceRequest"
    */
    testcase TC_ECRF_LOST_BV_16() runs on HttpComponent system TestAdapter {
      
@@ -946,6 +946,50 @@ module AtsECRF_TestCases {
      f_cf_01_http_down();
    }

    /**
    * @desc "IUT successfully responds with a redirect for listServiceByLocation"
    */
    testcase TC_ECRF_LOST_BV_17() 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_GEOMETRY_POINT", val := PICS_ECRF_GEOMETRY_POINT },
        { name := "PICS_ECRF_REDIRECT", val := PICS_ECRF_REDIRECT }
      })

      // 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_G3, PX_SRS_NAME, "point1")))) },
                                                                                        "geodetic-2d" // TODO Use a Pixit
                                                                                        )
                                                                            },
                                                                          -,
                                                                          "urn:service:sos"
                                                                        )
                                          );

      f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);

      // Test Body
      tc_ac.start;
      f_receiveResponse(
                        mw_http_redirect_response(
                                                  mw_redirect(PX_ECRF_SOURCE,PX_REDIRECT_TARGET,?)
                        )
      );

      // Postamble
      f_cf_01_http_down();
    }

  } // End of group LOST

} // End of module AtsECRF_TestCases