Adding new comments for Oran in all files with licenses
[ric-plt/e2mgr.git] / E2Manager / rnibBuilders / node_info_builder_test.go
index 40c0d1b..fb95f8a 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).
+
 
 package rnibBuilders
 
@@ -29,14 +32,15 @@ const ranIP = "ip"
 const ranPort = uint16(30000)
 
 func TestCreateInitialNodeInfo(t *testing.T) {
-       requestDetails :=  &models.RequestDetails{
+       requestDetails :=  &models.SetupRequest{
                RanName: ranName,
                RanPort:ranPort,
                RanIp:ranIP,
        }
-       nodebInfo, identity := CreateInitialNodeInfo(requestDetails)
+       nodebInfo, identity := CreateInitialNodeInfo(requestDetails, entities.E2ApplicationProtocol_X2_SETUP_REQUEST)
        assert.Equal(t, identity.InventoryName, ranName)
        assert.Equal(t, nodebInfo.Ip, ranIP)
        assert.Equal(t, nodebInfo.ConnectionStatus, entities.ConnectionStatus_CONNECTING)
+       assert.Equal(t, nodebInfo.E2ApplicationProtocol, entities.E2ApplicationProtocol_X2_SETUP_REQUEST)
        assert.Equal(t, nodebInfo.Port, uint32(ranPort))
 }
\ No newline at end of file