Jolokia request with TLS/HTTPS
[integration/test.git] / csit / suites / aaa / tls / 010__aaa_restconf_tls.robot
index b3ce4cb6f631c24845c13c54534357fdfcf00941..e9d26c69dfc46bf6f21b284770de0f07a7293961 100644 (file)
@@ -123,7 +123,21 @@ TLS on Restconf with Server & Client Certs (CA signed)
 
 Restconf HTTPS/TLS Jolokia with server and client certificates CA signed
     [Documentation]    Tests HTTPS request with ODL TLS config and client authentication by using CA signed certificates for Jolokia
-    [Tags]    exclude
+    Clean Up Certificates In Server
+    Generate Server CA Signed Certificate
+    Generate Client CA Signed Certificate
+    #TLS Request
+    PycURLLibrary.Set Url    https://${ODL_SYSTEM_IP}:${RESTCONFPORT_TLS}/${JOLOKIA_CONF_SHARD_MANAGER_URI}
+    PycURLLibrary.Add Header    "Content-Type:application/json"
+    PycURLLibrary.Add Header    Authorization:Basic YWRtaW46YWRtaW4=
+    PycURLLibrary.Client Certificate File    ${USER_HOME}/client_ca_signed-cert.pem
+    PycURLLibrary.Private Key File    ${USER_HOME}/client_ca_signed-key.pem
+    PycURLLibrary.Request Method    GET
+    PycURLLibrary.Perform
+    PycURLLibrary.Log Response
+    PycURLLibrary.Response Status Should Contain    200
+    ${resp}    PycURLLibrary.Response
+    Should Contain    ${resp}    "request":{"mbean":"org.opendaylight.controller:Category=ShardManager,name=shard-manager-config,type=DistributedConfigDatastore"
 
 *** Keywords ***
 Log Certificates in Keystore
@@ -248,6 +262,7 @@ Init Suite
     ClusterManagement_Setup
     Clean Up Certificates In Server
     Disable TLS in ODL
+    Install a Feature    odl-jolokia
 
 Cleanup Suite
     [Documentation]    Deletes pending sessions in case there were any