Update API document URI for Chlorine 69/102469/1
authorSangwook Ha <sangwook.ha@verizon.com>
Fri, 23 Sep 2022 20:18:01 +0000 (13:18 -0700)
committerSangwook Ha <sangwook.ha@verizon.com>
Fri, 23 Sep 2022 20:18:52 +0000 (13:18 -0700)
In Chlorine the RESTCONF draft implementation was removed, so the URI
for API document has been updated, too (NETCONF-902).

Update the test case for API doc to use the new URI if the controller
version is Chlorine or later.

Change-Id: I43d4d2afa2d79ed586c2ff1e61a05fa6afc58e45
Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
csit/suites/netconf/apidocs/apidocs.robot
csit/variables/apidoc/openapi/location.uri
csit/variables/apidoc/openapi_18/location.uri [new file with mode: 0644]

index f11422b112c31b83301c75e620e73199b53359cd..9b93a73f3073cb65dcd4c69bcb0ef422a2e35052 100644 (file)
@@ -12,6 +12,7 @@ ${VAR_DIR}        ${CURDIR}/../../../variables/apidoc
 *** Test Cases ***
 Get Apidoc Apis
     [Documentation]    Get the Apidoc Apis list, check 200 status and apis string presence.
-    ${path} =    CompareStream.Set_Variable_If_At_Least_Aluminium    openapi    apis
+    ${path} =    CompareStream.Set_Variable_If_At_Least_Aluminium    openapi_18    apis
+    ${path} =    CompareStream.Set_Variable_If_At_Least_Chlorine    openapi    ${path}
     ${resp} =    TemplatedRequests.Get_As_Json_Templated    folder=${VAR_DIR}/${path}    http_timeout=90
     BuiltIn.Should_Contain    ${resp}    api
index ca2c9c458b3e9513143705a4be77c3cf8732ee8a..c348ee29c3e62e0a410c33fe40e3cc797c038e62 100644 (file)
@@ -1 +1 @@
-/apidoc/openapi3/18/apis/single
+/apidoc/openapi3/apis/single
diff --git a/csit/variables/apidoc/openapi_18/location.uri b/csit/variables/apidoc/openapi_18/location.uri
new file mode 100644 (file)
index 0000000..ca2c9c4
--- /dev/null
@@ -0,0 +1 @@
+/apidoc/openapi3/18/apis/single