[RICPLT-1898] - Replace http router to gorilla-mux + UT + Automation code
[ric-plt/e2mgr.git] / Automation / Tests / X2-Setup / X2_Setup_reuqest_test.robot
old mode 100644 (file)
new mode 100755 (executable)
similarity index 52%
rename from Automation/Tests/X2-Setup/X2-setup_2_get_nodeb_enb.robot
rename to Automation/Tests/X2-Setup/X2_Setup_reuqest_test.robot
index c2592d6..cec8e84
@@ -1,17 +1,35 @@
+##############################################################################
+#
+#   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.
+#
+##############################################################################
+
 *** Settings ***
-#Suite Setup    Start dockers
+
 Resource   ../Resource/resource.robot
+Resource   ../Resource/Keywords.robot
 Library     OperatingSystem
 Library     REST      ${url}
 
-
-
-
-
 *** Test Cases ***
-Get Request node b enb
-    Sleep    1s
-    GET      /v1/nodeb/test1
+X2 - Setup Test
+    Post Request setup node b x-2
+    Integer     response status       200
+
+X2 - Get Nodeb
+    Get Request node b enb test1
     Integer  response status  200
     String   response body ranName    test1
     String   response body ip    10.0.2.15
@@ -30,13 +48,5 @@ Get Request node b enb
 
 
 
-*** Keywords ***
-#Start dockers
-     #Run And Return Rc And Output    ${run_script}
-     #${result}=  Run And Return Rc And Output     ${docker_command}
-     #Should Be Equal As Integers    ${result[1]}    4
-
-
-