VOL-1054 Kubernetes Conversion and PonsimV2date Makefile with selective changes from the one from SIAB to allow compatibility with Helm Chart changes
Change Class and filenames according to best practices
Change preprovisionTest -> Preprovision
Change-Id: Ib15e34ad397d2307b5ba3890cc6e8b245e5e3004
diff --git a/tests/atests/robot/voltha_automated_test_suite.robot b/tests/atests/robot/voltha_automated_test_suite.robot
index 9c9f37b..ca0da45 100755
--- a/tests/atests/robot/voltha_automated_test_suite.robot
+++ b/tests/atests/robot/voltha_automated_test_suite.robot
@@ -16,7 +16,9 @@
 Library           Process
 Library           ../common/auto_test.py
 Library           ../common/volthaMngr.py
-Library           ../common/preprovisioningTest.py
+Library           ../common/preprovisioning.py
+Library           volthaMngr.VolthaMngr
+LIbrary           preprovisioning.Preprovisioning
 
 Test Setup        Start Voltha      
 Test Teardown     Stop Voltha
@@ -27,18 +29,20 @@
 ${ROOT_DIR}       ${EMPTY}
 ${VOLTHA_DIR}     ${EMPTY}
 ${PONSIM_PID}     ${EMPTY}
-${ONUS}           3
 ${ONOS_SSH_PORT}  8101
-${OLT_IP_ADDR}    "172.17.0.1"
+${OLT_IP_ADDR}    olt.voltha.svc
 ${OLT_PORT_ID}    50060
 
 
 *** Test Cases ***
 Provisioning
-    [Documentation]     VOLTHA Pre-provisioning Test
-    ...                 This test deploys an OLT port and a number of ONU ports 
-    ...                 Then it verifies that all the physical and logical devices are up 
-    Configure   ${OLT_IP_ADDR}    ${OLT_PORT_ID}    ${LOG_DIR}
+    [Documentation]     VOLTHA Pre-provisioning
+    ...                 This test preprovisions a ponsim-OLT with given IP address and TCP port 
+    ...                 and then enables both it and a number of ponsim-ONUs with predefined IP/port
+    ...                 information. It then verifies that all the physical and logical devices are ACTIVE
+    ...                 and REACHEABLE
+    PSet Log Dirs    ${LOG_DIR}
+    Configure   ${OLT_IP_ADDR}    ${OLT_PORT_ID}
     Preprovision Olt
     Query Devices Before Enable
     Enable
@@ -48,23 +52,21 @@
 *** Keywords ***
 Start Voltha
     [Documentation]     Start Voltha infrastructure to run test(s). This includes starting all 
-    ...                 Docker containers for Voltha and Onos as well as Ponsim. It then start 
-    ...                 Voltha and Onos Cli
-    ${ROOT_DIR}    ${VOLTHA_DIR}    ${LOG_DIR}  Dir Init    ${LOG_DIR}
-    Config Dir  ${ROOT_DIR}    ${VOLTHA_DIR}    ${LOG_DIR}
+    ...                 Kubernetes Pods and start collection of logs. PonsimV2 has now been
+    ...                 containerized and does not need to be managed separately
+    ${ROOT_DIR}  ${VOLTHA_DIR}  ${LOG_DIR}      Dir Init    ${LOG_DIR}
+    VSet Log Dirs  ${ROOT_DIR}    ${VOLTHA_DIR}    ${LOG_DIR}
     Stop Voltha
-    Start Voltha Containers
-    Collect All Logs
-    Enable Bridge
-    ${PONSIM_PID}   Start Ponsim  ${ONUS}
-    Run Onos
+    Start All Pods
+    Collect Pod Logs
+    Alter Onos NetCfg
     
     
 Stop Voltha
-    [Documentation]     Stop Voltha infrastucture. This includes stopping all Docker containers 
-    ...                 for Voltha and Onos as well stopping Ponsim process.
-    Stop Ponsim
-    Remove Existing Containers
+    [Documentation]     Stop Voltha infrastucture. This includes clearing all installation milestones 
+    ...                 files and stopping all Kubernetes pods 
+    Stop All Pods
+    Reset Kube Adm