Commit 09b67584 authored by Ikram Haq's avatar Ikram Haq
Browse files

Update Unit TestCases as per latest version v3.1.1

parent aad4a1c2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -419,6 +419,12 @@ func refreshPositions() {
	sbi.mutex.Lock()
	defer sbi.mutex.Unlock()

	// Check if sbi.gisCache is nil
	if sbi.gisCache == nil {
		log.Error("sbi.gisCache is nil")
		return
	}

	// Update UE Positions
	uePositionMap, _ := sbi.gisCache.GetAllPositions(gc.TypeUe)
	ueNameList := sbi.activeModel.GetNodeNames("UE")
+0 −9
Original line number Diff line number Diff line
@@ -1786,15 +1786,6 @@ func usersGet(w http.ResponseWriter, r *http.Request) {
	userList.ResourceURL = hostUrl.String() + basePath + "queries/users"
	response.UserList = &userList
	userData.userList = &userList
	// Check if "address" parameter exists
	if _, ok := q["address"]; ok {
		// Execute the code block only if "address" parameter is given
		jsonUserInfo, _ := rc.JSONGetEntry(baseKey+typeUser+":"+q.Get("address"), ".")
		if jsonUserInfo == "" {
			w.WriteHeader(http.StatusNotFound)
			return
		}
	}

	keyName := baseKey + typeUser + ":*"
	err := rc.ForEachJSONEntry(keyName, populateUserList, &userData)
+700 −665

File changed.

Preview size limit exceeded, changes collapsed.

+5 −10
Original line number Diff line number Diff line
@@ -14,14 +14,9 @@ type ConnectionType string

// List of ConnectionType
const (
	FEMTO_ConnectionType         ConnectionType = "Femto"
	LTE_FEMTO_ConnectionType     ConnectionType = "LTE-femto"
	SMALLCELL_ConnectionType     ConnectionType = "Smallcell"
	LTE_SMALLCELL_ConnectionType ConnectionType = "LTE-smallcell"
	LTE_ConnectionType     ConnectionType = "LTE"
	WIFI_ConnectionType    ConnectionType = "Wifi"
	PICO_ConnectionType          ConnectionType = "Pico"
	MICRO_ConnectionType         ConnectionType = "Micro"
	MACRO_ConnectionType         ConnectionType = "Macro"
	WIMAX_ConnectionType   ConnectionType = "Wimax"
	UNKNOWN_ConnectionType       ConnectionType = "Unknown"
	FiveGNR_ConnectionType ConnectionType = "5G NR"
	UNKNOWN_ConnectionType ConnectionType = "UNKNOWN"
)