X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fe2pdus%2Fendc_x2_setup_request_test.go;h=433f619b67ffe7f1107b940cd6a5c37db810686c;hb=fbd73df3e4bd575816d4c6444807879a8bf54c7f;hp=776b9ae2890ae482851bf8848ac98d26fdb062d3;hpb=b2e5e2b6d746c95f64a68631bb41b2f63a247daf;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/e2pdus/endc_x2_setup_request_test.go b/E2Manager/e2pdus/endc_x2_setup_request_test.go index 776b9ae..433f619 100644 --- a/E2Manager/e2pdus/endc_x2_setup_request_test.go +++ b/E2Manager/e2pdus/endc_x2_setup_request_test.go @@ -1,5 +1,4 @@ -/******************************************************************************* - * +/* * Copyright (c) 2019 AT&T Intellectual Property. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,8 +12,13 @@ * 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 e2pdus import ( @@ -63,7 +67,7 @@ func TestPackEndcX2apSetupRequest(t *testing.T) { for _, tc := range testCases { t.Run(tc.packedPdu, func(t *testing.T) { - payload, _, err := PreparePackedEndcX2SetupRequest(MaxAsn1PackedBufferSize /*max packed buffer*/, MaxAsn1CodecMessageBufferSize /*max message buffer*/, pLMNId, tc.eNBId, tc.eNBIdBitqty, ricFlag) + payload, _, err := preparePackedEndcX2SetupRequest(MaxAsn1PackedBufferSize /*max packed buffer*/, MaxAsn1CodecMessageBufferSize /*max message buffer*/, pLMNId, tc.eNBId, tc.eNBIdBitqty, ricFlag) if err != nil { t.Errorf("want: success, got: pack failed. Error: %v\n", err) } else { @@ -90,7 +94,7 @@ func TestPackEndcX2apSetupRequestPackError(t *testing.T) { eNBIdBitqty := uint(Macro_eNB_ID) wantError := "packing error: #src/asn1codec_utils.c.pack_pdu_aux - Encoded output of E2AP-PDU, is too big:53" - _, _, err := PreparePackedEndcX2SetupRequest(40 /*max packed buffer*/, MaxAsn1CodecMessageBufferSize /*max message buffer*/, pLMNId, eNBId, eNBIdBitqty, ricFlag) + _, _, err := preparePackedEndcX2SetupRequest(40 /*max packed buffer*/, MaxAsn1CodecMessageBufferSize /*max message buffer*/, pLMNId, eNBId, eNBIdBitqty, ricFlag) if err != nil { if 0 != strings.Compare(fmt.Sprintf("%s", err), wantError) { t.Errorf("want failure: %s, got: %s", wantError, err)