First commit
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
##############################################################################
|
||||
#
|
||||
# Copyright (c) 2019 AT&T Intellectual Property.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# 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).
|
||||
#
|
||||
|
||||
*** Settings ***
|
||||
Suite Setup Prepare Enviorment
|
||||
Library Collections
|
||||
Resource ../Resource/Keywords.robot
|
||||
Resource ../Resource/resource.robot
|
||||
Library OperatingSystem
|
||||
Library REST ${url}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
*** Test Cases ***
|
||||
Reset - 400 http - 401 Corrupted json
|
||||
Post Request setup node b x-2
|
||||
Integer response status 204
|
||||
Sleep 1s
|
||||
GET /v1/nodeb/test1
|
||||
String response body connectionStatus CONNECTED
|
||||
Set Headers ${header}
|
||||
PUT /v1/nodeb/test1/reset {abc}
|
||||
Integer response status 400
|
||||
Integer response body errorCode 401
|
||||
String response body errorMessage corrupted json
|
||||
|
||||
Reset - 400 http - 401 Validation error
|
||||
Set Headers ${header}
|
||||
PUT /v1/nodeb/test1/reset ${resetbadcausejson}
|
||||
Integer response status 400
|
||||
Integer response body errorCode 402
|
||||
String response body errorMessage Validation error
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -0,0 +1,57 @@
|
||||
##############################################################################
|
||||
#
|
||||
# Copyright (c) 2019 AT&T Intellectual Property.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# 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).
|
||||
#
|
||||
|
||||
*** Settings ***
|
||||
Suite Setup Prepare Enviorment
|
||||
Library Collections
|
||||
Resource ../Resource/Keywords.robot
|
||||
Resource ../Resource/resource.robot
|
||||
Library OperatingSystem
|
||||
Library REST ${url}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
*** Test Cases ***
|
||||
|
||||
Pre Condition for Connecting - no simu
|
||||
Run And Return Rc And Output ${stop_simu}
|
||||
${result}= Run And Return Rc And Output ${docker_command}
|
||||
Should Be Equal As Integers ${result[1]} ${docker_number-1}
|
||||
|
||||
Reset - 400 http - 403 wrong state
|
||||
Post Request setup node b x-2
|
||||
Integer response status 204
|
||||
Sleep 10s
|
||||
GET /v1/nodeb/test1
|
||||
String response body connectionStatus DISCONNECTED
|
||||
Set Headers ${header}
|
||||
PUT /v1/nodeb/test1/reset
|
||||
#Output
|
||||
Integer response status 400
|
||||
Integer response body errorCode 403
|
||||
String response body errorMessage ${403_reset_message}
|
||||
|
||||
|
||||
|
||||
|
@@ -0,0 +1,38 @@
|
||||
##############################################################################
|
||||
#
|
||||
# Copyright (c) 2019 AT&T Intellectual Property.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# 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).
|
||||
#
|
||||
|
||||
*** Settings ***
|
||||
Suite Setup Prepare Enviorment
|
||||
Resource ../Resource/Keywords.robot
|
||||
Resource ../Resource/resource.robot
|
||||
Library OperatingSystem
|
||||
Library REST ${url}
|
||||
|
||||
|
||||
*** Test Cases ***
|
||||
Reset - 404 http - 404 Corrupted json
|
||||
Set Headers ${header}
|
||||
PUT /v1/nodeb/test11/reset
|
||||
Integer response status 404
|
||||
Integer response body errorCode 404
|
||||
String response body errorMessage Resource not found
|
||||
|
@@ -0,0 +1,51 @@
|
||||
##############################################################################
|
||||
#
|
||||
# Copyright (c) 2019 AT&T Intellectual Property.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# 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).
|
||||
#
|
||||
|
||||
*** Settings ***
|
||||
Suite Setup Prepare Enviorment
|
||||
Library Collections
|
||||
Resource ../Resource/Keywords.robot
|
||||
Resource ../Resource/resource.robot
|
||||
Library OperatingSystem
|
||||
Library REST ${url}
|
||||
|
||||
|
||||
|
||||
*** Test Cases ***
|
||||
Endc-setup - 400 http - 401 Corrupted json
|
||||
Set Headers ${header}
|
||||
POST /v1/nodeb/endc-setup
|
||||
Integer response status 400
|
||||
Integer response body errorCode 401
|
||||
String response body errorMessage corrupted json
|
||||
|
||||
Endc-setup - 400 http - 402 Validation error
|
||||
Set Headers ${header}
|
||||
POST /v1/nodeb/endc-setup ${endcbadjson}
|
||||
Integer response status 400
|
||||
Integer response body errorCode 402
|
||||
String response body errorMessage Validation error
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -0,0 +1,39 @@
|
||||
##############################################################################
|
||||
#
|
||||
# Copyright (c) 2019 AT&T Intellectual Property.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# 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).
|
||||
#
|
||||
|
||||
*** Settings ***
|
||||
Suite Setup Prepare Enviorment
|
||||
Resource ../Resource/Keywords.robot
|
||||
Resource ../Resource/resource.robot
|
||||
Library REST ${url}
|
||||
Suite Teardown Start Dbass
|
||||
|
||||
*** Test Cases ***
|
||||
ENDC-setup - 500 http - 500 RNIB error
|
||||
Stop Dbass
|
||||
Set Headers ${header}
|
||||
POST /v1/nodeb/endc-setup ${json}
|
||||
Integer response status 500
|
||||
Integer response body errorCode 500
|
||||
String response body errorMessage RNIB error
|
||||
|
||||
|
@@ -0,0 +1,42 @@
|
||||
##############################################################################
|
||||
#
|
||||
# Copyright (c) 2019 AT&T Intellectual Property.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# 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).
|
||||
#
|
||||
|
||||
*** Settings ***
|
||||
Suite Setup Prepare Enviorment
|
||||
Resource ../Resource/Keywords.robot
|
||||
Resource ../Resource/resource.robot
|
||||
Library ../Scripts/e2mdbscripts.py
|
||||
Library REST ${url}
|
||||
Suite Teardown Start RoutingManager Simulator
|
||||
|
||||
*** Test Cases ***
|
||||
ENDC-setup - 503 http - 511 No Routing Manager Available
|
||||
Stop RoutingManager Simulator
|
||||
Set Headers ${header}
|
||||
POST /v1/nodeb/x2-setup ${json}
|
||||
Integer response status 503
|
||||
Integer response body errorCode 511
|
||||
String response body errorMessage No Routing Manager Available
|
||||
|
||||
Verify RAN is NOT associated with E2T instance
|
||||
${result} e2mdbscripts.verify_ran_is_associated_with_e2t_instance test1 e2t.att.com:38000
|
||||
Should Be True ${result} == False
|
@@ -0,0 +1,46 @@
|
||||
##############################################################################
|
||||
#
|
||||
# Copyright (c) 2019 AT&T Intellectual Property.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# 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).
|
||||
#
|
||||
|
||||
*** Settings ***
|
||||
Suite Setup Prepare Enviorment
|
||||
Resource ../Resource/Keywords.robot
|
||||
Resource ../Resource/resource.robot
|
||||
Library OperatingSystem
|
||||
Library REST ${url}
|
||||
|
||||
|
||||
|
||||
|
||||
*** Test Cases ***
|
||||
Post Request setup node b x2-setup - setup failure
|
||||
Set Headers ${header}
|
||||
POST /v1/nodeb/x2-setup ${json}
|
||||
Sleep 1s
|
||||
POST /v1/nodeb/x2-setup ${json}
|
||||
Sleep 1s
|
||||
GET /v1/nodeb/test1
|
||||
Integer response status 200
|
||||
String response body connectionStatus CONNECTED_SETUP_FAILED
|
||||
String response body failureType X2_SETUP_FAILURE
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user