Commit b6fba09c authored by hammad zafar's avatar hammad zafar
Browse files

Merge branch 'STF625_MEC030' of https://forge.etsi.org/rep/mec/AdvantEDGE into STF625_MEC030

parents da656823 91b6414a
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -514,9 +514,9 @@ func TestPredictedQosPost(t *testing.T) {
	// Initialize the data structure for the POST request
	// MEC-030 Clause 6.2.5
	// MEC-030 Clause 7.6.3.4
	expected_pointA := LocationInfoGeoArea{7.413917, 43.733505}
	expected_pointA := LocationInfoGeoArea{43.733505, 7.413917}
	expected_locationInfoA := LocationInfo{nil, &expected_pointA}
	expected_pointB := LocationInfoGeoArea{7.413916, 43.733515}
	expected_pointB := LocationInfoGeoArea{43.733515, 7.413916}
	expected_locationInfoB := LocationInfo{nil, &expected_pointB}
	// Fill PredictedQosRoutesRouteInfo with LocationInfo list
	expected_routeInfo := make([]PredictedQosRoutesRouteInfo, 2)
@@ -527,8 +527,7 @@ func TestPredictedQosPost(t *testing.T) {
	// Fill PredictedQos with PredictedQosRoutes list
	expected_routes := make([]PredictedQosRoutes, 1)
	expected_routes[0] = expected_predictedQosRoutes
	expected_predictedQos := PredictedQos{"100", expected_routes, nil}
	fmt.Println("expected_predictedQos: ", expected_predictedQos)
	expected_predictedQos := PredictedQos{"1", expected_routes, nil}
	expected_predictedQos_str, err := json.Marshal(expected_predictedQos)
	if err != nil {
		t.Fatalf(err.Error())
@@ -541,10 +540,10 @@ func TestPredictedQosPost(t *testing.T) {
	// Initialize the data structure for the POST request
	// MEC-030 Clause 6.2.5
	// MEC-030 Clause 7.6.3.4
	pointA := LocationInfoGeoArea{7.413917, 43.733505}
	pointA := LocationInfoGeoArea{43.733505, 7.413917}
	locationInfoA := LocationInfo{nil, &pointA}
	tsA := TimeStamp{0, 45}
	pointB := LocationInfoGeoArea{7.413916, 43.733515}
	pointB := LocationInfoGeoArea{43.733515, 7.413916}
	locationInfoB := LocationInfo{nil, &pointB}
	tsB := TimeStamp{0, 45}
	// Fill PredictedQosRoutesRouteInfo with LocationInfo list
@@ -556,8 +555,7 @@ func TestPredictedQosPost(t *testing.T) {
	// Fill PredictedQos with PredictedQosRoutes list
	routes := make([]PredictedQosRoutes, 1)
	routes[0] = predictedQosRoutes
	testPredictedQos := PredictedQos{"100", routes, nil}
	fmt.Println("testPredictedQos: ", testPredictedQos)
	testPredictedQos := PredictedQos{"1", routes, nil}
	body, err := json.Marshal(testPredictedQos)
	if err != nil {
		t.Fatalf(err.Error())