Library           Process
 Library           ONAPLibrary.JSON
 Library                  ONAPLibrary.Utilities
+Library                  ONAPLibrary.Templating    
 
 Resource          global_properties.robot
-Resource          ../resources/json_templater.robot
 
 *** Variables ***
 ${MR_HEALTH_CHECK_PATH}        /topics
 ${MR_CREATE_TOPIC_PATH}        /topics/create
 ${MR_UPDATE_ACL_TOPIC_PATH}        /topics/TEST_TOPIC_ACL/producers
 ${MR_ENDPOINT}     ${GLOBAL_MR_SERVER_PROTOCOL}://${GLOBAL_INJECTED_MR_IP_ADDR}:${GLOBAL_MR_SERVER_PORT}
-${MR_PUBLISH_TEMPLATE}     robot/assets/templates/mr_publish.template
-${MR_PUT_ACL_TEMPLATE}    robot/assets/templates/mr_put_acl.template
+${MR_PUBLISH_TEMPLATE}     mr/mr_publish.jinja
+${MR_PUT_ACL_TEMPLATE}    mr/mr_put_acl.jinja
 
 
 *** Keywords ***
      #   Appears to not care if topic already exists with the POST / PUT method
      #
      ${dict}=    Create Dictionary    TOPIC_NAME=TEST_TOPIC_ACL
-     ${data}=   Fill JSON Template File    ${MR_PUT_ACL_TEMPLATE}    ${dict}
-     #Log To Console    ${\n}Create TEST_TOPIC_ACL
+     Create Environment    mr    ${GLOBAL_TEMPLATE_FOLDER}
+     ${data}=   Apply Template    mr    ${MR_PUT_ACL_TEMPLATE}    ${dict}
      ${resp}=    Run MR Auth Post Request    ${MR_CREATE_TOPIC_PATH}   iPIxkpAMI8qTcQj8  Ehq3WyT4bkif4zwgEbvshGal   ${data}
      #Log To Console    Update Owner for TEST_TOPIC_ACL
      ${resp}=    Run MR Auth Put Request    ${MR_UPDATE_ACL_TOPIC_PATH}/iPIxkpAMI8qTcQj8  iPIxkpAMI8qTcQj8    Ehq3WyT4bkif4zwgEbvshGal    ${data}
      ${session}=    Create Session      mr      ${MR_ENDPOINT}
      ${timestamp}=   Get Current Date
      ${dict}=    Create Dictionary    timestamp=${timestamp}
-     ${data}=   Fill JSON Template File    ${MR_PUBLISH_TEMPLATE}    ${dict}
+     Create Environment    mr    ${GLOBAL_TEMPLATE_FOLDER}
+     ${data}=   Apply Template    mr    ${MR_PUBLISH_TEMPLATE}    ${dict}
      ${uuid}=    Generate UUID4
      ${headers}=  Create Dictionary     Accept=application/json    Content-Type=application/json    X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid}    X-FromAppId=${GLOBAL_APPLICATION_ID}
      ${resp}=   Post Request    mr      ${data_path}     data=${data}    headers=${headers}
 
 ${aai_so_registration_entry_template}=  robot/assets/templates/aai/add_pnf_registration_info.template
 ${pnf_ves_integration_request}=  robot/assets/templates/ves/pnf_registration_request.template
 ${DMAAP_MESSAGE_ROUTER_UNAUTHENTICATED_PNF_PATH}  /events/unauthenticated.PNF_READY/2/1
-${VES_ENDPOINT}     http://${GLOBAL_DNS_VES_NAME}:${GLOBAL_VES_SERVER_PORT}
+${VES_ENDPOINT}     ${GLOBAL_DCAE_VES_PROTOCOL}://${GLOBAL_INJECTED_DCAE_VES_HOST}:${GLOBAL_DCAE_VES_SERVER_PORT}
 ${VES_data_path}   /eventListener/v7