X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=RSM%2Ftests%2FdataProvider.go;h=e21fa9808507f5f4220c25d5d697a927acf60185;hb=4dc2959434210acfe738164d3b64ab76b5d0fd2a;hp=d6a908d6e450148810a9a30cb5393e461ccc99ee;hpb=7b80668df78103cebafdfb7caa0070dc92ed3779;p=ric-plt%2Fresource-status-manager.git diff --git a/RSM/tests/dataProvider.go b/RSM/tests/dataProvider.go index d6a908d..e21fa98 100644 --- a/RSM/tests/dataProvider.go +++ b/RSM/tests/dataProvider.go @@ -13,7 +13,10 @@ // 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 tests @@ -21,6 +24,8 @@ import ( "bytes" "encoding/json" "net/http" + "rsm/enums" + "rsm/models" "strconv" ) @@ -52,3 +57,19 @@ func GetHttpRequest() *http.Request { req, _ := http.NewRequest("POST", "https://localhost:3800/request", b) return req } + +func GetRsmGeneralConfiguration(enableResourceStatus bool) *models.RsmGeneralConfiguration { + return &models.RsmGeneralConfiguration{ + EnableResourceStatus: enableResourceStatus, + PartialSuccessAllowed: true, + PrbPeriodic: true, + TnlLoadIndPeriodic: true, + HwLoadIndPeriodic: true, + AbsStatusPeriodic: true, + RsrpMeasurementPeriodic: true, + CsiPeriodic: true, + PeriodicityMs: enums.ReportingPeriodicity_one_thousand_ms, + PeriodicityRsrpMeasurementMs: enums.ReportingPeriodicityRSRPMR_four_hundred_80_ms, + PeriodicityCsiMs: enums.ReportingPeriodicityCSIR_ms20, + } +} \ No newline at end of file