Merge "Automation of nodeb health check"
authorShuky Har-Noy <shuky.har-noy@intl.att.com>
Thu, 12 Nov 2020 13:51:26 +0000 (13:51 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Thu, 12 Nov 2020 13:51:26 +0000 (13:51 +0000)
1  2 
Automation/Tests/Resource/Keywords.robot
Automation/Tests/Resource/resource.robot

@@@ -1,6 -1,7 +1,7 @@@
  ##############################################################################
  #
  #   Copyright (c) 2019 AT&T Intellectual Property.
+ #   Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved.
  #
  #   Licensed under the Apache License, Version 2.0 (the "License");
  #   you may not use this file except in compliance with the License.
@@@ -35,6 -36,13 +36,13 @@@ Get Request node
      Sleep    1s
      GET      ${getNodeb}/${nodeb_name}
  
+ Get request nodeb health
+     [Arguments]    ${request_body}=${list_nodeb_body}
+     Sleep    1s
+     LOG      health check url ${nodeb_health_url}
+     LOG      health check body ${request_body}
+     PUT      ${nodeb_health_url}    ${request_body}
  Update Gnb request
      Sleep  1s
      PUT    ${update_gnb_url}   ${update_gnb_body}
@@@ -44,11 -52,6 +52,11 @@@ Add eNb Reques
      Sleep  1s
      POST    ${enb_url}   ${request}
  
 +Get NodeB state request
 +    [Arguments]     ${request}=${nodeb_state_url}
 +    Sleep  1s
 +    GET    ${request}
 +
  Delete eNb Request
      Sleep  1s
      DELETE    ${enb_url}/${enb_ran_name}
@@@ -1,6 -1,7 +1,7 @@@
  ##############################################################################
  #
  #   Copyright (c) 2019 AT&T Intellectual Property.
+ #   Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved.
  #
  #   Licensed under the Apache License, Version 2.0 (the "License");
  #   you may not use this file except in compliance with the License.
@@@ -30,11 -31,12 +31,13 @@@ Documentation    Resource fil
  ${ranName}  gnb_208_092_303030
  ${enb_ran_name}    enB_shortmacro_208__555540
  ${getNodeb}  /v1/nodeb
+ ${nodeb_health_url}   /v1/nodeb/health
+ ${empty_list_nodeb_body}   {}
  ${set_general_configuration}   /v1/nodeb/parameters
  ${set_general_configuration_body}   {"enableRic":false}
  ${update_gnb_url}   /v1/nodeb/gnb/${ranName}
  ${enb_url}    /v1/nodeb/enb
 +${nodeb_state_url}    /v1/nodeb/states/${enb_ran_name}
  ${update_gnb_body}  {"servedNrCells":[{"servedNrCellInformation":{"cellId":"abcd","choiceNrMode":{"fdd":{}},"nrMode":1,"nrPci":1,"servedPlmns":["whatever"]},"nrNeighbourInfos":[{"nrCgi":"one","choiceNrMode":{"fdd":{}},"nrMode":1,"nrPci":1}]}]}
  ${update_gnb_body_notvalid}  {"servedNrCells":[{"servedNrCellInformation":{"choiceNrMode":{"fdd":{}},"nrMode":1,"nrPci":1,"servedPlmns":["whatever"]},"nrNeighbourInfos":[{"nrCgi":"whatever","choiceNrMode":{"fdd":{}},"nrMode":1,"nrPci":1}]}]}
  ${add_enb_request_body}    {"ranName":"${enb_ran_name}","globalNbId":{"nbId":"abc","plmnId":"def"},"port":1234,"enb":{"enbType":3,"guGroupIds":["ghi"],"servedCells":[{"broadcastPlmns":["jkl"],"cellId":"mnop","choiceEutraMode":{"fdd":{"dlearFcn":1,"ulearFcn":1},"tdd":{"additionalSpecialSubframeExtensionInfo":{"additionalSpecialSubframePatternsExtension":1,"cyclicPrefixDl":1,"cyclicPrefixUl":1},"additionalSpecialSubframeInfo":{"additionalSpecialSubframePatterns":1,"cyclicPrefixDl":1,"cyclicPrefixUl":1},"earFcn":4,"specialSubframeInfo":{"specialSubframePatterns":1,"cyclicPrefixDl":1,"cyclicPrefixUl":1}}},"eutraMode":1,"csgId":"string","mbmsServiceAreaIdentities":["sds"],"mbsfnSubframeInfos":[{"radioframeAllocationOffset":3,"subframeAllocation":"jhg"}],"multibandInfos":[4],"neighbourInfos":[{"earFcn":4,"ecgi":"klj","pci":5,"tac":"wew"}],"pci":2,"prachConfiguration":{"highSpeedFlag":true,"prachConfigurationIndex":5,"prachFrequencyOffset":6,"rootSequenceIndex":7,"zeroCorrelationZoneConfiguration":6},"tac":"asd","additionalCellInformation":{"cellLatitude":1,"cellLongitude":1,"antennaHeight":1,"antennaAzimuthDirection":2,"antennaTiltAngle":3,"antennaMaxTransmit":4,"antennaMaxGain":5,"sectorId":6}},{"broadcastPlmns":["jkl"],"cellId":"qrst","choiceEutraMode":{"fdd":{"dlearFcn":4,"ulearFcn":2},"tdd":{"additionalSpecialSubframeExtensionInfo":{"additionalSpecialSubframePatternsExtension":1,"cyclicPrefixDl":1,"cyclicPrefixUl":1},"additionalSpecialSubframeInfo":{"additionalSpecialSubframePatterns":1,"cyclicPrefixDl":1,"cyclicPrefixUl":1},"earFcn":4,"specialSubframeInfo":{"specialSubframePatterns":1,"cyclicPrefixDl":1,"cyclicPrefixUl":1}}},"eutraMode":1,"csgId":"string","mbmsServiceAreaIdentities":["sds"],"mbsfnSubframeInfos":[{"radioframeAllocationOffset":5,"subframeAllocation":"jhg"}],"multibandInfos":[4],"neighbourInfos":[{"earFcn":2,"ecgi":"klj","pci":4,"tac":"wew"}],"pci":3,"prachConfiguration":{"highSpeedFlag":true,"prachConfigurationIndex":4,"prachFrequencyOffset":3,"rootSequenceIndex":3,"zeroCorrelationZoneConfiguration":2},"tac":"asd","additionalCellInformation":{"cellLatitude":3,"cellLongitude":3,"antennaHeight":3,"antennaAzimuthDirection":3,"antennaTiltAngle":4,"antennaMaxTransmit":4,"antennaMaxGain":5,"sectorId":5}}]}}