Corrected failing test case
[ric-plt/rtmgr.git] / pkg / sdl / sdl.go
index b6e0bde..88b19e7 100644 (file)
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
+
+   This source code is part of the near-RT RIC (RAN Intelligent Controller)
+   platform project (RICP).
+
 ==================================================================================
 */
 /*
@@ -29,25 +33,25 @@ import (
 )
 
 var (
-       SupportedSdls = []*SdlEngineConfig{
-               &SdlEngineConfig{
-                       Name:     "file",
-                       Version:  "v1",
-                       Protocol: "rawfile",
-                       Instance: NewFile(),
+       SupportedSdls = []*EngineConfig{
+               {
+                       Name:        "file",
+                       Version:     "v1",
+                       Protocol:    "rawfile",
+                       Instance:    NewFile(),
                        IsAvailable: true,
                },
-               &SdlEngineConfig{
-                       Name:     "redis",
-                       Version:  "v1",
-                       Protocol: "ndsl",
-                       Instance: nil,
+               {
+                       Name:        "redis",
+                       Version:     "v1",
+                       Protocol:    "ndsl",
+                       Instance:    nil,
                        IsAvailable: false,
                },
        }
 )
 
-func GetSdl(sdlName string) (SdlEngine, error) {
+func GetSdl(sdlName string) (Engine, error) {
        for _, sdl := range SupportedSdls {
                if sdl.Name == sdlName && sdl.IsAvailable {
                        return sdl.Instance, nil
@@ -57,5 +61,4 @@ func GetSdl(sdlName string) (SdlEngine, error) {
 }
 
 type Sdl struct {
-
 }